Agent is a coding assistant that runs in your terminal. It reads files, applies changes through tools, runs approved commands, and keeps a conversation you can return to. You choose the model provider and level of access.
Start with a task
- Install the command from this repository.
- Run your first session inside a project.
- Connect a model with an API key or supported CLI sign-in.
- Choose permissions before giving it work.
agent --cwd ./my-project --mode planAsk a concrete question: “Trace how a request reaches the database. Cite the files.” Plan mode lets the agent inspect the project without editing files or executing shell commands.
What you control
Model selection, live permission controls, saved sessions, worker transcripts, and read-only review belong to the same CLI. Model changes between turns are visible in the transcript. Provider-supplied thinking has a bounded live preview; Alt+I or /inspect opens the full latest thinking or tool output.
Understand the implementation
This is also a guide to building a coding agent. Follow the architecture, trace one turn through the loop, and use the file guide to locate each implementation and test.
The website is documentation, not a hosted agent service. It does not request API keys or execute its terminal preview. Preview sessions on the homepage are illustrative.
Project boundaries
Permissions are application policy, not an operating-system sandbox. Provider subscriptions and quotas are separate from this project. Replace placeholder model IDs with models your account can use. The OpenCode bridge requires a compatible local OpenCode v2 installation.