moda registry lets your own coding agent (Claude Code, Codex, Cursor) describe how your agent runs from your codebase: which agents answer, with which prompt versions, models, sampling settings, tools, and skills, how control moves between agents, and what context your code injects into the prompt. You don’t need the GitHub App or a repo upload.
Hand it to your coding agent
- Inventory every LLM call site.
- Work out how the harness switches prompts.
- List the context it injects.
- Write
.moda/registry.json, then validate and push it. - Make your traces name the agent and prompt version on each call. It shows you the diff first.
- Check the result with
moda registry coverage.
What gets registered
Name the agent on each call
Each LLM call in your traces should say which agent and prompt made it. The agent name (gen_ai.agent.name or moda.agent_name) is matched against each registered agent’s key, name, and match.agentNames, and the prompt key (moda.prompt_key) against each agent’s prompt and match.promptKeys. Auto-instrumented OpenAI and Anthropic calls don’t carry this, so add it where you build each agent or make each call:
See Prompt attribution for full examples.
History: every push is a commit
Each successfulmoda registry push records a commit. A commit is a snapshot of
everything registered, rendered as files:
agents/<key>.jsonprompts/<key>.mdtools/<name>.jsonskills/<key>/SKILL.mdharness/routing.json,harness/runtime.json,harness/context.jsonandharness/mcp-servers.json
--message.
- the commit log;
- per-file diffs for any commit, or for a range (shift-click a second commit);
- a file browser for any commit;
- uncommitted changes: edits made outside a push, such as dashboard tool edits, MCP discovery, or
moda prompts sync. Admins can commit them from the page.
Check coverage
coverage reports:
- the share of recent LLM calls that resolve to a registered agent;
- agent names and prompt keys seen in traces that no agent claims;
- tools used in production but not registered;
- registered agents never seen.
Run the real harness
The registry describes your harness; it doesn’t contain it. To have Moda run your actual code in a sandbox (Replay Environments), also register the repository withmoda harness register. See Register a harness for Replay Environments.