synthesize

synthesize is a command for Claude Code from Lanzelot1/claw-brain. It costs 12 tokens per session (656 once invoked), scanned A, original, MIT.

A command for creating or updating wiki pages by combining information from several knowledge files.

In plain words
What is it for?
Use it to synthesize a person, company, product, concept, or comparison from sources in a knowledge repository.
Why use it?
It helps gather scattered facts into one organized page and checks whether a related page already exists.

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/lanzelot1/claw-brain/synthesize
Clone the repo
git clone --depth 1 https://github.com/Lanzelot1/claw-brain

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/lanzelot1/claw-brain/synthesize.svg)](https://agentmods.dev/commands/lanzelot1/claw-brain/synthesize)
Your own site
<a href="https://agentmods.dev/commands/lanzelot1/claw-brain/synthesize"><img src="https://agentmods.dev/badge/commands/lanzelot1/claw-brain/synthesize.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 656 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.00012 $0.00656
Opus 5 $0.00006 $0.00328
Sonnet 5 $0.00002 $0.00131
Haiku 4.5 $0.00001 $0.00066

Measured 5d ago against content hash c2d03125f56b, 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 5d 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/synthesize.md · 54 lines

How it starts

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

Create or update synthesized wiki pages (entity pages, concept pages, or comparison pages) from existing knowledge source files.

Arguments

Optional: specific topic, entity, or concept name. E.g. /synthesize "machine learning" or /synthesize "Company X vs Company Y"

Steps

  1. Read memory/_index.md to understand all available knowledge
  2. Determine what to synthesize:
    • If an argument was given: focus on that topic/entity/concept
    • If no argument: scan knowledge files to suggest candidates. Look for:
      • Entities (people, companies, products, tools) mentioned in 3+ source files
      • Concepts that span multiple areas
      • Topics where information is scattered across files
    • Present candidates and ask: "Which would you like me to synthesize?"
  3. Gather source material: Read all relevant source files (type: source or no type field). Note the specific facts, data, and quotes from each.
  4. Check for existing wiki page: Search knowledge/ for an existing wiki page on this topic (type: wiki in frontmatter).
  5. Create or update the wiki page:
    • Location: knowledge/{most-relevant-area}/ or knowledge/wiki/ if cross-cutting
    • Frontmatter:
      ---
      type: wiki
      source: "synthesized from knowledge sources"
      created: YYYY-MM-DD
      updated: YYYY-MM-DD
      ---
      
    • Content: Weave together facts from the source files into a coherent page. Use specific facts, data, and quotes — not vague summaries. Organize with clear headings.
    • If sources contradict: Note the contradiction explicitly rather than silently picking one.
    • Required ## Sources section at the bottom: list every source file used, with markdown links and a brief note on what each contributed.
    • Cross-references: Add ## Related section linking to related wiki pages and source files.
  6. Update index: Add the wiki page to the "Wiki Pages" section in memory/_index.md
  7. Update source files: In each source file that was used, add a cross-reference back to the new wiki page (in their ## Related section).
  8. Log: Append to memory/log.md: YYYY-MM-DD HH:MM | synthesize | created/updated {wiki-page-path} from {N} sources

Read the full file on GitHub · 54 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. 5d ago First seen · 54 lines · 12 tokens per session scan A c2d03125f56b

Subscribe to this mod's changes

synthesize is a command published in the GitHub repository Lanzelot1/claw-brain (11 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 656 once invoked, about $0.0001 per session on Opus 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-30.