Linux command
dirac 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Start an interactive coding task
dirac "[describe the task]"
Authenticate
dirac auth
View and resume
dirac history
Run in plan mode
dirac -p "[refactor the authentication module]"
Auto-approve
dirac -y "[fix all lint errors]"
Pipe input
git diff | dirac "Review these changes"
说明
dirac is a terminal-based AI coding agent designed for context efficiency and reduced API cost. It operates with an approval-based workflow, letting it read and write files, execute terminal commands, and drive a headless browser while keeping the user in control. The agent emphasises hash-anchored edits, AST manipulation, and massively parallel operations to minimise tokens spent per change. According to the project, this lowers API spend by 50–80% versus comparable agents while maintaining or improving code quality. Dirac supports multiple model providers, selectable via environment variables, so it can be paired with Anthropic, OpenAI, Google, xAI, Mistral, Groq, OpenRouter, or self-hosted backends.
参数
- -p, --plan
- Plan Mode: display the strategy before executing any actions.
- -y, --yes
- Yolo Mode: auto-approve all actions without confirmation prompts.
- auth
- Authenticate against the configured AI provider.
- history
- List previous tasks and resume any of them.
FAQ
What is the dirac command used for?
dirac is a terminal-based AI coding agent designed for context efficiency and reduced API cost. It operates with an approval-based workflow, letting it read and write files, execute terminal commands, and drive a headless browser while keeping the user in control. The agent emphasises hash-anchored edits, AST manipulation, and massively parallel operations to minimise tokens spent per change. According to the project, this lowers API spend by 50–80% versus comparable agents while maintaining or improving code quality. Dirac supports multiple model providers, selectable via environment variables, so it can be paired with Anthropic, OpenAI, Google, xAI, Mistral, Groq, OpenRouter, or self-hosted backends.
How do I run a basic dirac example?
Run `dirac "[describe the task]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --plan do in dirac?
Plan Mode: display the strategy before executing any actions.