Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Routemark

Routemark keeps the powerful model you already pay for in charge, and lets it hand execution work to a cheaper coding agent on your own machine. That model, the Controller (Claude Code or Codex), writes the task; a delegate (another coding-agent harness, such as OpenCode, with a cheaper model) does the work in a private copy; the Controller reviews the result, and only what was reviewed and passed is merged into your repository, unless you waive the review yourself.

It is not a model, not a harness and not a service. It is a command-line tool and a set of skills your Controller reads, running on one machine. It calls no service of its own unless you connect an organisation's key in the console; then it sends that organisation's summary, facts only, to Routemark's team service, and reads the organisation's lines back from it. Your delegate's harness talks to its own provider under its own login, except that on a sandboxed or image project an API key you exported can be put on its calls by Routemark's proxy on your machine (The honest limits). What Routemark keeps is in one directory, ~/.routemark, plus one routemark.toml file in each project you add; the few things it puts elsewhere, on your yes, are listed under Where the data lives.

Why it exists

Claude Code with Anthropic's models and Codex with OpenAI's are the pairings developers have come to trust with real work. Their usage is limited: towards the end of the week the plan runs low, and the work does not. So the high-stakes work gets finished on whatever is left, or Claude Code or Codex gets pointed at a cheaper model, and that model is now the one writing your memories, creating your skills and setting your project's direction. You never needed your best model for everything. You needed it in charge of everything. Routemark keeps it there, and gives it a delegate for the bulk of the coding.

What it guarantees

A project is open by default: the delegate runs as you, unsandboxed. A sandboxed project runs it inside a macOS sandbox; you make one with routemark project add DIR --containment sandboxed. An image project runs it, and the project's checks, in containers from an image on a container runtime you already have; you make one with routemark project add DIR --containment image. Routemark ships the image's recipes as text and never installs a runtime or builds or pulls an image.

These hold because Routemark enforces them, not because a model was asked nicely:

  • A delegate works in its own private copy and never writes to your real repository. On a sandboxed project it runs inside a macOS sandbox that lets it change only that copy and the private home and temporary folder Routemark makes beside it, and Routemark checks the sandbox holds on your machine before any work starts. On an image project it runs in a container that can write, outside the container's own throwaway files, only that copy, a private home and the run's question folder Routemark makes beside it, and Routemark checks that fence in a throwaway container from the same image before any work starts.
  • What merges is exactly the tree that was judged. If your branch moved while the delegate worked, the judged change is applied on top of the branch as it is now, checked again, and only then merged.
  • No credential's value is ever printed, and one the delegate brought in stops the merge. What could merge is scanned for credentials; a finding the delegate brought in holds the merge until you, in person, clear it with a reason. One that was already in your project is reported and does not block.
  • Nothing merges without a review on record, unless you waive the review yourself. Waiving a review and clearing a credential finding work only when a person runs them at a terminal; a Controller is told to hand them to you.
  • Checks the Controller keeps hidden stay hidden. The delegate never sees them.

On an open project the delegate is not sandboxed: it can see what you can see, your files and your network alike, and routemark project add says so. There the guarantees hold against mistakes and ordinary misbehaviour, not against a delegate deliberately attacking Routemark's own files; a sandboxed or image project is where they hold against that.

How it behaves

  • A merge never overwrites work you have not committed. It stops before anything changes and names the files.
  • Nothing stops a run except a person, or the budget your Controller gave it. A run that looks stuck is reported, with the facts.

What it does not do

  • It does not pick models. The Controller recommends a harness, provider and model, you decide, and Routemark records what worked on this machine as advice for next time. Given no harness, provider or model, routemark delegate takes the last that worked here, and says so. It never permits or refuses a run because of a model.
  • It does not judge providers. It ships no opinion on vendors, model families or countries.
  • It does not get between you and your Controller. How far the Controller goes without asking you is agreed between the two of you; it is not a Routemark setting.

Install

The short way is to ask your Controller. Open Claude Code or Codex in the folder you want to use Routemark in, and paste this:

Help me install Routemark and use it in this folder. Install it with uv tool install routemark. Run routemark skills install and show me what it would link; link it when I say yes. Then read two of its skills, routemark-setup and routemark: routemark home prints Routemark's folder, and both are in skills/shipped/ under it. Follow the setup skill to set up a delegate and add this folder as a project. Run every command yourself and tell me what it printed. Ask me only the real choices, and ask before you install anything else.

