Get started
Introduction
RaptorCode is an open-source coding agent for the terminal. It runs four specialist agents in parallel, each in its own git worktree, on your machine and with your own DeepSeek key.
RaptorCode is a command-line coding agent written in Rust. Type a request inside a git repository and four specialists, a frontend, backend, test and security agent, work on it in parallel. Each works in its own git worktree, and you follow them on a live dashboard. Their changes stay uncommitted until you review, test and merge them.
It runs on your machine, as your user, with your own DeepSeek API key. There is no RaptorCode server and no telemetry, and the code is open source under MIT OR Apache-2.0.
Install RaptorCode, add your key and run your first swarm.
Packages for Linux, macOS and Windows, or build from source.
How four agents share one mission without touching your branch.
Consent, the deny-by-default tool policy, and where its limits are.
#How a swarm run flows
You describe the outcome
Run raptor in a git repository and type what you want, for example “Add a /health endpoint and cover it with tests”. You can also start a run directly with raptor swarm run "mission".
Four specialists work in parallel
RaptorCode creates one branch and one worktree per role under .raptor/worktrees/<task-id>/ and starts the agents. They read code, edit files and run builds and tests, while every tool call passes the tool policy.
You review and keep what you want
When the agents finish, their work is waiting in the role worktrees. Inspect it with raptor review, raptor diff and raptor test, then commit and merge the parts you accept. Nothing reaches your branch without you.
#What you get
| Interactive REPL | raptor plans, edits and runs commands after you grant consent, with slash commands for the model, thinking effort and more. |
| Four-agent swarm | Frontend, backend, test and security agents in parallel, each in an isolated git worktree. |
| Built for DeepSeek V4 | V4 Pro or V4.1 Flash, thinking mode, a 1M-token context window and prefix caching. |
| A real coding toolset | Exact-match edits, ranged reads, regex search, globs, a plan checklist and verified test runs. |
| Headless runs | raptor run "task" for scripts and CI: progress on stderr, the answer on stdout, a non-zero exit on failure. |
| Supervised merges | Review, diff and test every worktree; single-task merges need a typed confirmation. |
| Deny-by-default tool policy | Catastrophic commands are refused; pushes, network tools and writes outside the workspace ask first. |
| Local-first | Your machine, your key, no telemetry. The code is open for anyone to audit. |
#What you need
- Linux, macOS or Windows.
- Git, because agents work in git worktrees.
- A DeepSeek API key from platform.deepseek.com. Usage is billed by DeepSeek to your account; RaptorCode itself is free.
A swarm runs four agents at once, so it uses roughly four times the tokens of a single agent. Pick V4.1 Flash when speed and cost matter more than depth.