Local practice gym for AI agents on real apps: practice Excalidraw tasks, get a reproducible score.
A local practice gym for AI agents on real apps. Demonstrate a task once, let any MCP agent
practise it, and get an independent, reproducible score — one npx command, no VM, no Docker.
Practonaut turns a real application — today Excalidraw — into a practice environment. A task is a start drawing plus a goal. You, or an agent over MCP, change the diagram one action at a time; each action is applied to a real, pinned Excalidraw engine and read back before it counts. When the attempt ends, a separate checker decides whether the goal is met. People and agents work on the same session at the same time, so you can watch an agent in your browser: the history marks each change as yours or as the agent's (Agent · claude-code).
Requires Node.js 22.18 or newer (macOS, Linux or Windows).
npx practonaut setup # once: Chromium for the real Excalidraw engine (about 550 MB)
npx practonaut # opens the example task in your browser
Without setup everything still works, model-only: actions are not confirmed in the real app, and
Practonaut says so when it starts.
Let an agent practise (Claude Code shown; any MCP client works):
claude mcp add practonaut -- npx -y practonaut mcp --task excalidraw/connect
On native Windows (not WSL) npx is a .cmd file that an MCP client cannot start directly; add
cmd /c in front: claude mcp add practonaut -- cmd /c npx -y practonaut mcp --task excalidraw/connect.
Score it on a task, with a fresh session per run and an independent check:
npx practonaut bench --agent claude-code --tasks excalidraw/connect
More in getting started.
Draw the start and the goal in Excalidraw, then:
npx practonaut tasks from-scenes start.excalidraw goal.excalidraw --out my-task
npx practonaut play my-task/world
The difference becomes the goal (steps, labels, shapes, colours, frames, groups, arrows). Practonaut only writes the task if the goal passes its own check, the start fails, a generated reference solution passes and generated near misses fail. The same works in the Player under Create, where you can also record a demonstration in the real editor and have the rule confirmed by a second recording. See the authoring guide.
npx practonaut bench --agent oracle --tasks all --seeds 2 # reference solutions: the ceiling
npx practonaut bench --agent random --tasks all --max-actions 30 # random actions: the floor
npx practonaut bench --agent claude-code --tasks excalidraw/insert-between --repeats 3
npx practonaut bench --agent "my-agent --mcp {mcp_config} --prompt {prompt}" # any agent
npx practonaut report ~/.practonaut/bench/<id>/report.json --html report.html
npx practonaut report ~/.practonaut/bench/<id>/report.json --verify # re-judge from the run files
Each run gets its own session and data folder; the agent sees only the Practonaut MCP tools and the
same public task a person sees. Scores come from the host's history and a separate checker, never
from what the agent says: pass@1, pass^k, actions, efficiency against the reference solution. The JSON
report has a schema. report checks that every pass and every number follows from the verdicts in
the file — consistency, not proof: a file edited consistently still passes, and report says
"consistency-checked, not re-verified". report --verify re-runs the checker on the session and the
real-app export kept in the bench folder, whose SHA-256 the report records, re-derives each run's
actions and reference length and the library's content hash, and refuses any difference; host calls
and times are marked as reported by the runner. Nothing is signed: whoever can write the bench folder can replace those files too.
The example report is a real run of Claude Code on three tasks, two repeats each (JSON, HTML) — one seed, six runs: it shows the format, it does not rank a model. Details: benchmarks.
16 tasks for Excalidraw 0.18.1, each in English and German with three label variants, a reference
solution and near misses. List them with npx practonaut tasks list; open one with
npx practonaut play <task>; address them as excalidraw/<task> in mcp and bench.
| Task | Level | Reference actions | Goal |
|---|---|---|---|
add-step | ●○○ | 1 | Add a step |
connect | ●○○ | 1 | Connect two steps |
disconnect | ●○○ | 1 | Remove a shortcut arrow |
recolor | ●○○ | 1 | Mark the error step |
remove-step | ●○○ | 1 | Remove a step |
rename-frame | ●○○ | 1 | Name the frame |
rename-step | ●○○ | 1 | Fix a label |
align | ●●○ | 3 | Align a row |
close-chain | ●●○ | 1 | Close the gap in a chain |
group | ●●○ | 2 | Group a sub-process |
insert-between | ●●○ | 4 | Insert a step between two others |
reconnect | ●●○ | 1 | Rewire an arrow |
reorder | ●●○ | 4 | Put the steps in order |
decision | ●●● | 6 | Build a decision with two exits |
restyle-flow | ●●● | 6 | Turn a list into a styled flow |
two-frames | ●●● | 4 | Sort two sub-processes into frames |
The agent sees what a person sees in the Player: the task text and the public goal conditions — one sentence per condition plus its formal form, which is the goal predicate written out. The reference solution, the near misses and held-out checker data never reach it over MCP. The agent gets the same Check button a person has.
claude-code preset allows only
Practonaut's tools; for other agents that is up to you.npx practonaut setup downloads Playwright's Chromium once for the real
engine. Nothing is downloaded on install; the package has no install script.~/.practonaut (or PRACTONAUT_HOME). No telemetry, no account, no network
calls while practising. An agent you connect talks to its own model provider.Getting started · Agent guide · Benchmarks · Authoring · World format · Architecture · Adapter guide · Session host · Threat model · Glossary · All documents
Issues and pull requests are welcome — new tasks, bug fixes, and especially a second application adapter. Start with CONTRIBUTING.md; setup is three commands. Security reports go through SECURITY.md.
Apache License 2.0; see NOTICE. The bundled Excalidraw engine and fonts keep their own licenses (shipped with the package). The example world and the task library are CC0-1.0.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y practonautMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-godarg-practonaut": {
"command": "npx",
"args": [
"-y",
"practonaut"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencePractonaut works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.