What stays yours, in person:

  • Logging in to the delegate's harness, in your own terminal (for OpenCode, opencode auth login). Routemark never sees that login.
  • On a Mac, if your Controller offers Routemark's launcher, typing yes to routemark launcher install yourself.
  • Later, if they come up: waiving a review, and clearing a credential finding. Your Controller hands you those commands.

The session you paste this into was open before the skills were linked, so it may not list them: that is why the request names the files. A new session finds them. Codex may ask your approval for some steps, the install among them, because they reach outside its own sandbox; approving is correct.

By hand

You need macOS, Linux or Windows with WSL2, git, uv (or pipx), and Claude Code or Codex. uv brings its own Python; pipx needs Python 3.11 or later (on a Mac, the stock /usr/bin/python3 is 3.9).

uv tool install routemark

or pipx install routemark. Check it took:

routemark --version

A first delegation

The one ordering rule: install Routemark, then routemark skills install, and only then open your Controller. The Controller reads a copy of the skills that skills install makes, so after installing or upgrading Routemark, run it again before you start a new Controller session. It links into a Controller it can see, so run Claude Code (or Codex) once beforehand: that is what creates ~/.claude (or ~/.codex).

Link Routemark's skills into your Controller. The first command refreshes Routemark's own copy of the skills, shows what it would link, and asks before it links anything: answer n and read the plan. The second makes the links without asking:

routemark skills install
routemark skills install --yes

See what is on this machine: the delegate harnesses, their logins, and the providers each one lists. routemark discover --models PROVIDER names one provider's models.

routemark discover

Now open Claude Code or Codex in a git project and ask it to delegate a task with Routemark, for example: "Using Routemark, delegate this to OpenCode: add a short Getting started section to README.md. Review it and merge it if it is good." If there is no delegate on the machine yet, the Controller offers to set one up with you, asks before installing anything, and has you log in to the harness yourself; Routemark never handles the login.

What the Controller then runs, and what you will recognise on screen:

  1. routemark delegate: prints Run 20261001T135234-a212c6. While it is going: ... and hands the task to the delegate in a private copy.
  2. It waits for the delegate to finish: opencode finished in 41.2s.
  3. It judges the result: The result of run ... is the tree 4461ffb3..., followed by every check it ran and the exact diff that would merge.
  4. After its review, and your yes: routemark merge, which prints What merged is the tree that was judged: 4461ffb3....

Every command that starts or finishes a step prints the next one to run, filled in, except what only you or your Controller can say, such as the reviewer's own harness and model: those are left as named blanks in capitals. routemark --help lists them all. The quickstart, docs/quickstart.md, is the full first run, with the output at each step.

The console

routemark console

opens a local page in your browser: what is waiting on you, what is running, what finished, and the track record. Organisation connections can be added or removed here. When you open This machine it also asks your harnesses and Controllers what they are. It ends when its terminal does (Ctrl-C). routemark console --no-open opens no browser: of the two addresses it prints, paste the second, one-time address into the browser you want.

What it costs you

Keep your strongest model in charge of planning, writing the task, review and merging. Move suitable execution work to a cheaper delegate, paid for outside that model's plan. The aim is to get more useful work from the premium capacity you already pay for. Routemark reports the usage it can measure, and promises no saving: writing the task, reviewing the result and retrying work the review sent back all cost your Controller something, and can use up the benefit.

routemark report opens with the delegated tasks, and beneath them the attempts: those the review sent back, those that failed, and whose they were, and, at the end of the tasks line, attempts per merged task. Then comes your Controller's own cost of delegating per merged task, which the console's overview leads with. It is named for the Controller it was read from (Claude's, Codex's, or both): the tokens your Controller spent on the delegation itself, from writing the task and its checks to the merge, placed by when each turn happened and what it did, never by what it said; what else it spent while the task was open is said beside it, never in it. It is in fresh tokens (input, output and cache writes, with cache reads shown beside and never in), by model where the session records it (Claude Code's do; Codex's are not split by model), over the merged tasks that have a reading of the delegation itself: "over K of N merged tasks" says how many, and the ones left out are counted beneath it. It is worked out once, when the task closes at the merge or at routemark direct end, from your Controller's own session records on this machine and Routemark's run records, and kept on the run's record. A task closed before that rule is worked out when you ask. It is never estimated: where a session is gone or cannot be read, the figure is absent and says so.

