Utility
DevChestra is a local workflow builder for headless coding agents. Draw a workflow on the canvas or have your coding agent create one through the CLI, then watch Claude, Codex, OpenCode, or Pi do the work — with branches, loops, and human check-ins where you want them.
View Project
Conduct your coding agents like an orchestra.
DevChestra is a local workflow builder for headless coding agents. Draw a workflow on the canvas or have your coding agent create one through the CLI, then watch Claude, Codex, OpenCode, or Pi do the work — with branches, loops, and human check-ins where you want them.
It's not another agent to babysit. It's the stage your agents play on.

Above: a real DevChestra workflow that routes a PR review by risk, with a separate follow-up path. Runs, transcripts, and replay live in the same window.
Pasting the same instructions into chat every time or using 100 diffrent SKILL.md and hoping the agent does it the same way? That's the problem. Chat is vibes: same prompt, different tools, diffrent model, different order, different day.
DevChestra makes the boring parts deterministic. You build the process once — who runs, what tools and MCPs they get, what they're allowed to touch, what they must hand back, what happens next — and it runs that way every time. The agents still improvise inside their box (they're LLMs, after all), but the orchestration around them doesn't.
Research, then rank. Draft, then review. Write code, run tests, fix what broke. No babysitting prompts, no pasting output from one chat into the next.
We built a PR review workflow that routes changes by risk and sends follow-up work down its own path. That's one way to put the pieces together. A few others:
The workflow decides the order, handoffs, branches, and review points. The agents do the work inside each step, using the tools and access you give them.
Every new project is seeded with a small workflow you can run right away, "Fix failing tests":
package.json, Cargo.toml, go.mod or pyproject.toml).It's a good one to open first: it uses a shell step, an agent, a gate, a loop and an approval, so you can see how the pieces connect. It's best run in a fresh worktree so a rejected fix is easy to throw away.
Workflows aren't limited to code. This one turns product images into a finished UGC-style short and posts it:
The agents do the creative work. The workflow decides the order, which tools each one gets, and when a defect sends the video back for another pass.
The canvas and CLI use the same workflow vocabulary:

