Topoguard — AI skill for Claude Code
Topology design and a k-of-n corroboration firewall against hallucination spread in multi-agent LLM systems.
How to install Topoguard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open linngem/topoguard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Topoguard does
Topology design and a k-of-n corroboration firewall against hallucination spread in multi-agent LLM systems. Tested with Claude agents on 12 synthetic clinical cases, including autoimmunity. Code, data, prompts and a Claude Code template.
Alternatives in AI
- Claude Squad — by smtg-ai - Claude Squad is a terminal app that manages multiple Claude Code, Codex (and other local agents i 6.5k ★
- Bot On Anything — A large model-based chatbot builder that can quickly integrate AI models (including ChatGPT, Claude, Gemini) i 4.2k ★
- Token Monitor — Local-first desktop widget for tracking token usage, costs, and limits across 32+ AI coding tools—including Cl 1.8k ★
README
topoguard
**Topology design and a k-of-n corroboration firewall against hallucination spread in multi-agent LLM systems.**
📄 **Article with the experiments and results: [ARTICLE.md](ARTICLE.md)** 🧩 **Ready-to-use Claude Code template: [templates/claude-code](templates/claude-code/README.md)** · 📋 [Cases and prompts](docs/CASES_AND_PROMPTS.md)
Based on consensus and contagion dynamics on networks (Savari et al., *Sci. Rep.* 2026; Horsevad et al., *Nat. Commun.* 2022) and validated with Claude agents on 12 synthetic clinical cases.

Key findings (Claude Haiku 4.5, 12 synthetic clinical cases)
- Agents filter by plausibility first: implausible errors almost never spread.
- A plausible error repeated by 4–8 neighbours is adopted 94–100 % of the time.
- In a star network, an error entering at the hub contaminated up to 80 % of the team.
- A k = 2 corroboration gate kept every error in its source agent, at the cost of slowing down unexpected true findings.
Full details, figures and limitations in the [article](ARTICLE.md).
Two components
**1. Offline design (no LLM calls)** — `spectral`, `contagion`
topology_report(G): clustering, transitivity, mean shortest path, Kirchhoff index and leader–follower bandwidth (the instruction-change frequency at which the team stops following the orchestrator), with the orchestrator at the hub and at the periphery.firewall_curve(G)/best_threshold: the threshold θ that lets a finding asserted by several modules spread while blocking one asserted by a single hallucinating agent.
**2. Runtime** — `reliability`, `gate`
design_gate(n, p_fp, sens, rho): smallest k guaranteeing a false-acceptance rate below a target, with correlated errors (beta-binomial, ρ = intraclass correlation).estimate_rho(errors): ρ from each module's validation errors.CorroborationGate: a workspace that only publishes findings corroborated b
Related Skills
Hr AI Transformation Playbook
HR AI transformation toolkit: vetted use cases, governance verified weekly against primary sources, a tested M
Nccn Skill
Convert NCCN cancer clinical practice guideline PDFs into executable Claude Code skills with semantic chunking
Cowork Cookbook
🧑🍳 Cowork Cookbook — battle-tested recipes for orchestrating AI workflows in Claude Cowork. Skills, plugins
Ontology
Stage 03. Invoke the ontology-engineer to promote discovery output into the client domain model. Assembles the
Airlock
Runtime firewall for AI coding agents. Gate every tool, MCP and skill call against a least-privilege policy.
Claude Skill Citation Checker
AI citation hallucination detector — verify .bib files against CrossRef, Semantic Scholar, OpenAlex. Claude Co
Related Agents
AI Data Specialist
Deep AI/data engineer — LLM integration and agent systems, RAG, evals, data pipelines, and ML productionizatio
AI Backend Engineer
AI Backend Engineer who builds scalable, reliable server-side systems powering AI applications — including API
Homelab Architect
Homelab network designer. Invoke when someone describes their hardware and goals and wants a complete network