Beside it stands only something measured on this machine: the same figure over work your Controller did itself, recorded with routemark direct begin and routemark direct end, with how many tasks it rests on and the date of the latest. Nothing is netted and nothing is turned into money. At a run's end it also says the harness's own figure for it, where the harness reports one: the harness's sum from its own price list, not your bill.

The delegate's own tokens are shown too, as the delegate's: what it spent on the merged tasks, set against nothing. The estimate your Controller gave of what the task would cost your plan through its own subagent stays on the record and is not shown.

Where the data lives

Everything Routemark keeps is under one directory, ~/.routemark (set ROUTEMARK_HOME to put it elsewhere). routemark home prints where it is. In it are the run records (the track record your reports are read from), the private copies delegates work in, and the copy of the skills your Controller reads.

Outside it is only what you agree to: the routemark.toml in each project you add, the links routemark skills install --yes makes into your Controller (~/.claude/skills, ~/.codex/skills), and, if you install the launcher, its launchd entry in ~/Library/LaunchAgents and its log in ~/Library/Logs/routemark.

routemark disk

says how much each project is using, and for an image project what its image takes as docker lists it, with the command that removes it printed and never run.

routemark clean-up

takes back what merged and abandoned attempts left behind. A merge already reclaims its own working area; a run's record stays. routemark disk --sessions lists the harness sessions Routemark started, with the harness's own delete command for each: Routemark never deletes one from the harness's own folders. On a sandboxed project the harness keeps it in the private home beside the copy, and it goes when that working area is reclaimed.