Agent — run an agent step. Pick your CLI and model, write the prompt, done.
Shell — run a command. Tests, linters, scripts, whatever you'd run yourself.
Gate — route by condition. First matching branch wins, otherwise falls through.
Join — merge branches back together. Wait for the first one, or all of them.
Approval — pause for a person. Nothing moves until someone says go.
Decision — ask a decision model when you need a judgment call, not just code.
Loop — repeat until a condition is met. Each round keeps its own history.
For each — process every item in a list, one at a time.
Run workflow — call a reusable workflow and wait for it to finish.
End — finish the run.
--no-starters to devchestra project add to skip them.The CLI speaks JSON, so an agent can start a run, check its status, and reconnect to watch it without keeping the editor open. If two people edit the same workflow, DevChestra catches the conflict instead of silently overwriting.
Agents automatically receive what came before them, so a plain prompt like "sort by total stars, descending" just works. No template syntax required unless you want it.
The easiest what to get set up is ask your codling agent to set it up for you
set up https://github.com/Pranav-Official/Dev-Chestra globaly
# if you are working on a project then...
Also register this project as well.
You need Node 22 or newer and one of pnpm, npm or bun. Every command below works the same with any of them.
pnpm setup:global # or: npm run setup:global / bun run setup:global
devchestra start
That installs everything, links the devchestra command, and starts the editor in the background (it opens in your browser and the shell comes back right away; devchestra stop shuts it down, devchestra start --foreground keeps it attached). Run it again any time something looks off, it's safe to repeat.
In an interactive terminal, setup also offers to configure the decision providers: Jev (TYPESAFE_API_KEY) and Clef (CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_AUTH_TOKEN). Answer y for the ones you use and paste the values (they are not echoed). Keys are saved to ~/.config/devchestra/.env with mode 600, never overwriting a value that is already there. If you already filled in a .env copied from .env.example in the repo, setup copies those keys over instead of asking. Skip the step with --no-env, or preview everything with --dry-run.
Prefer the manual route?
pnpm install # or: npm install / bun install
pnpm build # or: npm run build / bun run build
pnpm devchestra start # or: npm run devchestra start / bun run devchestra start
Prefer to work through your coding agent? Start DevChestra without the browser:
devchestra start --headless
Agents can also refer skills by using
devchestra skill
Agents can use it to create, validate, run, and monitor workflows. Then ask it something like "build a workflow that runs the linter, then asks me before fixing anything." It can use the CLI to manage the workflow and follow a run when you ask it to start one.
You can use the same commands yourself. Here, workflow.json contains a workflow with the ID my-workflow:
devchestra project add /path/to/project
devchestra workflow create --project /path/to/project --file workflow.json
devchestra run start my-workflow --project /path/to/project
devchestra run watch <run-id> --jsonl
See the CLI guide for validation, approvals, recovery, and the rest of the commands.
Works with the CLIs you already signed in to: Claude Code, Codex, OpenCode, and Pi. DevChestra never asks for their keys, it just uses what's there.
Decision nodes are the one exception — they need their own keys. setup:global can set them up for you (see above), or copy .env.example to .env and fill in only the provider you use.
A workflow you commit shouldn't care which coding CLIs a teammate has installed. Instead of naming a CLI and model, an agent step can pick a tier: high, medium or low. Each machine maps the tiers to whatever it has, so the same workflow file runs everywhere without edits.
Mappings live in the project's .devchestra/ folder, in two files with the same shape:
| File | Shared? | Use it for |
|---|---|---|
settings.local.json |
No, git-ignored | This machine's providers and models. Created when you register a project. |
settings.json |
Yes, committed | An optional team default. The local file wins for any tier it sets. |
{
"version": 1,
"models": {
"high": { "cli": "claude-code", "model": "opus" },
"medium": { "cli": "claude-code" },
"low": { "cli": "pi" }
}
}
model is optional; leave it out to use the CLI's own default. Edit the mappings in Project settings in the editor, or from the terminal:
devchestra settings show --project . # what a run here would use, and where each came from
devchestra settings set high claude-code opus --project . # this machine (--scope project to commit it)
devchestra settings unset high --project .
In the agent step's inspector, choose Tier instead of a specific model. Tiers are resolved once when a run starts. If a tier isn't mapped on the machine, the run is refused up front and tells you which one to set. Settings never hold secrets.
Use the canvas when you want to see the whole process. Use the CLI when you're working with an agent in your terminal or IDE. Either way, workflows live in your project, ready to rerun, share, and version like code.
Local-first, single user, your files stay yours. No cloud account, no queue, no sandbox magic — steps run with your normal permissions in the workspace you chose.
Enable Restrict commands in the agent inspector, or add permissions.shellPolicy to a workflow, to opt into command guardrails on macOS and Linux. DevChestra disables the CLI's native shell and supplies an exec tool that checks the policy before starting a program. Removing shellPolicy restores the normal shell behavior; no server setting is required.
Allowed commands run with your normal OS permissions. permissions.network and permissions.write control the agent CLI's tools; they do not restrict programs launched by gateway exec. For example, allowing curl can grant network access even with network: false, and allowing touch can write files even with write: []. The inspector and run review explain this distinction. Use narrow allowlists for workflows you trust.
In a workflow file the policy sits beside shell under permissions:
"permissions": {
"network": true,
"write": [],
"shell": true,
"shellPolicy": {
"allow": ["^curl -s[SL]* https?://[^ ]+$", "^rg [^;|&<>$`]+$"],
"deny": ["^curl\\b.*\\s(-o|-O|--output)(\\s.*|=.*|$)", "^(sh|bash|python3?|node|env|xargs|find)\\b.*$"],
"timeoutSec": 60,
"maxOutputBytes": 262144
}
}
.* to cover its arguments.allow is an allowlist: a command that matches no allow pattern is refused. With no allow, every command that is not denied is allowed.;, &&, redirects, $, backticks, globs and ~ are rejected rather than run, so there are no compounds.submit_result. Retries with the same call ID reuse the result, and cancellation or token revocation stops in-flight commands.shellPolicy is rejected when the run is planned (E_WORKFLOW_INVALID), because a policy also turns the agent's native shell off and no command could run.^rg .*$ only works if rg is on the PATH of the shell you ran devchestra start or devchestra run from. Tools that a version manager such as nvm adds only in interactive shells will not be found otherwise. Relative PATH entries are ignored.python, sh or node, plus env, xargs and find -exec, can run programs no pattern sees, and an extra MCP server with an exec tool bypasses the policy. Treat it as a guardrail, not a security boundary.The monochrome provider icons are vendored from LobeHub Icons (MIT, Copyright (c) 2023 LobeHub) and the official Pi mark from pi.dev. The marks belong to their respective owners and are used only to identify the matching CLI.