Graphene
A team of coding agents on one repo. Each one owns its files. Your tests decide what lands.
Give Graphene a goal. NVIDIA Nemotron plans it as small tasks that can run at once; several agents race each task, each in its own copy and held to that task's files; the task's check keeps one; then Graphene runs your goal's own check and, when it is red, plans the fix. You set the limits once. In your terminal or in VS Code, with Nemotron, Claude Code, Codex or any model. On your computer, no account.
The same race in VS Code: Home in the side bar, a click for everything (In VS Code)
Try it
A scripted replay of auto mode on Nemotron: no AI, no key, nothing written to your project.
uvx graphene-map demo --auto
One goal, three tasks, nine agents at once, one of them stopped writing a file that is not its task's, and your
whole test suite catching what two tasks broke together. Needs uv,
a free installer for Python tools, on macOS or Linux (on Windows, inside WSL). Then watch the locks hold:
uvx graphene-map demo --cheat plays an agent trying seven ways round them.
6 refused, 1 flagged, 0 got through
One goal in, tested commits out
uv tool install 'graphene-map[nemotron]'
graphene key set # your Token Factory key, or NEBIUS_API_KEY
graphene init --planner nemotron --executor nemotron
graphene auto "add a --top N option to the CLI, with tests" --budget 2 --forks 3 --check "python3 -m pytest -q"
- You set the envelope, once.
--budgetin dollars,--tasks, fix--rounds,--forks, and ingraphene configthe files no task may touch and the test commands it may run as checks. Inside it Graphene accepts the plan for you; anything outside it waits for you, with the one reason why. Only you can set it: Graphene refuses it from an agent, and it never takes a task that could reach the agents' own settings and hooks. - Nemotron 3 Ultra plans small tasks, each naming the files it may change and a check, a command that passes only when the task is done. It is told to plan wide: tasks that run at once share no file, each its own test file.
- Agents race each task, all at once. Three Nemotron 3 Nano agents a task, each in its own git worktree, refused before any write outside its task's files. Two tasks never write the same file, and each gets its own port, so their dev servers don't collide either.
- The check decides, not a model. Graphene runs each fork's check itself, in a clean copy, and a rule written before any fork ran keeps one: the fork that passes the most of the other forks' tests, then the one that left the check's own files alone, the smaller, the cheaper, the first. It lands as one merge commit you can revert.
- Then your goal. Your
--check(or every task's check, together) runs on the merged result. Red: Ultra plans the fix and the race goes again, at most--roundstimes, inside the budget. Every round, acceptance and fork is ingraphene plan log, so the plan's history is there the morning after.
Add --plan the first time: the plan your envelope accepts is shown, and nothing runs until graphene auto
alone runs it.
Many agents, one repo
Agents in parallel go wrong first in one way: two of them edit the same file. Graphene's rule is one writer a
path: two running tasks never share a file, and a task that needs another's work waits on it. Each gets its own
worktree and its own PORT. The rule holds for agents you start yourself: open three Claude Code sessions with
three asks, and with graphene config set auto on every plan that fits your envelope is accepted at once, so
nobody waits on you to click through three plans; a plan that would write another's files waits, and says whose.
Watch it, steer it
graphene watch is the cockpit: a row a task, its agent's number and model, its forks as they race, what each one
costs, and what needs you on top. Enter does the row's move (accept, try again, sign off), t tells an agent one
line, w widens a task to the file it was stopped at, f forks a task, ? shows every key.
g draws the plan as a graph flowing into your goal, with how many tasks can run at once. On it, + adds a step
after the task you're on and L links two tasks (on a linked pair, unlinks them); m maps the folders each task
may write; :auto <goal> starts auto mode from the cockpit.
In VS Code
The extension in editors/vscode is
the same plan in your editor, with a click for everything. Home comes first in the side bar: set the folder up in
one pick, type what you want and click Plan it, read the suggested tasks (what each is for, the files it may
change, what proves it), and Start. Each finished task then shows what it changed and the check that passed:
Open changes, Approve, or Send back with a note, and Approve asks first if you never opened the changes. The graph
shows the race: a task fans out into its attempts as they work, and the kept one says why it won. Watch the Demo
plays the race with no key. Every click is a graphene command run as you, and it reads graphene state --json,
the cockpit's own snapshot, so the two never disagree.
Install the .vsix attached to the latest release with
code --install-extension, or from the Marketplace and Open VSX once they list it. It is built for VS Code 1.95
or later. In Cursor 3.25.6 (VS Code 1.128) it installs and activates, and the harness's end-to-end check passes
there.
Any agent, any model
| Who does the task | How a write outside its files is held |
|---|---|
Nemotron on Token Factory (--with nemotron), or the same loop on NVIDIA NIM, Ollama or any OpenAI-compatible host (--with 'nemotron --endpoint nim') |
refused before the write, by Graphene's own tool loop |
Claude Code (--with claude, claude:MODEL) |
refused before the write, by its hooks |
Codex (--with codex) |
git finds it when the task finishes; the task comes back instead of landing |
Any CLI agent (--with 'aider --yes --message-file {prompt_file}') |
git finds it when the task finishes |
--with again mixes them in one race: --with nemotron --with claude:haiku --with codex puts three different
agents on every task, and the same rule keeps one.
In your hands
- Stop: Ctrl-C where
graphene autoorgraphene runruns,graphene run --stopfrom another terminal, or:stopin the cockpit. What was running goes back to the plan;graphene autogoes on from there. - Review:
review: everyingraphene config editholds every task that passes for your sign-off, auto mode too:ithencshows its diff, Enter lands it. - Cost: the envelope's budget, or
graphene run --max-usd N. With Claude Code, $2 an attempt, three at most, and a run says its worst case first; Nemotron bills each call after it ends, so auto mode reads the budget between rounds. Codex has no cap. A real two-task Claude Code run cost $0.30. - Undo:
git revert -m 1 <id>with thelanded:id fromgraphene node show <task>;graphene plan undotakes back what your envelope accepted. - Leave:
graphene init --remove, thenuv tool uninstall graphene-map. The plan and what the hooks recorded stay in.graphene/until you delete it.
Without auto mode, nothing runs until you accept: tell Claude Code what you want, and the plan shows in the cockpit
before it writes (with Codex: graphene ask "what you want"). Enter accepts a task, A all of them, R runs
what is ready, and it asks first when more than one task could start. graphene plan first off lets a quick
change through at once.
What it enforces, and where it ends
- Refused before the write: Claude Code, and Graphene's own loop (Nemotron and the other hosts), shell redirects
included where the hook can read them (a
#comment line above one, or a target in a variable, hides it). With Codex or any other agent, git finds it when the task finishes; nothing outside a task's files ever lands. - Scopes cover files. A task can still use the network, or a database two tasks share; its own port is as far as Graphene goes there.
- A task allowed to edit its own test can weaken it:
doneflags it, andreview: everylets you read the diff first. The replay's fix round is one, and Graphene says so. In auto mode, a task whose check already passes before any work waits for you: it would land with nothing done. - The envelope decides what is accepted, not whether the work is good: that is the checks' job, and they are only as good as your tests. Auto mode has run end to end against a scripted stand-in of Token Factory; a live auto run is next.
- Honestly, the three comparisons so far (September) put one agent with a plan against the same agent with a paragraph, and the paragraph did as well for less. None of them raced forks or ran tasks at once. What I'm betting on is when you find out what it understood: before the work, not after. Compared with Claude Code, Cursor, Kiro and Cline, gaps included · every limit.
Nemotron on Token Factory
For the Nebius × NVIDIA Global AI Hackathon, Graphene runs on NVIDIA Nemotron through Nebius Token Factory, from one
goal to tested commits. How Nemotron is used: Nemotron 3 Ultra plans, reading your repository with read-only
tools and answering in a strict JSON schema, so what it proposes is tasks Graphene can hold, planned so the tasks
that run at once share no file. Nemotron 3 Nano does the tasks in Graphene's own tool loop, whose write tools refuse
a file outside the task; in auto mode three Nanos race each task; a refused attempt steps up to Nemotron 3 Super;
and when the goal's own check is still red, Ultra plans the fix. Where Token Factory sped it up: one key and one
OpenAI-style endpoint from Python's standard library, one family in three sizes so each role gets the size it
needs, and a price on every model, so every task has its own bill (408 calls in a night came to $1.80). It ran live
in practice and in 31 demo takes on two small repositories on 7 to 9 October, and uvx graphene-map demo --live
replays one of them as it ran; auto mode has run against the scripted stand-in.
Details, and every number's source.
Does anything leave my computer?
With Claude Code or Codex, Graphene itself sends nothing anywhere. graphene init adds small add-ons (hooks) to
this project only, so Claude Code asks Graphene before it writes; they record its sessions on your machine:
prompts, tool calls, results, edited files. On the Nemotron path, the planner and the executors read your files
through Token Factory (or the host --endpoint names), as any hosted model does; with Ollama or another host on
your machine, nothing leaves it.
Why I built this
I believe the limit on building software won't be tokens or cost. It'll be the human direction it takes. If you don't say which direction the application should go, the agent has to infer most of it, and you find out what it inferred in the diff. Graphene tries to bridge that. (The longer version, in under three minutes.)
Honestly, it's early, and I'm building it in the open. If you try it on a real repo, what I most want to hear is where the plan misread what you meant: tell me in two minutes, or open an issue.
How it works · A real run · Changelog · Contributing · Alex Lopez · Apache-2.0
Metadata
Release files for graphene-map 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| graphene_map-0.9.0.tar.gz | 17.8 MB | With provenance | Details for graphene_map-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| graphene_map-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for graphene_map-0.9.0-py3-none-any.whl |
Total release size: 18.4 MB
Release files / graphene_map-0.9.0.tar.gz
| Download URL | graphene_map-0.9.0.tar.gz |
|---|---|
| Size | 17.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58dd511d1a6177c841347f0475007e5e746928f2634a4a3d99e63f2a1561658f
|
|
BLAKE2b-256 checksum How to use checksums |
67c734f1e7ed2415d0ff6bf2592c489d596a8b499a4fc1bf1095c9b69ef8f86d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logRelease files / graphene_map-0.9.0-py3-none-any.whl
| Download URL | graphene_map-0.9.0-py3-none-any.whl |
|---|---|
| Size | 597.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e160176fa7106ba5cd0a83e55a9dcf8c275da16cb546b06cf8f69f064e43236a
|
|
BLAKE2b-256 checksum How to use checksums |
68218dcd53df991cf474cb4e1c621f997b98b9d40de636434437c01ba083e337
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for graphene-map 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for graphene_map-0.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.