@aictrl/cli
v0.3.3
Published
Headless execution engine for AI agent skills
Readme
@aictrl/cli
Headless execution engine for AI agent skills.
Features
- Headless First: Designed for automation, CI/CD, and server-side runtimes.
- MCP Protocol: First-class support for Model Context Protocol.
- GitHub Integration: Built-in agent for GitHub PRs and Issues.
- ACP Support: Implements the Agent Client Protocol.
- Custom Tools: Easy extensibility via TypeScript files.
Automation Usage
Aictrl is built to be used in non-interactive environments.
Stdin Piping
cat diff.txt | aictrl run "review this code change"JSON Events
For programmatic pipes:
aictrl run --format json "scan for secrets" | jq '.properties.part.text'Auto-Reject Permissions
In headless mode, Aictrl automatically rejects permissions that would otherwise prompt a user.
GitHub Agent
Install the GitHub agent into any repository:
aictrl github installThis adds a GitHub Action that can:
- Commmit and push code changes.
- Create and update PRs.
- Respond to issue comments.
- Review PR diffs.
Developer Helpers
Checkout PRs
aictrl pr <number>Automatically fetches the PR branch and imports the agent session used to create it.
Configuration
Aictrl reads config from .aictrl/ (project) or ~/.config/aictrl/ (global).
Models
| Provider | Env Var |
|----------|---------|
| Anthropic | ANTHROPIC_API_KEY |
| OpenAI | OPENAI_API_KEY |
| Google | GOOGLE_API_KEY |
| OpenRouter | OPENROUTER_API_KEY |
Local Development
bun install
bun run --conditions=browser src/index.tsBuild binaries:
bun run build --single