synthesize

synthesize is a command for Claude Code from aidemd-mcp/server. It costs 0 tokens per session (649 once invoked), scanned A, original, MIT.

A command in the AIDE pipeline that turns an intent specification and research into a completed strategy document and a sibling brief. AIDE is a workflow for developing and planning software modules.

In plain words
What is it for?
It is for writing Context, Strategy, Good examples, Bad examples, and References in an .aide file, plus creating brief.aide when synthesis is requested or required.
Why use it?
It fills the required planning sections in one pass and sends the work back to research if the available information is insufficient.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/aidemd-mcp/server/synthesize
Clone the repo
git clone --depth 1 https://github.com/aidemd-mcp/server

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 synthesize

README.md
[![agentmods](https://agentmods.dev/badge/commands/aidemd-mcp/server/synthesize.svg)](https://agentmods.dev/commands/aidemd-mcp/server/synthesize)
Your own site
<a href="https://agentmods.dev/commands/aidemd-mcp/server/synthesize"><img src="https://agentmods.dev/badge/commands/aidemd-mcp/server/synthesize.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 649 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00649
Opus 5 $0.00000 $0.00324
Sonnet 5 $0.00000 $0.00130
Haiku 4.5 $0.00000 $0.00065

Measured 4d ago against content hash 6a0b4628374b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

synthesize 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 4d 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.

.claude/commands/aide/synthesize.md · 25 lines

How it starts

The opening of the file, as written. The whole thing — 25 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/aide:synthesize — Synthesize Phase

Agent: This command is executed by the aide-strategist agent.

Read the intent spec's frontmatter and the brain's research, then fill in the .aide body sections (Context, Strategy, Good examples, Bad examples, References) AND author the sibling brief.aide. This is a fresh strategist session — it did not run the research phase and carries no prior context.

Synthesize is conditional in the AIDE pipeline. It runs only when the orchestrator routes through this phase — either because the spec-writer signaled "Strategy needed" or the user explicitly asked for synthesis. Most modules skip synthesize and go straight to /aide:plan as frontmatter-only navigation stubs.

All-or-nothing rule: if you produce a body, you fill all five sections. Partial bodies (Context filled but Strategy empty, etc.) are forbidden. If the available research isn't sufficient to fill all five, escalate back to /aide:research rather than producing a thin body.

Checklist

  • Read the target .aide file. Confirm frontmatter is complete (scope, intent, outcomes.desired, outcomes.undesired). If frontmatter is missing or incomplete, stop and escalate back to /aide:spec
  • Identify the domain from the intent. Search the brain for research filed under that domain (e.g., research/email-marketing/, research/local-seo/)
  • If no brain is available, check for a co-located research.aide in the same folder as the intent spec
  • If neither brain research nor research.aide exists, stop — research must run first via /aide:research
  • Read all relevant research entries. Cross-reference findings against the intent's outcomes.desired and outcomes.undesired — the research serves the intent, not the other way around
  • Fill ## Context — why this module exists, the domain-level problem, constraints that shape it. Write for a generalist engineer. No code. Do not restate context already carried by a parent .aide
  • Fill ## Strategy — distill research into decisions. Each paragraph names a concrete choice (tactic, threshold, structural decision) and the reasoning or data that justifies it. Cite sources inline. Write in decision form, not description form. No code
  • Fill ## Good examples — concrete domain output that illustrates success. Real output, not code. Pattern material for QA
  • Fill ## Bad examples — the almost-right failures. Output that looks valid but violates intent. Recognizable failure modes, not enumeration
  • Verify every strategy decision traces back to an outcomes.desired or guards against an outcomes.undesired. Cut anything that doesn't serve the intent
  • Run aide_validate to check the completed spec for structural issues
  • Hand off to /aide:plan — the architect is the next phase

Read the full file on GitHub · 25 lines

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. 4d ago First seen · 25 lines · 0 tokens per session scan A 6a0b4628374b

Subscribe to this mod's changes

synthesize is a command published in the GitHub repository aidemd-mcp/server (3 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 649 tokens. 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.