Skip to main content
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

The brief walks your agent through these steps:
  1. Inventory every LLM call site.
  2. Work out how the harness switches prompts.
  3. List the context it injects.
  4. Write .moda/registry.json, then validate and push it.
  5. Make your traces name the agent and prompt version on each call. It shows you the diff first.
  6. 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 successful moda registry push records a commit. A commit is a snapshot of everything registered, rendered as files:
  • agents/<key>.json
  • prompts/<key>.md
  • tools/<name>.json
  • skills/<key>/SKILL.md
  • harness/routing.json, harness/runtime.json, harness/context.json and harness/mcp-servers.json
Each commit also records your repo’s git SHA, branch, and whether the checkout had uncommitted changes. Label a push with --message.
The dashboard Registry page shows the same history, git-style:
  • 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 with moda harness register. See Register a harness for Replay Environments.