Skip to main content

The Graphene mark

Graphene

Your AI coding agent stays inside the files you agreed to. "Done" means your tests passed, not that the agent said so.

One screen beside Claude Code or Codex: see what every agent is doing, tell it what you meant, and land a task only when its check passes. On your computer, no account.

PyPI Python CI License

graphene demo: four tasks proposed with a question, an assumption and a leave-out, three agents at once, agent 1 stopped at a file outside its task and handing it back with its reason, the retry, everything proven, then the plan as a graph

Try it

A scripted replay of a run: no AI, no key, nothing written to your project.

uvx graphene-map demo

Needs uv, a free installer for Python tools. 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

How it works

  1. You say where it should go. Your agent proposes a plan before it writes: small tasks, each naming the files it may change and a check, a command that passes only when the task is done, like your tests. What it would have guessed comes back as a question with a default. You change any of it first.
  2. Each task is held to its files. With Claude Code, a write to any other file is refused before it happens. With Codex, git catches it when the task finishes, and the task comes back to you instead of landing.
  3. Done is checked. Each task runs in its own worktree. Graphene runs the check itself, in a clean copy, then merges the task into your branch as one commit you can revert.

The loop: you shape the plan, your agents do the work, Graphene checks it

What you see

graphene watch is the cockpit: a row a task, numbered in the order the tasks were taken, 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, ? shows every key.

graphene watch: agent 1 has handed its task back with its reason, the word lives in words.py, and Enter tries again; agents 2 and 3 are running, and a fourth task waits on agents 1 and 2

g draws the plan as a graph from your goal down; m maps the folders each task may write.

the graph: the goal, its two sub-goals, the four tasks under them, and the task that waits on two others

On your project

You need a git repository, Claude Code or Codex signed in, and macOS or Linux.

uv tool install graphene-map
graphene init        # in your own terminal: pick Claude Code or Codex
graphene watch       # the cockpit, beside your agent

Then 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, and R runs what is ready on your Claude Code or Codex account; it asks first when more than one task could start. graphene plan first off lets a quick change through at once. Accepting is yours: Graphene refuses it from an agent, so run init and accept in your own terminal.

In your hands

  • Stop: Ctrl-C where graphene run runs, graphene run --stop from another terminal in the repo, or :stop in the cockpit.
  • Review: review: every in graphene config edit holds every task that passes for you: i then c shows its diff, Enter on its row lands it.
  • Cost: with Claude Code, $2 an attempt, three at most, and a run says its worst case first; graphene run --max-usd N caps a run. Codex has no cap. A real two-task run cost $0.30.
  • Undo: git revert -m 1 <id>, with the landed: id from graphene node show <task>.
  • Leave: graphene init --remove, then uv tool uninstall graphene-map. The plan and what the hooks recorded stay in .graphene/ until you delete it.

What it enforces, and where it ends

  • Refused before the write: Claude Code only, 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 whenever the hook cannot see a write, git finds it when the task finishes.
  • A task allowed to edit its own test can weaken it: done flags it, and review: every lets you read the diff first.
  • Honestly, in the three comparisons so far (September) a plain paragraph to the same agent did just as well for less. 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 I built a third way to run it, on NVIDIA Nemotron through Nebius Token Factory:

uv tool install --python 3.12 'graphene-map[nemotron]'
graphene key set                                     # or NEBIUS_API_KEY
graphene init --planner nemotron --executor nemotron

Nemotron 3 Ultra reads your repository and plans, in a strict JSON schema, tasks Graphene can hold. Nemotron 3 Nano does them in Graphene's own tool loop, whose writes refuse a file outside the task, and a refused attempt steps up to Super. Token Factory made the split cheap: one endpoint, one family in three sizes, a price on every call, so each 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 7 to 9 October, and uvx graphene-map demo --live replays one of them as it ran; the rest is tested against a scripted stand-in, which graphene demo replays. 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, as any hosted model does, and with that extra and a key set, graphene init asks Token Factory for its list of models.

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.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphene-map 0.6.0
File Size Uploaded Provenance Actions
graphene_map-0.6.0.tar.gz 4.7 MB With provenance Details for graphene_map-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for graphene-map 0.6.0
File Interpreter ABI Platform Actions
graphene_map-0.6.0-py3-none-any.whl Python 3 none any Details for graphene_map-0.6.0-py3-none-any.whl

Total release size: 5.2 MB

Release files / graphene_map-0.6.0.tar.gz

Download URL graphene_map-0.6.0.tar.gz
Size 4.7 MB
Tags Source
SHA-256 checksum
How to use checksums
b2203a81843116e42b4bf86fcb11776fa9d67a0b8acd7906c078e20f2a174638
BLAKE2b-256 checksum
How to use checksums
c7be3091829d7af27e786551df08711aa1f6118d91b22bd014f62ad3fbc8cfba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

Release files / graphene_map-0.6.0-py3-none-any.whl

Download URL graphene_map-0.6.0-py3-none-any.whl
Size 506.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d65d0d13bc05894170b08023703bbe663a14cffc15ffdf3906bd67103b378f77
BLAKE2b-256 checksum
How to use checksums
8f5e48fbf1821fcd30224f7db0fa04c65962aba43f989a4cd491dc931d4ecf05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

Security for graphene-map 0.6.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.

Select from 2 files

Attestation for graphene_map-0.6.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 19, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page