Use Judgment from a coding agent
Combine Judgment project data and workflow guidance in a coding agent without confusing their roles.
Give a coding agent the smallest set of Judgment surfaces that fits the job. For production debugging and code changes, connect the Judgment MCP server and install the repo-local skill. Use Judgment Agent when page context and selected entities matter.
Choose the right surface
| Surface | What it supplies | Best for | Boundary |
|---|---|---|---|
| Judgment MCP server | Authenticated organization and project data, documentation search, and read and write tools | Investigating real traces, judges, datasets, tests, prompts, issues, and automations from a coding agent | Writes may require a role or client approval |
| Repo-local Judgment skill | Versioned instructions that teach an agent when and how to use Judgment | Applying repeatable tracing and investigation practices while editing a repository | Guidance only; it does not grant credentials or add tools |
| Judgment Agent | Judgment data tools plus the current product page, selections, and conversation context | Investigating and acting from inside the Judgment platform | In-product context; it does not read or edit your local repository |
The Judgment MCP server includes search_docs and read_doc_page, so the same
connection can retrieve current product and SDK guidance.
1. Connect the Judgment MCP server
Follow MCP setup to connect your coding agent and verify access to the intended organization and project.
2. Install the repo-local skill
Follow Install the Judgment agent skill from the root of the repository the agent will edit. A skill improves tool selection and workflow, but the data MCP connection remains the source of live evidence.
3. Give the agent an evidence-first task
Name the project, time window, desired code outcome, and whether writes to Judgment are allowed. For example:
Use the Judgment MCP tools to find checkout-agent traces with errors from the
last 24 hours. Use search_docs for current tracing guidance and load the
repo-local Judgment skill. Explain the production evidence, inspect the related
code, and propose a fix. Do not change Judgment data.
A grounded answer should separate three things:
- production evidence returned by Judgment tools;
- product guidance returned by documentation search or the skill; and
- repository evidence from the code the agent inspected.
Use Judgment Agent instead when the investigation begins in the product and page context or selected traces matter more than local code.