RAPTORCODE Docs

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.

A crimson wireframe raptor running across a dark grid of branching lines

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.

#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 REPLraptor plans, edits and runs commands after you grant consent, with slash commands for the model, thinking effort and more.
Four-agent swarmFrontend, backend, test and security agents in parallel, each in an isolated git worktree.
Built for DeepSeek V4V4 Pro or V4.1 Flash, thinking mode, a 1M-token context window and prefix caching.
A real coding toolsetExact-match edits, ranged reads, regex search, globs, a plan checklist and verified test runs.
Headless runsraptor run "task" for scripts and CI: progress on stderr, the answer on stdout, a non-zero exit on failure.
Supervised mergesReview, diff and test every worktree; single-task merges need a typed confirmation.
Deny-by-default tool policyCatastrophic commands are refused; pushes, network tools and writes outside the workspace ask first.
Local-firstYour 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.

#Get help