The honest limits

  • Open projects: macOS, Linux, and Windows through WSL2. On Windows the project, Routemark and the harness live on the Linux side; a Controller inside WSL2 (Claude Code, the Claude desktop app's WSL setting, Codex's command line) is measured, and one on the Windows side can drive Routemark through wsl with an approval at every command. Its own usage is not measured. Sandboxed projects: macOS today. Image projects: wherever a container runtime answers docker, measured for real only on macOS with colima; on Debian and Ubuntu the test suite runs them against a stand-in for the runtime, and no image run has been made on a Linux machine for real. The delegate runs as root inside a container from Routemark's recipes; an image of your own runs as the user its Dockerfile sets, and the files it makes are that user's. On a Linux machine's own Docker the files a root delegate makes in its copy land as root's (measured by hand inside colima's own Linux machine), and you cannot remove a folder it made without root, so the image containment is made for macOS runtimes today. Routemark's launcher is macOS's too: on Linux there is none yet.
  • Two Controllers and three delegate harnesses have skills: Claude Code and Codex drive; OpenCode, Prime and Pi are the delegates. All three run on open projects; Pi and Prime are the sandboxed harnesses. OpenCode 2.0 runs on open projects and, in a container, on image projects; on a sandboxed project it does not, until OpenCode offers a way to run without listening on a port, which the sandbox does not allow (an older OpenCode 1.x still runs sandboxed). Routemark's recipes hold OpenCode alone: a delegation to a harness the project's image does not hold stops before anything starts, and routemark discover --project marks it. A delegate paid by a subscription login (a plan you signed in to through the harness) runs on open projects only, except on an OpenCode 1.x, which is given its saved logins; on a sandboxed project the way is an API key you export yourself. For OpenRouter, Anthropic and OpenAI on Pi or Prime, that key stays outside the sandbox: the delegate is given a stand-in, and Routemark puts your key on the delegate's requests to that provider alone. A subscription's token you export as a variable (ANTHROPIC_OAUTH_TOKEN, and for Pi also ANTHROPIC_AUTH_TOKEN) does reach a sandboxed Pi or Prime, which takes it before an Anthropic key: with one set, the proxy is not used, both are inside the sandbox, and Routemark says so when the run starts. Any other provider's key, and anything else you export (a GITHUB_TOKEN, cloud credentials), is inside the sandbox, where the delegate can read it. On an image project no login goes into the container, and none of your exported keys: for the Kimi coding plan on OpenCode, KIMI_API_KEY stays on your machine and the delegate is given a pass that works nowhere else, and the same for Ollama Cloud (provider ollama-cloud, OLLAMA_API_KEY; measured on OpenCode 2.1.3 against a stand-in for the provider, 2026-11-02, and on a real Ollama Cloud account inside a container, 2026-11-09); another provider's model gets none of your exported keys: a key file OpenCode's settings name is masked and stays on your machine where Routemark can read the settings file that names it, a key typed into the settings themselves (a provider's, or one in an MCP server's headers or environment) goes into the container with them, where the delegate can read it, and the run's first line says each. What a delegate does through an integration (an MCP server's own authority) is not fenced.
  • A Codex Controller and a sandboxed project. Codex runs its commands in a sandbox of its own, and macOS will not start a second sandbox inside it. So a Codex Controller reaches a sandboxed project through Routemark's launcher (routemark launcher install, which shows what it creates and asks first), or by running routemark delegate outside its sandbox with your approval. Either way, judging a sandboxed project runs outside Codex's sandbox, with your approval.
  • These are beta releases, numbered 0.1.0b; routemark --version says which you have. They have been run on two Macs, on Linux and on Windows through WSL2, with Claude Code and Codex driving and OpenCode, Prime and Pi delegating, on real providers. A person walked it through three times before 0.1.0: Claude Code on a Mac with no delegate at all, Codex on that Mac, and Claude Code on Linux; 0.1.0 comes when it is ready.

Removing it

routemark skills remove --yes
uv tool uninstall routemark

Run routemark launcher remove first if you installed the launcher. skills remove takes away only the links; the state home is yours to delete: routemark home, run before the uninstall, says where it is.

Reporting a problem

Open an issue at https://github.com/routemark/routemark/issues, with what you ran and what it printed. A way round one of the guarantees above is reported privately instead: SECURITY.md says how. An id like MERGE-4 in Routemark's output names the rule it applied; quote it. Read what you paste before you send it: a terminal can hold more than Routemark printed. Pull requests are not taken yet: CONTRIBUTING.md says why.

Licence

What this package ships, the command line, the loop, the sandbox and the one-machine console, is free under the Apache License 2.0 (see LICENSE and NOTICE), copyright Saar Inc. The name Routemark is Saar Inc.'s mark, and the licence grants no right to it. What is paid for is a service for organisations, under its own terms, reached from the console where its key is pasted; never from the command line, at install, or for safety.

From the repository

CHARTER.md says what Routemark does and what it guarantees.

uv sync

Build the wheel and prove it works when installed (the wheel and the sdist are left in dist/), and run the tests:

.venv/bin/python scripts/build_and_verify_package.py --out dist
.venv/bin/python -m pytest -q

The same suite on Linux, in containers that need only docker, on Debian and on Ubuntu 24.04: scripts/suite_linux.sh (add --platform linux/amd64 for x86).

Metadata

Release files for routemark 0.1.0b57

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

Source distribution (sdist)

Source distribution for routemark 0.1.0b57
File Size Uploaded Provenance Actions
routemark-0.1.0b57.tar.gz 943.0 kB Without provenance Details for routemark-0.1.0b57.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for routemark 0.1.0b57
File Interpreter ABI Platform Actions
routemark-0.1.0b57-py3-none-any.whl Python 3 none any Details for routemark-0.1.0b57-py3-none-any.whl

Total release size: 1.9 MB

Release files / routemark-0.1.0b57.tar.gz

Download URL routemark-0.1.0b57.tar.gz
Size 943.0 kB
Tags Source
SHA-256 checksum
How to use checksums
99b12a6ac73564d2a4391836864bbe937a909a597370bc76da79221825ecb8f3
BLAKE2b-256 checksum
How to use checksums
db5aefcde1061792f322d36f0f8b816dede67ad7680e1a91b63b09e496714a25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / routemark-0.1.0b57-py3-none-any.whl

Download URL routemark-0.1.0b57-py3-none-any.whl
Size 999.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c309e87e63f9adc68d474ef670939521b4162c49a53e3fb77f793f8a049cf2d
BLAKE2b-256 checksum
How to use checksums
0d21faff8a78d968fb105603ad50301e208d61f0e34d599736eb614b48ce5d81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for routemark 0.1.0b57

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release
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