lattice: Agent for Claude Code

.github/agents/mcp-engineer.agent.md

mcp-engineer is an agent for Claude Code from J-o-n-a-t-h-a-n-M-u-e-l-l-e-r/lattice. It costs 40 tokens per session (328 once invoked), scanned A, original, MIT.

An agent-facing MCP server for Lattice, with seven tools, temporary agent leases, generated briefings, and a local agent simulator. MCP is a standard way for an AI agent to use external tools.

In plain words
What is it for?
Use it to claim work, read generated issue briefings, report dependencies, and test agent behavior with `scripts/agent.ts`. It is intended for the Lattice MCP server and its supporting agent script.
Why use it?
It lets coding agents read the shared work schedule and report discoveries through the same validation system, without repeatedly triggering inference or contacting GitHub.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is J-o-n-a-t-h-a-n-M-u-e-l-l-e-r/lattice's own configuration. It tells Claude Code how to work on lattice itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lattice configures →

Reuse

Borrowing it

Nothing to install: this file belongs to J-o-n-a-t-h-a-n-M-u-e-l-l-e-r/lattice. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/J-o-n-a-t-h-a-n-M-u-e-l-l-e-r/lattice/main/.github/agents/mcp-engineer.agent.md
Clone the repo
git clone --depth 1 https://github.com/J-o-n-a-t-h-a-n-M-u-e-l-l-e-r/lattice

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/j-o-n-a-t-h-a-n-m-u-e-l-l-e-r/lattice/mcp-engineer/github.svg)](https://agentmods.dev/agents/j-o-n-a-t-h-a-n-m-u-e-l-l-e-r/lattice/mcp-engineer)
Your own site
<a href="https://agentmods.dev/agents/j-o-n-a-t-h-a-n-m-u-e-l-l-e-r/lattice/mcp-engineer"><img src="https://agentmods.dev/badge/agents/j-o-n-a-t-h-a-n-m-u-e-l-l-e-r/lattice/mcp-engineer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/j-o-n-a-t-h-a-n-m-u-e-l-l-e-r/lattice/mcp-engineer"><img src="https://agentmods.dev/badge/agents/j-o-n-a-t-h-a-n-m-u-e-l-l-e-r/lattice/mcp-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 328 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00328
Opus 5.5 $0.00016 $0.00131
Sonnet 5.5 $0.00008 $0.00066
Haiku 4.5 $0.00004 $0.00033

Measured 2mo ago against content hash 23cfe28d9c2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/agents/mcp-engineer.agent.md · 25 lines

What it actually says

You build the agent-facing half of Lattice: the MCP server in apps/backend/src/mcp/.

Read docs/04-mcp-surface.md.

The design principle

The graph is a shared, self-maintaining substrate. Anything that learns something puts it back.

There is no approval queue. report_dependency feeds an agent's discovery into the graph through the same validators and the same write threshold as model-inferred edges — never a privileged path that skips them. source: 'agent_reported', confidence 0.9, because an agent that hit a real wall is better evidence than a model reading titles.

All reads are served from the store — the same queries that back the REST API (docs/12-rest-api.md). An MCP tool must never trigger inference or call GitHub; five agents polling list_ready_work should cost five cache hits.

Not a GitHub wrapper

The official GitHub MCP server already exposes issue CRUD. Ours exposes the derived schedule, which exists nowhere else. If a tool you're adding could be replaced by a call to github-mcp-server, it doesn't belong here.

Build scripts/agent.ts early

It's a real MCP client that claims an issue, prints the briefing, and reports progress. It is simultaneously how you test the server and demonstrate the coordination loop.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 25 lines · 40 tokens per session scan A 23cfe28d9c2f

Subscribe to this mod's changes

mcp-engineer is an agent published in the GitHub repository J-o-n-a-t-h-a-n-M-u-e-l-l-e-r/lattice (0 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 328 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mcp-engineer compared with agents from other repositories

mcp-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-engineerJ-o-n-a-t-h-a-n-M-u-e-l-l-e-r/latticeAgent02mo agoMITA40Claude Code
php-developerdavepoon/buildwithclaudeAgent3.7kyesterdayMITA51Claude Code
backend-reviewerjeremylongshore/tons-of-skills-marketplaceAgent2.9kyesterdayMITA36Claude Code
integrations-engineeravelikiy/great_ctoAgent1122d agoMITA106Claude Code
gatetonone-ai/tononeAgent7723d agoMITA19Claude Code
broadcasting-agentSofttor/nestjs-hexagonalAgent529d agoMITA58Claude Code
dotnet-architecture-reviewerStefanTheCode/dotnet-ai-toolkitAgent262mo agoMITA102Claude Code