How OpenTokenMini Works
Root Causes
What makes agent work inefficient today, and the premise OpenTokenMini starts from:
- Models never saw agentic work. Their training data predates agentic workflows, so they have no picture of how that work is done, the tools it runs on, or how many turns, tokens or minutes a task takes.
OpenTokenMini works on the rest, in dependency order: visibility (4), then the feedback loop (3), then measured workflows put in the agent's context (2).
- Good workflows are not in context. Efficient delegation topologies and workflows are not in context. Some may not be known yet, and each operator rediscovers them alone.
- No feedback loop. No semi-automated feedback loop tells whether a workflow or a delegation actually worked.
- No visibility. Neither the orchestrating loop nor the human operator has tools to see cost, context and impact.
Closing the Agentic Meta Loop
The agent's own loop runs one task. The meta loop runs across tasks: measure how the agent worked, check what it produced, keep what worked, and give it back to the agent next time.
What You Get
- Metrics Collection: every call from every harness, stored where you choose. Everything else builds on it.
- Tools for Your Agent: an MCP server and similar tools so the agent can optimize its own workflow and measure the impact of a change semi-automatically.
- Workflow Catalog: ultra-efficient workflows, crowdsourced by everyone who uses the framework, that the agent can pull into its context.
- Interpretability and Automation: views for the individual operator, the team and the organization, and automation so nobody has to re-explain a workflow to people every time.

Architecture
Coding agents report every call over OTLP, the OpenTelemetry protocol most harnesses already speak. A collector stores those records where you choose, and dashboards, analysis and an MCP server for agents read from it.
- Harnesses: Claude Code, Codex, Antigravity, OpenCode and other open harnesses. A session includes its subagents. Setup per harness: harnesses.
- Collector: on the dev machine, as a private team deployment, or for the whole organization. What one machine collects can sync periodically to the team or organization instance. One instance serving several teams needs permissions per team (identity).
- What is sent: metadata by default (tokens, cost, time, errors). Prompts and code only if you turn them on (transcripts).
- Read side: dashboards for people, the analysis, and an MCP server so agents can query the same data.
Analysis Method
From the whole harness down to single commits. Each level adds one data source, joined to sessions by user, time and repo.
These levels are reference defaults, not a fixed pipeline. Each team or user changes them to their preference through the orchestration agents: which levels run, what they group by, which data sources they join.
- Per harness: spend, time and errors by harness and model. Telemetry only.
- Per session: where tokens and time go inside a session and its subagents: context, cache, tool calls, MCP servers, retries.
- Per commit: what each session changed in the codebase, and whether it merged (version control).
- Against runtime and infrastructure: whether a change made services slower, broke them or changed their cost (observability, CI).
Optional decision models label each session's intent and quality so the analysis can group by what people were trying to do (decision models). Full method: analysis method. Suggested changes and how they are measured: recommendations.