AI agents now use your product through its tools, APIs and MCP servers. They don't file bug reports. When an interface confuses them, they guess, and the guess becomes a duplicate ticket, a second refund or a deploy to the wrong environment.
This guide is about designing for that user: 15 heuristics, each traced to the usability rule it grew from, and a 55-term lexicon for what happens inside an agent session. Every heuristic comes with the fix, the signals to look for in your traces, a review checklist, and how it maps to the MCP spec.
Read it on the web at spektiv.io/field-guide, or in this repo as Markdown. Free under CC BY 4.0.
Claude Code plugin (the review skill plus the Field Guide MCP server):
/plugin marketplace add prspktvs/ax-field-guide
/plugin install ax-field-guide@spektiv
Agent Skill only, for Claude Code, Codex, Cursor and other tools that read SKILL.md:
npx skills add prspktvs/ax-field-guide
Then ask your agent to review a tool, e.g. "Review the tools in src/mcp/ with the ax-tool-design skill."
MCP server, read-only, no sign-in: https://spektiv.io/mcp/field-guide (Streamable HTTP).
claude mcp add --transport http ax-field-guide https://spektiv.io/mcp/field-guide
Tools: ax_overview, ax_search, ax_get (depth card, summary or full) and ax_traverse, all read-only,
plus submit_feedback to send a note to the authors. Entries have short handles: H-01 to H-15, L-01 to L-55. The
server also offers the review skill over the MCP Skills extension, at skill://ax-tool-design/SKILL.md.
In hosts that support MCP Apps (Claude, VS Code Copilot and others), ax_get opens an interactive viewer:
the entry's emblem and law, a review checklist you can tick and copy as Markdown, and its trade-offs.
What the MCP server receives: your agent's tool calls (the entry it asks for, its search text, or feedback you choose to send, which goes to the authors as a chat message). It keeps a usage log of the method, tool name, entry handle (e.g. H-02), client software name and latency. It never logs search text, IP addresses or any other argument. The skill runs locally and sends nothing. Privacy policy: https://spektiv.io/privacy
| Heuristic | Law | |
|---|---|---|
| H-01 | Continuous State Anchoring | Surface live post-conditions and ambient state continuously, so the agent never reconstructs reality from stale history. |
| H-02 | Affirmative Null Observations | Make empty results and quiet successes explicit, reporting the scope searched and the exact post-state, so silent failures can't pass as success. |
| H-03 | Token Hygiene & High Observation Yield | Maximize useful signal per token: strip boilerplate and replace raw data firehoses with structured summaries plus drill-down pointers. |
| H-04 | Freshness & Context Half-Life | Tag volatile observations with version or turn freshness and invalidate superseded state, to prevent Temporal Vertigo and World-Model Drift. |
| Heuristic | Law | |
|---|---|---|
| H-05 | Align with Interface Priors | Honor conventions deeply embedded in model pretraining; eliminate Norman Tools and justify any bespoke abstraction against its recurring teaching cost. |
| H-06 | Deterministic Envelopes & Schema Uniformity | Enforce uniform naming, pagination cursors, truncation markers and response envelopes across the entire tool surface. |
| H-07 | Local Handles & Progressive Disclosure | Shrink Inference Distance with short, copy-safe local references, and lazy-load specialized tools and context on demand instead of dumping catalogs upfront. |
| H-08 | Compositional Accelerators | Lower Semantic Impedance by letting agents filter, batch and compute on the computer's side of the boundary instead of through chatty turn loops. |
| H-09 | Executable, Just-in-Time Micro-Docs | Design onboarding into the critical path with ultra-concise inline canonical examples and pull-based deep playbooks. |
| Heuristic | Law | |
|---|---|---|
| H-10 | Poka-Yoke Boundaries | Validate arguments, syntax and preconditions synchronously inside the tool call, so preventable mistakes never acquire Token Gravity. |
| H-11 | Errors as Steering Prompts | Treat every error payload as a prompt: say what failed, the actual observed state, and the exact next valid affordance. |
| H-12 | Cheap Speculation & Declared Blast Radius | Declare reversibility and risk per tool, enable cheap dry-runs and rollbacks, and keep Productive Friction while removing Dead Friction. |
| H-13 | Explicit Trust Boundaries | Structurally isolate untrusted environment data from agent instructions, to defend against Adversarial Surfaces and prompt injection. |
| Heuristic | Law | |
|---|---|---|
| H-14 | Memory Metabolism | Provide explicit ways to forget working debris: sub-agent isolation, viewport closing, and structured compaction contracts that minimize Handoff Loss. |
| H-15 | Temporal Proprioception & Verification Gates | Give agents a sense of elapsed turns, budget and repeated loops, and enforce explicit verification gates against both Thrash Traps and Silent Corner-Cutting. |
The lexicon names what these heuristics fight: token gravity, grounding debt, handoff loss and 52 more.
| Path | What |
|---|---|
guide/heuristics/, guide/lexicon/ |
Every entry as Markdown |
data/field-guide.json |
The whole Guide as structured data (laws, checklists, tensions, links) |
skills/ax-tool-design/ |
The review skill and its checklists |
.claude-plugin/, .mcp.json |
Claude Code plugin and marketplace |
server.json |
MCP Registry entry |
gemini-extension.json |
Gemini CLI extension (MCP server + skill) |
This repo is generated from the Guide's source on every release. To suggest a change, open an issue.
- mcp-sauna: a test bench that reviews an MCP server by running an agent against it.
- Research diary: the experiments behind the Guide, e.g. a 9B model that went from fixing 17% to 58% of simulated incidents when only its tools changed.
Text and data: CC BY 4.0. Copy it, translate it, build on it, with credit:
"Designing for Agents — The AX Field Guide" by Spektiv, https://spektiv.io/field-guide, licensed under CC BY 4.0