Most powerful & token efficient harness for agents
A coding agent for your terminal. Its prompt is under a thousand tokens and persists across turns, so the cache keeps serving it.
curl -fsSL https://useopenmax.dev/install.sh | shmy-project · every request
openmax -p "fix the slug tests"A small prompt that stays cached
Every request carries the same prompt, under 1,000 tokens.
.openmax/tools/docs.toml
openmax --check, which prints ok: 1 toolThe agent writes its own tools
It can call a new TOML tool on its next step.
~/.openmax/providers.json
/model, which prints model set to qwen2.5-coder:7bWorks with any model
Connect to a local server, gateway or provider API.
Read the whole prompt
As sent in the demo below2,864 bytes · 647 tokens, your path left out
You are Open Max, a coding agent working on the project at /Users/you/my-project.
Rules:
- Tool paths are project-relative.
- Read code before changing it; never guess paths or contents.
- Make small changes in the existing style; verify by build, test, or re-read.
- On a tool error, fix the call; never repeat it.
- Call tools via the API, never as JSON or XML text.
- When done, stop calling tools; briefly summarize changes and verification without repeating file contents.
For a reusable capability, first run openmax --spec <tools|skills|prompts|hooks|permissions|providers|memory|stdio|mcp> in bash; verify with openmax --check. Past sessions and memories: openmax --recall "<query>". Sub-agent: openmax -p, in tmux to outlive the turn.
Project layout (top levels):
docs/: deploy.md governance.md
scripts/: docs-search.sh
src/: __init__.py slug.py
tests/: __init__.py test_slug.py
[execution policy: auto; do authorized work without asking, extensions included; deny rules and validation still apply.]
[{"function":{"description":"List a directory.","name":"list_dir","parameters":{"properties":{"path":{"type":"string"}},"required":["path"],"type":"object"}},"type":"function"},
{"function":{"description":"Read a file as numbered lines.","name":"read_file","parameters":{"properties":{"limit":{"type":"integer"},"offset":{"description":"1-based start line","type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"}},"type":"function"},
{"function":{"description":"Create a file or fully rewrite one; prefer edit_file for changes.","name":"write_file","parameters":{"properties":{"content":{"type":"string"},"path":{"type":"string"}},"required":["path","content"],"type":"object"}},"type":"function"},
{"function":{"description":"Replace old_string with new_string; old_string must match exactly and be unique unless replace_all.","name":"edit_file","parameters":{"properties":{"new_string":{"type":"string"},"old_string":{"type":"string"},"path":{"type":"string"},"replace_all":{"type":"boolean"}},"required":["path","old_string","new_string"],"type":"object"}},"type":"function"},
{"function":{"description":"Find files by glob, newest first, e.g. **/*.rs","name":"glob","parameters":{"properties":{"pattern":{"type":"string"}},"required":["pattern"],"type":"object"}},"type":"function"},
{"function":{"description":"Search file contents by regex.","name":"grep","parameters":{"properties":{"glob":{"type":"string"},"path":{"type":"string"},"pattern":{"description":"Rust regex, no lookaround or backrefs","type":"string"}},"required":["pattern"],"type":"object"}},"type":"function"},
{"function":{"description":"Run a shell command in the project root.","name":"bash","parameters":{"properties":{"command":{"type":"string"},"timeout_secs":{"description":"Default 120, max 600","type":"integer"}},"required":["command"],"type":"object"}},"type":"function"}]Watch it fix a test and write itself a tool
Step 1 of 3
the slug tests fail, fix them
It runs the tests, edits the file and runs them again.
Step 2 of 3
add a tool that searches docs/
It writes the tool as one small TOML file.
Step 3 of 3
Docs approvals
It calls the new tool on its very next step.
~/my-project · Scripted demo
~/my-project ✓ Shell python3 -m unittest 2>&1 | grep -E '^(FAIL|AssertionError|Ran|OK|FAILED)' 32ms Fixed slugify in src/slug.py. It split on every character that is not a letter or digit, so a run of spaces or punctuation left empty words and doubled the dashes. It now splits on runs and drops empty words. All 3 tests pass. ◦ 5s · 44 tok/s ❯ add a tool that searches docs/, then use it to find where approvals are documented ✓ Write .openmax/tools/docs.toml +13 −0 2ms • extension refreeze: .openmax/tools/docs.toml added. New tools callable from your next step: docs. • toolbox changed: re-frozen with 8 tools, 0 skills - .openmax/tools/docs.toml added • tool docs runs: 'sh' './scripts/docs-search.sh' ✓ Docs approvals 27ms Added .openmax/tools/docs.toml, a read-only tool that searches docs/, and used it on the next step. Approvals are documented in docs/governance.md, line 3: in ask mode, file writes and shell commands wait for a human. ▐ shift+tab effort · /permissions your-model 1% auto ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │❯ Describe a task │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯
Every number has a test
Release build on Apple silicon at 8d0c024. First answer used a local mock endpoint.
Estimate monthly agent costs
Example workload
Advanced assumptions
Token counts include all requests in a run.
Short context covers requests under 200k input tokens. Long context starts at 200k. Each preset applies to all requests. Split mixed workloads by tier.
Compute defaults to an active 4 GB VM. Storage, networking and credits are excluded.
Token pricingCompute pricingChecked 2026-11-08
Monthly estimate · USD
- Without cache
- With cache
| Cost | No cache | With cache |
|---|---|---|
| Input tokens | ||
| Output tokens | ||
| Compute |
Recorded demo input
- Repeated bytes
- New bytes
- Fixed prompt
Repeated bytes are measured here. Cache-hit share is an editable assumption.
Every harness feature is a fossil of a model limitation.
So Open Max ships seven tools and leaves the rest to files you can delete.
Start in one command
Then run openmax --login, pick a model with /model, and give it a task.
curl -fsSL https://useopenmax.dev/install.sh | sh