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 | sh

v2026.11.6 · MIT · macOS and Linux

  • my-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 tool

    The 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:7b

    Works 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

  1. Step 1 of 3

    the slug tests fail, fix them

    It runs the tests, edits the file and runs them again.

  2. Step 2 of 3

    add a tool that searches docs/

    It writes the tool as one small TOML file.

  3. Step 3 of 3

    Docs approvals

    It calls the new tool on its very next step.

~/my-project · Scripted demo

my-project · openmax
~/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                                                                             │
╰──────────────────────────────────────────────────────────────────────────────────────────────╯

Estimate monthly agent costs

Recorded demo input
Input bytes per request81% repeated across the demo
  • Repeated bytes
  • New bytes
  • Fixed prompt
Bytes per request: 8 requests grow from 3,018 to 6,621 bytes, and each repeats most of the one before it.02 kB4 kB6 kBcoldprompt185%bash288%read_file389%edit_file494%bash592%prompt680%write_file787%docs8

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