> ## Documentation Index
> Fetch the complete documentation index at: https://vietbui.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# llm-wiki Architecture

> subgraph REPO['llm-wiki repo']

# llm-wiki Architecture

## Chart 1 — System Overview

```mermaid theme={null}
graph TD
    subgraph REPO["llm-wiki repo"]
        RAW[raw/ — immutable sources]
        WIKI[wiki/ — LLM-maintained pages]
        IDX[index.md + log.md]
        SKILLS[skills/ — local skill overrides]
        SETUP[claude-setup/ — config source of truth]
        TMPL[templates/ — executables]
        MISTAKES[mistakes/ — error log]
    end

    subgraph INDEXES["Search Indexes"]
        QMD[qmd — BM25 + vector]
        LIGHTRAG[.lightrag/ — graph index]
    end

    subgraph QUERY["Query Layer"]
        CHAT[wiki-chat — TUI]
        MCP[wiki-mcp — MCP server]
        SKILL_WC[wiki-context skill]
    end

    subgraph COUNCIL["Council / Review"]
        COUNCIL_PY[council.py]
        VOICE_A[Voice A — Sonnet<br>claude -p --model claude-sonnet-4-6]
        VOICE_B[Voice B — Codex<br>pi -p --model openai-codex/gpt-5.3-codex<br>--no-session]
        CHAIR[Chairman — Opus<br>claude -p --model claude-opus-4-7]
    end

    subgraph CONFIG["Config Distribution"]
        DOTFILES[~/dotfiles/claude/.claude]
        HOME_CLAUDE[~/.claude]
    end

    RAW -->|ingest| WIKI
    WIKI --> IDX
    WIKI -->|post-commit hook| QMD
    WIKI -->|post-commit hook| LIGHTRAG

    QMD --> SKILL_WC
    LIGHTRAG --> CHAT
    LIGHTRAG --> MCP

    SETUP -->|symlinks| DOTFILES
    DOTFILES -->|stow| HOME_CLAUDE

    COUNCIL_PY --> VOICE_A & VOICE_B
    VOICE_A & VOICE_B --> CHAIR
```

***

## Chart 2 — Knowledge Ingestion Pipeline

```mermaid theme={null}
flowchart LR
    SRC_MD[raw/*.md\nweb-scraped sources]
    SRC_PDF[pdfs/*.pdf\nresearch papers]

    DOCLING[docling\nPDF → Markdown]
    CLAUDE_INGEST[Claude\ningest operator]

    subgraph WIKI_WRITE["Wiki Write"]
        SUMMARY[wiki/summaries/]
        CONCEPT[wiki/concepts/]
        ENTITY[wiki/entities/]
        COMPARE[wiki/comparisons/]
        SYNTH[wiki/syntheses/]
    end

    IDX[index.md\ncatalog]
    LOG[log.md\nappend-only log]

    GIT_COMMIT[git commit]

    subgraph HOOK["post-commit hook"]
        QMD_UPDATE[qmd update + embed\nBM25 + vector]
        WIKI_IDX[wiki-index\ngraph extraction\nbackground]
    end

    QMD_STORE[.qmd/ index]
    LR_STORE[.lightrag/ graph]

    SRC_MD --> CLAUDE_INGEST
    SRC_PDF --> DOCLING --> CLAUDE_INGEST

    CLAUDE_INGEST --> WIKI_WRITE
    CLAUDE_INGEST --> IDX
    CLAUDE_INGEST --> LOG

    WIKI_WRITE --> GIT_COMMIT
    IDX --> GIT_COMMIT
    LOG --> GIT_COMMIT

    GIT_COMMIT --> QMD_UPDATE --> QMD_STORE
    GIT_COMMIT --> WIKI_IDX --> LR_STORE
```

***

## Chart 3 — Retrieval Stack

```mermaid theme={null}
graph TD
    Q[User query]

    subgraph QMD_LAYER["qmd — keyword + semantic"]
        LEX[BM25 lexical search]
        VEC[vector semantic search]
        HYDE[HyDE hypothetical doc]
        RERANK[score + rerank]
    end

    subgraph LIGHTRAG_LAYER["LightRAG — graph-aware"]
        LOCAL[local mode\nentity-focused]
        GLOBAL[global mode\ncommunity summaries]
        HYBRID[hybrid mode\nentity + community]
        NAIVE[naive mode\nflat vector]
        OLLAMA_EMB[nomic-embed-text\nvia ollama]
        LLM_SYNTH[synthesis LLM\nqwen2.5:3b or Haiku]
    end

    subgraph FRONTENDS["Access Points"]
        SKILL_WC[wiki-context skill\nClaude Code]
        CHAT_TUI[wiki-chat\nTUI REPL]
        MCP_SRV[wiki-mcp\nMCP server]
    end

    Q --> SKILL_WC --> LEX & VEC & HYDE --> RERANK
    Q --> CHAT_TUI --> HYBRID
    Q --> MCP_SRV --> HYBRID

    HYBRID --> LOCAL & GLOBAL
    LOCAL & GLOBAL --> OLLAMA_EMB
    OLLAMA_EMB --> LLM_SYNTH

    RERANK --> WIKI_PAGES[wiki/*.md pages\nreturned as context]
    LLM_SYNTH --> ANSWER[synthesized answer]
```

***

## Chart 4 — Council System

```mermaid theme={null}
sequenceDiagram
    participant User
    participant council.py
    participant VoiceA as Voice A (Sonnet / claude -p)
    participant VoiceB as Voice B (Codex / pi -p)
    participant Chair as Chairman (Opus / claude -p)
    participant Files as .council/ files
    participant Git

    User->>council.py: question [--chairman] [--add MODEL]

    par parallel dispatch
        council.py->>VoiceA: claude -p --model claude-sonnet-4-6
        council.py->>VoiceB: pi -p --model openai-codex/gpt-5.3-codex --no-session
    end

    VoiceA-->>Files: voice_a.md
    VoiceB-->>Files: voice_b.md

    alt --chairman flag set
        council.py->>Chair: claude -p --model claude-opus-4-7\n(synthesis prompt — all voice files concatenated)
        Chair-->>Files: synthesis.md
    end

    council.py->>Git: git add .council/ && git commit
    council.py-->>User: stdout summary
```

**Voice B is a Pi subprocess** — `pi -p --no-session` produces clean stdout. `opencode run` also writes response to stdout but with a 3-line ANSI header; strip it with:

```bash theme={null}
opencode run "question" -m github-copilot/gpt-5.2-codex 2>/dev/null \
  | sed 's/\x1b\[[0-9;]*m//g' | grep -v "^>" | grep -v "^[[:space:]]*$"
```

**Quick council (no council.py):**

```bash theme={null}
# Voice B — Pi (GPT-5.3-codex, clean stdout)
pi -p "peer review: [question]" --model openai-codex/gpt-5.3-codex --no-session --no-extensions --no-skills

# Voice C — OpenCode run (GPT-5.2-codex via Copilot, filterable stdout)
opencode run "peer review: [question]" -m github-copilot/gpt-5.2-codex 2>/dev/null \
  | sed 's/\x1b\[[0-9;]*m//g' | grep -v "^>" | grep -v "^[[:space:]]*$"
```

**Provider status (validated):**

* `openai-codex/` via Pi → ✅ clean stdout (ChatGPT Team subscription)
* `github-copilot/gpt-5.2-codex` via `opencode run` → ✅ filterable stdout (Copilot subscription)
* `github-copilot/claude-sonnet-4.5` via `opencode run` → ❌ model\_not\_supported (Claude via Copilot unsupported in run mode)
* `opencode/` via Pi → ⏳ add payment method at opencode.ai/workspace billing to unlock

***

## Chart 5 — Config Distribution (Source of Truth)

```mermaid theme={null}
graph LR
    subgraph LLMWIKI["llm-wiki/claude-setup/  ← source of truth"]
        CS_CLAUDE[CLAUDE.md]
        CS_RULES[rules/*.md]
        CS_AGENTS[agents/*.md]
        CS_SKILLS[skills/*/SKILL.md]
        CS_PLUGINS[plugins/config.json]
        CS_SETTINGS[settings.json]
    end

    subgraph DOTFILES["~/dotfiles/claude/.claude/  ← symlinks to llm-wiki"]
        DF_CLAUDE[CLAUDE.md →]
        DF_RULES[rules/*.md →]
        DF_AGENTS[agents/*.md →]
        DF_SKILLS[skills/ →]
        DF_SETTINGS[settings.json →]
    end

    subgraph ACTIVE["~/.claude/  ← stow-managed symlinks"]
        AC_CLAUDE[CLAUDE.md]
        AC_RULES[rules/]
        AC_AGENTS[agents/]
        AC_SKILLS[skills/]
        AC_SETTINGS[settings.json]
    end

    subgraph SHARED["~/dotfiles/shared/  ← generated"]
        SH_AGENTS[AGENTS.md\nsync-agent-rules.sh]
    end

    subgraph OTHER["Other AI tools"]
        GEMINI[~/.gemini/]
        CODEX_DIR[~/.codex/]
        OPENCODE[~/.config/opencode/]
    end

    CS_RULES -->|ln -s| DF_RULES
    CS_AGENTS -->|ln -s| DF_AGENTS
    CS_CLAUDE -->|ln -s| DF_CLAUDE
    CS_SETTINGS -->|ln -s| DF_SETTINGS

    DF_CLAUDE -->|stow| AC_CLAUDE
    DF_RULES -->|stow| AC_RULES
    DF_AGENTS -->|stow| AC_AGENTS
    DF_SETTINGS -->|stow| AC_SETTINGS

    CS_RULES -->|sync-agent-rules.sh| SH_AGENTS
    SH_AGENTS -->|cp| GEMINI
    SH_AGENTS -->|cp| CODEX_DIR
    SH_AGENTS -->|cp| OPENCODE
```

***

## Chart 6 — Hooks / Automation

```mermaid theme={null}
flowchart TD
    subgraph PRETOOL["PreToolUse hooks"]
        PTU_BASH[PreToolUse:Bash]
        PTU_WRITE[PreToolUse:Write/Edit]
        PTU_AGENT[PreToolUse:Agent]
    end

    subgraph POSTTOOL["PostToolUse hooks"]
        POST_BASH[PostToolUse:Bash]
        POST_WRITE[PostToolUse:Write/Edit]
    end

    subgraph STOP_HOOK["Stop hook"]
        STOP[Stop]
    end

    subgraph UPS_HOOK["UserPromptSubmit hook"]
        UPS[UserPromptSubmit]
    end

    subgraph GIT_HOOKS["Git hooks"]
        PC[post-commit hook]
    end

    PTU_BASH --> BASH_GATE["enforce-bash-safety.sh<br>blocks: rm -rf / or ~<br>git push --force to main/master<br>git reset --hard origin/"]

    PTU_WRITE --> LINT_PROTECT["protect-lint-configs.sh<br>blocks edits to:<br>biome.json, .eslintrc*, .noslop,<br>.golangci.yml, .shellcheckrc"]

    PTU_AGENT --> AGENT_WL["enforce-agent-whitelist.sh<br>blocks unknown subagent_type<br>requires explicit model: param<br>whitelist = ~/.claude/agents/*.md"]

    POST_BASH --> ERR_CAP["capture-bash-error.sh<br>exit≠0 → mistakes/raw-log.md"]
    POST_BASH --> PUB_KB["publish-ai-kb.sh<br>when log.md changes<br>→ ~/.claude/wiki/ai-kb/00-index.md"]

    POST_WRITE --> JUDGE_REM["judge-reminder.sh<br>≥25 lines written to code file<br>→ JUDGE-REMINDER in context"]
    POST_WRITE --> LINT_REPORT["lint-on-write.sh (read-only)<br>.sh → shellcheck<br>.json → jq validation<br>.ts → biome check"]

    STOP --> LINT_FIX["lint-autofix.sh<br>biome check --write on .ts/.tsx<br>(if linting:enabled)<br>+ session_end event"]

    UPS --> DOCLING_RUN["detect 'ingest *.pdf'<br>→ run docling<br>→ /tmp/docling-wiki-out/"]

    PC -->|wiki/ or index.md changed| QMD_SYNC[qmd update + embed\nforeground, incremental]
    PC -->|.lightrag/ exists| LIGHTRAG_BG[wiki-index\nbackground, incremental]

    ERR_CAP -.->|accumulates| RAW_LOG[mistakes/raw-log.md]
    RAW_LOG -.->|synthesize-mistakes skill| GLOBAL_RULES[global-prevention-rules.md]
```

**Hook enforcement layer** (deterministic — shell exit code, not model reasoning):

* `exit 2` = block the tool call entirely (bash safety, agent whitelist, lint protection)
* `exit 0` = allow, with optional stdout message to model context (judge reminder, lint report)
* Stop hook fires at end of every turn regardless of tool calls

***

## Chart 7 — Agent Fleet

```mermaid theme={null}
graph TD
    USER[User task]

    DELEGATOR[agent-delegator\norchestrator]

    subgraph IMPL["Implementation"]
        CW[code-writer\nSonnet]
        CWF[code-writer-fast\nHaiku — boilerplate]
    end

    subgraph REVIEW["Review / QA"]
        CR[code-reviewer\nSonnet]
        AR[architecture-reviewer\nOpus]
        DC[design-critic\nSonnet]
        SA[security-auditor\nOpus]
    end

    subgraph DEBUG["Debug / Test"]
        BDT[backend-debug-tester]
        FDT[frontend-debug-tester]
        VV[visual-verifier\nPlaywright]
    end

    subgraph EXPLORE["Explore / Plan"]
        DE[design-explorer\nOpus]
        PLAN[Plan agent\nOpus]
        EX[Explore agent\nHaiku — read-only]
    end

    subgraph OPS["Ops / Docs"]
        PPD[production-platform-devops]
        DW[docs-writer]
        PHM[project-health-monitor]
        SSR[session-report-generator]
    end

    subgraph COUNCIL["Council (subprocess — not fleet)"]
        PI_SUB["pi -p --model openai-codex/gpt-5.3-codex<br>--no-session<br>Codex peer review — advisory only<br>reads stdout, not .agents/ bus"]
    end

    USER --> DELEGATOR
    DELEGATOR --> IMPL & REVIEW & DEBUG & EXPLORE & OPS

    CW -.->|triggers| CR
    CW -.->|triggers| PHM
    PHM -.->|reports bugs to| BDT & FDT
    DE -.->|feeds requirements to| CW
    AR -.->|validates before| CW

    DELEGATOR -.->|arch/security/irreversible| PI_SUB
```

**Pi is not in the agent fleet.** It is a thin subprocess called via Bash when a Codex second opinion is needed. It does not share the Claude Code hooks system, `.agents/` coordination bus, or skill invocation contract.

***

## Chart 8 — Tiered Knowledge Delivery (Push / Hook / Pull)

The retrieval stack in Chart 3 is the **pull** tier only. It's one third of the model that
makes this repo "agent-first": full detail in [Tiered Knowledge Delivery (Push / Hook / Pull)](/concepts/tiered-knowledge-delivery).

```mermaid theme={null}
graph TD
    subgraph T0["Tier 0 — push (paid every session)"]
        CLAUDEMD[CLAUDE.md]
        GPR["mistakes/global-prevention-rules.md<br>capped <=45 non-blank lines"]
        APPLIEDAI[claude-setup/rules/applied-ai.md]
    end

    subgraph T1["Tier 1 — hook (fires on trigger, zero cost idle)"]
        POSTCOMMIT[post-commit -> re-index graph]
        CAPTUREMISTAKE[capture-mistake -> on self-correction]
    end

    subgraph T2["Tier 2 — pull (JIT, default)"]
        WC[wiki-context skill]
        QMDQ[qmd query]
        WIKIPAGES["wiki/concepts, patterns, entities,<br>syntheses, systems, comparisons"]
    end

    AGENT[Agent session] -->|loaded at session start| T0
    AGENT -->|triggered by specific actions| T1
    AGENT -->|explicit search, on demand| T2

    T2 --> WC --> QMDQ --> WIKIPAGES
```

Promotion between tiers: **frequency × cost-of-violation**, decided 2026-06-12 by a 4-lens
agent council audit (`docs/wiki-dual-use-audit-2026-06.md`). Hard constraint: Tier 2 stays the
default — nothing large gets pushed into Tier 0 (the 32KB wiki-index-at-startup removal, which
reclaimed \~8,400 tokens/session, stands as the reference case for what NOT to push).

<iframe
  srcDoc="<!doctype html><html><head><meta charset=&#x22;utf-8&#x22;><style>
html,body{margin:0;height:100%;background:#0f1117;overflow:hidden;font-family:ui-sans-serif,system-ui,-apple-system,sans-serif}
#g{width:100%;height:100%}
#hd{position:absolute;top:0;left:0;right:30px;height:22px;display:flex;align-items:center;gap:6px;padding:0 10px;color:#aeb3c2;font-size:10px;letter-spacing:.08em;text-transform:uppercase;z-index:6;cursor:move;user-select:none;touch-action:none;background:linear-gradient(#0f1117cc,#0f111700)}
#gear{position:absolute;top:5px;right:7px;z-index:7;cursor:pointer;color:#aeb3c2;background:#1b1e27;border:1px solid #2b2f3a;border-radius:6px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px;user-select:none}
#panel{position:absolute;top:31px;right:7px;z-index:7;background:rgba(22,25,34,.96);border:1px solid #2b2f3a;border-radius:8px;padding:6px 9px 9px;display:none;width:150px;color:#c9cdd8;font-size:10px}
#panel.open{display:block}
#panel label{display:flex;justify-content:space-between;margin:7px 0 1px;color:#9aa0b0}
#panel input[type=range]{width:100%;margin:0}
#panel .row{display:flex;align-items:center;gap:6px;margin-top:8px;color:#c9cdd8}
</style><script src=&#x22;https://cdn.jsdelivr.net/npm/force-graph@1.51.4/dist/force-graph.min.js&#x22; integrity=&#x22;sha384-Hm6GpQcTNI5VqGgGS7lLxTGtEFcxu/kOVV0B7ozIZRu9blWVvigv5httJQZ2qZmY&#x22; crossorigin=&#x22;anonymous&#x22;></script></head>
<body><div id=&#x22;hd&#x22;>Graph</div><div id=&#x22;gear&#x22;>⚙</div>
<div id=&#x22;panel&#x22;>
<label>Node size<span id=&#x22;vns&#x22;></span></label><input id=&#x22;ns&#x22; type=&#x22;range&#x22; min=&#x22;0.6&#x22; max=&#x22;6&#x22; step=&#x22;0.2&#x22;>
<label>Link width<span id=&#x22;vlw&#x22;></span></label><input id=&#x22;lw&#x22; type=&#x22;range&#x22; min=&#x22;0&#x22; max=&#x22;3&#x22; step=&#x22;0.1&#x22;>
<label>Label size<span id=&#x22;vts&#x22;></span></label><input id=&#x22;ts&#x22; type=&#x22;range&#x22; min=&#x22;0&#x22; max=&#x22;8&#x22; step=&#x22;0.5&#x22;>
<label>Label opacity<span id=&#x22;vto&#x22;></span></label><input id=&#x22;to&#x22; type=&#x22;range&#x22; min=&#x22;0&#x22; max=&#x22;1&#x22; step=&#x22;0.05&#x22;>
<div id=&#x22;depthRow&#x22;><label>Depth<span id=&#x22;vd&#x22;></span></label><input id=&#x22;dp&#x22; type=&#x22;range&#x22; min=&#x22;1&#x22; max=&#x22;5&#x22; step=&#x22;1&#x22;></div>
<div class=&#x22;row&#x22;><input id=&#x22;ar&#x22; type=&#x22;checkbox&#x22;><span>Directional arrows</span></div>
</div>
<div id=&#x22;g&#x22;></div>
<script>
const NODES=[{&#x22;id&#x22;:&#x22;guides/architecture&#x22;,&#x22;label&#x22;:&#x22;llm-wiki Architecture&#x22;,&#x22;group&#x22;:&#x22;guides&#x22;,&#x22;val&#x22;:2},{&#x22;id&#x22;:&#x22;concepts/tiered-knowledge-delivery&#x22;,&#x22;label&#x22;:&#x22;Tiered Knowledge Delivery (Push / Hook / Pull)&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.8284271247461903},{&#x22;id&#x22;:&#x22;concepts/context-compression&#x22;,&#x22;label&#x22;:&#x22;Context Compression Strategies&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:6.0990195135927845},{&#x22;id&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;label&#x22;:&#x22;Agent Self-Correction&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:5.358898943540674},{&#x22;id&#x22;:&#x22;concepts/nurture-first-development&#x22;,&#x22;label&#x22;:&#x22;Nurture-First Development (NFD)&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4},{&#x22;id&#x22;:&#x22;concepts/instinct-clustering&#x22;,&#x22;label&#x22;:&#x22;Instinct Clustering (Homunculus Pattern)&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.6457513110645907},{&#x22;id&#x22;:&#x22;concepts/knowledge-crystallization-cycle&#x22;,&#x22;label&#x22;:&#x22;Knowledge Crystallization Cycle (KCC)&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.449489742783178},{&#x22;id&#x22;:&#x22;concepts/compounding-knowledge-base&#x22;,&#x22;label&#x22;:&#x22;Compounding Knowledge Base&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.449489742783178},{&#x22;id&#x22;:&#x22;guides/onboarding&#x22;,&#x22;label&#x22;:&#x22;Onboarding: Run llm-wiki as an Agent-First Harness&#x22;,&#x22;group&#x22;:&#x22;guides&#x22;,&#x22;val&#x22;:3.23606797749979},{&#x22;id&#x22;:&#x22;concepts/agent-harness&#x22;,&#x22;label&#x22;:&#x22;Agent Harness&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:7.48074069840786},{&#x22;id&#x22;:&#x22;concepts/agent-skills&#x22;,&#x22;label&#x22;:&#x22;Agent Skills&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:5.795831523312719},{&#x22;id&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;label&#x22;:&#x22;Lean Agentic Coding Workflow&#x22;,&#x22;group&#x22;:&#x22;syntheses&#x22;,&#x22;val&#x22;:5.795831523312719},{&#x22;id&#x22;:&#x22;entities/opencode&#x22;,&#x22;label&#x22;:&#x22;OpenCode&#x22;,&#x22;group&#x22;:&#x22;entities&#x22;,&#x22;val&#x22;:5.358898943540674},{&#x22;id&#x22;:&#x22;concepts/verification-pipeline&#x22;,&#x22;label&#x22;:&#x22;Verification Pipeline&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:5.358898943540674},{&#x22;id&#x22;:&#x22;entities/pi-agent&#x22;,&#x22;label&#x22;:&#x22;Pi Agent (pi-mono)&#x22;,&#x22;group&#x22;:&#x22;entities&#x22;,&#x22;val&#x22;:5.123105625617661},{&#x22;id&#x22;:&#x22;concepts/ralph-loop&#x22;,&#x22;label&#x22;:&#x22;Ralph Loop&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4.872983346207417},{&#x22;id&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;,&#x22;label&#x22;:&#x22;Multi-Vendor Adversarial Review&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4.872983346207417},{&#x22;id&#x22;:&#x22;concepts/agent-subagents&#x22;,&#x22;label&#x22;:&#x22;Agent Subagents&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4.741657386773941},{&#x22;id&#x22;:&#x22;concepts/context-degradation&#x22;,&#x22;label&#x22;:&#x22;Context Degradation Patterns&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4.60555127546399},{&#x22;id&#x22;:&#x22;concepts/worktree-isolation&#x22;,&#x22;label&#x22;:&#x22;Worktree Isolation&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4.60555127546399},{&#x22;id&#x22;:&#x22;concepts/context-engineering&#x22;,&#x22;label&#x22;:&#x22;Context Engineering&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4.464101615137754},{&#x22;id&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;,&#x22;label&#x22;:&#x22;Agent Primitive Selection&#x22;,&#x22;group&#x22;:&#x22;syntheses&#x22;,&#x22;val&#x22;:4.464101615137754},{&#x22;id&#x22;:&#x22;comparisons/spec-driven-frameworks-vs-native&#x22;,&#x22;label&#x22;:&#x22;Spec-Driven Frameworks vs Native Claude Code&#x22;,&#x22;group&#x22;:&#x22;comparisons&#x22;,&#x22;val&#x22;:4.3166247903554},{&#x22;id&#x22;:&#x22;concepts/contextual-retrieval&#x22;,&#x22;label&#x22;:&#x22;Contextual Retrieval&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4.16227766016838},{&#x22;id&#x22;:&#x22;concepts/agentic-memory-tool&#x22;,&#x22;label&#x22;:&#x22;Agentic Memory Tool&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4},{&#x22;id&#x22;:&#x22;concepts/memory-bank-pattern&#x22;,&#x22;label&#x22;:&#x22;Memory Bank Pattern&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4},{&#x22;id&#x22;:&#x22;concepts/rules-vs-hooks&#x22;,&#x22;label&#x22;:&#x22;Rules vs. Hooks&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:4},{&#x22;id&#x22;:&#x22;comparisons/claude-code-vs-opencode-plugins&#x22;,&#x22;label&#x22;:&#x22;Claude Code vs OpenCode Plugin Systems&#x22;,&#x22;group&#x22;:&#x22;comparisons&#x22;,&#x22;val&#x22;:3.8284271247461903},{&#x22;id&#x22;:&#x22;concepts/branch-strategy-for-agents&#x22;,&#x22;label&#x22;:&#x22;Branch Strategy for Agents&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.8284271247461903},{&#x22;id&#x22;:&#x22;concepts/llm-as-judge&#x22;,&#x22;label&#x22;:&#x22;LLM-as-Judge&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.8284271247461903},{&#x22;id&#x22;:&#x22;entities/qmd&#x22;,&#x22;label&#x22;:&#x22;qmd&#x22;,&#x22;group&#x22;:&#x22;entities&#x22;,&#x22;val&#x22;:3.6457513110645907},{&#x22;id&#x22;:&#x22;concepts/model-tier-routing&#x22;,&#x22;label&#x22;:&#x22;Model Tier Routing&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.6457513110645907},{&#x22;id&#x22;:&#x22;syntheses/local-rag-wiki&#x22;,&#x22;label&#x22;:&#x22;Local Wiki RAG: LightRAG Graph Stack&#x22;,&#x22;group&#x22;:&#x22;syntheses&#x22;,&#x22;val&#x22;:3.6457513110645907},{&#x22;id&#x22;:&#x22;entities/everything-claude-code&#x22;,&#x22;label&#x22;:&#x22;Everything Claude Code (ECC)&#x22;,&#x22;group&#x22;:&#x22;entities&#x22;,&#x22;val&#x22;:3.449489742783178},{&#x22;id&#x22;:&#x22;entities/mnemory&#x22;,&#x22;label&#x22;:&#x22;Mnemory&#x22;,&#x22;group&#x22;:&#x22;entities&#x22;,&#x22;val&#x22;:3.449489742783178},{&#x22;id&#x22;:&#x22;concepts/unit-testing&#x22;,&#x22;label&#x22;:&#x22;Unit Testing&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.449489742783178},{&#x22;id&#x22;:&#x22;concepts/preference-feedback-loop&#x22;,&#x22;label&#x22;:&#x22;Preference Feedback Loop&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.449489742783178},{&#x22;id&#x22;:&#x22;concepts/compound-engineering&#x22;,&#x22;label&#x22;:&#x22;Compound Engineering&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.23606797749979},{&#x22;id&#x22;:&#x22;entities/headroom&#x22;,&#x22;label&#x22;:&#x22;Headroom&#x22;,&#x22;group&#x22;:&#x22;entities&#x22;,&#x22;val&#x22;:3.23606797749979},{&#x22;id&#x22;:&#x22;concepts/dynamic-context-pruning&#x22;,&#x22;label&#x22;:&#x22;Dynamic Context Pruning (DCP)&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.23606797749979},{&#x22;id&#x22;:&#x22;concepts/context-window&#x22;,&#x22;label&#x22;:&#x22;Context Window&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.23606797749979},{&#x22;id&#x22;:&#x22;entities/lean-session&#x22;,&#x22;label&#x22;:&#x22;lean-session plugin&#x22;,&#x22;group&#x22;:&#x22;entities&#x22;,&#x22;val&#x22;:3.23606797749979},{&#x22;id&#x22;:&#x22;concepts/cicd-testing&#x22;,&#x22;label&#x22;:&#x22;CI/CD Testing&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.23606797749979},{&#x22;id&#x22;:&#x22;concepts/software-documentation&#x22;,&#x22;label&#x22;:&#x22;Software Documentation&#x22;,&#x22;group&#x22;:&#x22;concepts&#x22;,&#x22;val&#x22;:3.23606797749979}],LINKS=[{&#x22;source&#x22;:&#x22;concepts/agent-harness&#x22;,&#x22;target&#x22;:&#x22;concepts/ralph-loop&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-harness&#x22;,&#x22;target&#x22;:&#x22;concepts/context-degradation&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-harness&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/instinct-clustering&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/verification-pipeline&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/unit-testing&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/cicd-testing&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/model-tier-routing&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/branch-strategy-for-agents&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;entities/opencode&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/context-engineering&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/llm-as-judge&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/rules-vs-hooks&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-self-correction&#x22;,&#x22;target&#x22;:&#x22;concepts/preference-feedback-loop&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-skills&#x22;,&#x22;target&#x22;:&#x22;concepts/compound-engineering&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-skills&#x22;,&#x22;target&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-skills&#x22;,&#x22;target&#x22;:&#x22;concepts/model-tier-routing&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-skills&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-skills&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-subagents&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-subagents&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-skills&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-subagents&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-subagents&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-subagents&#x22;,&#x22;target&#x22;:&#x22;concepts/context-degradation&#x22;},{&#x22;source&#x22;:&#x22;concepts/agent-subagents&#x22;,&#x22;target&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;},{&#x22;source&#x22;:&#x22;concepts/agentic-memory-tool&#x22;,&#x22;target&#x22;:&#x22;entities/mnemory&#x22;},{&#x22;source&#x22;:&#x22;concepts/agentic-memory-tool&#x22;,&#x22;target&#x22;:&#x22;concepts/context-engineering&#x22;},{&#x22;source&#x22;:&#x22;concepts/agentic-memory-tool&#x22;,&#x22;target&#x22;:&#x22;concepts/context-window&#x22;},{&#x22;source&#x22;:&#x22;concepts/agentic-memory-tool&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/branch-strategy-for-agents&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/branch-strategy-for-agents&#x22;,&#x22;target&#x22;:&#x22;concepts/ralph-loop&#x22;},{&#x22;source&#x22;:&#x22;concepts/branch-strategy-for-agents&#x22;,&#x22;target&#x22;:&#x22;concepts/verification-pipeline&#x22;},{&#x22;source&#x22;:&#x22;concepts/cicd-testing&#x22;,&#x22;target&#x22;:&#x22;concepts/verification-pipeline&#x22;},{&#x22;source&#x22;:&#x22;concepts/cicd-testing&#x22;,&#x22;target&#x22;:&#x22;concepts/unit-testing&#x22;},{&#x22;source&#x22;:&#x22;concepts/compound-engineering&#x22;,&#x22;target&#x22;:&#x22;concepts/compounding-knowledge-base&#x22;},{&#x22;source&#x22;:&#x22;concepts/compound-engineering&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/compound-engineering&#x22;,&#x22;target&#x22;:&#x22;concepts/verification-pipeline&#x22;},{&#x22;source&#x22;:&#x22;concepts/compounding-knowledge-base&#x22;,&#x22;target&#x22;:&#x22;concepts/compound-engineering&#x22;},{&#x22;source&#x22;:&#x22;concepts/compounding-knowledge-base&#x22;,&#x22;target&#x22;:&#x22;concepts/contextual-retrieval&#x22;},{&#x22;source&#x22;:&#x22;concepts/compounding-knowledge-base&#x22;,&#x22;target&#x22;:&#x22;entities/qmd&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-compression&#x22;,&#x22;target&#x22;:&#x22;entities/headroom&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-compression&#x22;,&#x22;target&#x22;:&#x22;comparisons/claude-code-vs-opencode-plugins&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-compression&#x22;,&#x22;target&#x22;:&#x22;entities/everything-claude-code&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-compression&#x22;,&#x22;target&#x22;:&#x22;concepts/context-degradation&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-compression&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-compression&#x22;,&#x22;target&#x22;:&#x22;concepts/ralph-loop&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-compression&#x22;,&#x22;target&#x22;:&#x22;concepts/dynamic-context-pruning&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-degradation&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-degradation&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-degradation&#x22;,&#x22;target&#x22;:&#x22;concepts/ralph-loop&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-engineering&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-subagents&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-engineering&#x22;,&#x22;target&#x22;:&#x22;concepts/agentic-memory-tool&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-engineering&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-engineering&#x22;,&#x22;target&#x22;:&#x22;concepts/context-window&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-engineering&#x22;,&#x22;target&#x22;:&#x22;concepts/context-degradation&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-engineering&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-window&#x22;,&#x22;target&#x22;:&#x22;concepts/context-engineering&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-window&#x22;,&#x22;target&#x22;:&#x22;concepts/context-degradation&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-window&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-window&#x22;,&#x22;target&#x22;:&#x22;concepts/agentic-memory-tool&#x22;},{&#x22;source&#x22;:&#x22;concepts/context-window&#x22;,&#x22;target&#x22;:&#x22;entities/everything-claude-code&#x22;},{&#x22;source&#x22;:&#x22;concepts/contextual-retrieval&#x22;,&#x22;target&#x22;:&#x22;concepts/compounding-knowledge-base&#x22;},{&#x22;source&#x22;:&#x22;concepts/contextual-retrieval&#x22;,&#x22;target&#x22;:&#x22;entities/qmd&#x22;},{&#x22;source&#x22;:&#x22;concepts/dynamic-context-pruning&#x22;,&#x22;target&#x22;:&#x22;entities/opencode&#x22;},{&#x22;source&#x22;:&#x22;concepts/dynamic-context-pruning&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/dynamic-context-pruning&#x22;,&#x22;target&#x22;:&#x22;concepts/context-degradation&#x22;},{&#x22;source&#x22;:&#x22;concepts/dynamic-context-pruning&#x22;,&#x22;target&#x22;:&#x22;comparisons/claude-code-vs-opencode-plugins&#x22;},{&#x22;source&#x22;:&#x22;concepts/instinct-clustering&#x22;,&#x22;target&#x22;:&#x22;concepts/agentic-memory-tool&#x22;},{&#x22;source&#x22;:&#x22;concepts/instinct-clustering&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-self-correction&#x22;},{&#x22;source&#x22;:&#x22;concepts/instinct-clustering&#x22;,&#x22;target&#x22;:&#x22;entities/mnemory&#x22;},{&#x22;source&#x22;:&#x22;concepts/instinct-clustering&#x22;,&#x22;target&#x22;:&#x22;entities/everything-claude-code&#x22;},{&#x22;source&#x22;:&#x22;concepts/instinct-clustering&#x22;,&#x22;target&#x22;:&#x22;entities/opencode&#x22;},{&#x22;source&#x22;:&#x22;concepts/instinct-clustering&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/knowledge-crystallization-cycle&#x22;,&#x22;target&#x22;:&#x22;concepts/nurture-first-development&#x22;},{&#x22;source&#x22;:&#x22;concepts/knowledge-crystallization-cycle&#x22;,&#x22;target&#x22;:&#x22;concepts/compounding-knowledge-base&#x22;},{&#x22;source&#x22;:&#x22;concepts/knowledge-crystallization-cycle&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-self-correction&#x22;},{&#x22;source&#x22;:&#x22;concepts/knowledge-crystallization-cycle&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-skills&#x22;},{&#x22;source&#x22;:&#x22;concepts/knowledge-crystallization-cycle&#x22;,&#x22;target&#x22;:&#x22;concepts/agentic-memory-tool&#x22;},{&#x22;source&#x22;:&#x22;concepts/llm-as-judge&#x22;,&#x22;target&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;},{&#x22;source&#x22;:&#x22;concepts/llm-as-judge&#x22;,&#x22;target&#x22;:&#x22;concepts/verification-pipeline&#x22;},{&#x22;source&#x22;:&#x22;concepts/memory-bank-pattern&#x22;,&#x22;target&#x22;:&#x22;concepts/agentic-memory-tool&#x22;},{&#x22;source&#x22;:&#x22;concepts/memory-bank-pattern&#x22;,&#x22;target&#x22;:&#x22;entities/mnemory&#x22;},{&#x22;source&#x22;:&#x22;concepts/memory-bank-pattern&#x22;,&#x22;target&#x22;:&#x22;concepts/rules-vs-hooks&#x22;},{&#x22;source&#x22;:&#x22;concepts/memory-bank-pattern&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/model-tier-routing&#x22;,&#x22;target&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;},{&#x22;source&#x22;:&#x22;concepts/model-tier-routing&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-subagents&#x22;},{&#x22;source&#x22;:&#x22;concepts/model-tier-routing&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-self-correction&#x22;},{&#x22;source&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;,&#x22;target&#x22;:&#x22;entities/pi-agent&#x22;},{&#x22;source&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;,&#x22;target&#x22;:&#x22;concepts/llm-as-judge&#x22;},{&#x22;source&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;,&#x22;target&#x22;:&#x22;concepts/verification-pipeline&#x22;},{&#x22;source&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;,&#x22;target&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;},{&#x22;source&#x22;:&#x22;concepts/nurture-first-development&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-skills&#x22;},{&#x22;source&#x22;:&#x22;concepts/nurture-first-development&#x22;,&#x22;target&#x22;:&#x22;concepts/memory-bank-pattern&#x22;},{&#x22;source&#x22;:&#x22;concepts/nurture-first-development&#x22;,&#x22;target&#x22;:&#x22;concepts/agentic-memory-tool&#x22;},{&#x22;source&#x22;:&#x22;concepts/nurture-first-development&#x22;,&#x22;target&#x22;:&#x22;concepts/preference-feedback-loop&#x22;},{&#x22;source&#x22;:&#x22;concepts/nurture-first-development&#x22;,&#x22;target&#x22;:&#x22;concepts/compounding-knowledge-base&#x22;},{&#x22;source&#x22;:&#x22;concepts/nurture-first-development&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/preference-feedback-loop&#x22;,&#x22;target&#x22;:&#x22;concepts/llm-as-judge&#x22;},{&#x22;source&#x22;:&#x22;concepts/preference-feedback-loop&#x22;,&#x22;target&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;},{&#x22;source&#x22;:&#x22;concepts/preference-feedback-loop&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-self-correction&#x22;},{&#x22;source&#x22;:&#x22;concepts/ralph-loop&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/rules-vs-hooks&#x22;,&#x22;target&#x22;:&#x22;concepts/memory-bank-pattern&#x22;},{&#x22;source&#x22;:&#x22;concepts/rules-vs-hooks&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-self-correction&#x22;},{&#x22;source&#x22;:&#x22;concepts/rules-vs-hooks&#x22;,&#x22;target&#x22;:&#x22;entities/opencode&#x22;},{&#x22;source&#x22;:&#x22;concepts/software-documentation&#x22;,&#x22;target&#x22;:&#x22;concepts/contextual-retrieval&#x22;},{&#x22;source&#x22;:&#x22;concepts/tiered-knowledge-delivery&#x22;,&#x22;target&#x22;:&#x22;concepts/knowledge-crystallization-cycle&#x22;},{&#x22;source&#x22;:&#x22;concepts/tiered-knowledge-delivery&#x22;,&#x22;target&#x22;:&#x22;concepts/compounding-knowledge-base&#x22;},{&#x22;source&#x22;:&#x22;concepts/tiered-knowledge-delivery&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/tiered-knowledge-delivery&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-self-correction&#x22;},{&#x22;source&#x22;:&#x22;concepts/tiered-knowledge-delivery&#x22;,&#x22;target&#x22;:&#x22;concepts/instinct-clustering&#x22;},{&#x22;source&#x22;:&#x22;concepts/tiered-knowledge-delivery&#x22;,&#x22;target&#x22;:&#x22;concepts/nurture-first-development&#x22;},{&#x22;source&#x22;:&#x22;concepts/unit-testing&#x22;,&#x22;target&#x22;:&#x22;concepts/cicd-testing&#x22;},{&#x22;source&#x22;:&#x22;concepts/unit-testing&#x22;,&#x22;target&#x22;:&#x22;concepts/verification-pipeline&#x22;},{&#x22;source&#x22;:&#x22;concepts/verification-pipeline&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;concepts/verification-pipeline&#x22;,&#x22;target&#x22;:&#x22;concepts/ralph-loop&#x22;},{&#x22;source&#x22;:&#x22;concepts/verification-pipeline&#x22;,&#x22;target&#x22;:&#x22;concepts/cicd-testing&#x22;},{&#x22;source&#x22;:&#x22;concepts/verification-pipeline&#x22;,&#x22;target&#x22;:&#x22;concepts/unit-testing&#x22;},{&#x22;source&#x22;:&#x22;concepts/worktree-isolation&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;concepts/worktree-isolation&#x22;,&#x22;target&#x22;:&#x22;concepts/branch-strategy-for-agents&#x22;},{&#x22;source&#x22;:&#x22;concepts/worktree-isolation&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-subagents&#x22;},{&#x22;source&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-skills&#x22;},{&#x22;source&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-subagents&#x22;},{&#x22;source&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;,&#x22;target&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;},{&#x22;source&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;,&#x22;target&#x22;:&#x22;concepts/verification-pipeline&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;concepts/verification-pipeline&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-skills&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;comparisons/spec-driven-frameworks-vs-native&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;concepts/worktree-isolation&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;entities/lean-session&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;entities/opencode&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-self-correction&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;concepts/rules-vs-hooks&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;concepts/memory-bank-pattern&#x22;},{&#x22;source&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;,&#x22;target&#x22;:&#x22;syntheses/agent-primitive-selection&#x22;},{&#x22;source&#x22;:&#x22;syntheses/local-rag-wiki&#x22;,&#x22;target&#x22;:&#x22;concepts/contextual-retrieval&#x22;},{&#x22;source&#x22;:&#x22;syntheses/local-rag-wiki&#x22;,&#x22;target&#x22;:&#x22;entities/qmd&#x22;},{&#x22;source&#x22;:&#x22;comparisons/claude-code-vs-opencode-plugins&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;comparisons/claude-code-vs-opencode-plugins&#x22;,&#x22;target&#x22;:&#x22;entities/opencode&#x22;},{&#x22;source&#x22;:&#x22;comparisons/claude-code-vs-opencode-plugins&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;comparisons/spec-driven-frameworks-vs-native&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;comparisons/spec-driven-frameworks-vs-native&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;comparisons/spec-driven-frameworks-vs-native&#x22;,&#x22;target&#x22;:&#x22;concepts/memory-bank-pattern&#x22;},{&#x22;source&#x22;:&#x22;comparisons/spec-driven-frameworks-vs-native&#x22;,&#x22;target&#x22;:&#x22;concepts/rules-vs-hooks&#x22;},{&#x22;source&#x22;:&#x22;comparisons/spec-driven-frameworks-vs-native&#x22;,&#x22;target&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;},{&#x22;source&#x22;:&#x22;comparisons/spec-driven-frameworks-vs-native&#x22;,&#x22;target&#x22;:&#x22;concepts/branch-strategy-for-agents&#x22;},{&#x22;source&#x22;:&#x22;entities/everything-claude-code&#x22;,&#x22;target&#x22;:&#x22;concepts/instinct-clustering&#x22;},{&#x22;source&#x22;:&#x22;entities/everything-claude-code&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;entities/everything-claude-code&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;entities/headroom&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;entities/headroom&#x22;,&#x22;target&#x22;:&#x22;concepts/preference-feedback-loop&#x22;},{&#x22;source&#x22;:&#x22;entities/headroom&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;entities/lean-session&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;entities/lean-session&#x22;,&#x22;target&#x22;:&#x22;syntheses/lean-agentic-workflow&#x22;},{&#x22;source&#x22;:&#x22;entities/lean-session&#x22;,&#x22;target&#x22;:&#x22;entities/opencode&#x22;},{&#x22;source&#x22;:&#x22;entities/lean-session&#x22;,&#x22;target&#x22;:&#x22;concepts/ralph-loop&#x22;},{&#x22;source&#x22;:&#x22;entities/mnemory&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;entities/mnemory&#x22;,&#x22;target&#x22;:&#x22;concepts/agentic-memory-tool&#x22;},{&#x22;source&#x22;:&#x22;entities/mnemory&#x22;,&#x22;target&#x22;:&#x22;concepts/context-engineering&#x22;},{&#x22;source&#x22;:&#x22;entities/opencode&#x22;,&#x22;target&#x22;:&#x22;comparisons/claude-code-vs-opencode-plugins&#x22;},{&#x22;source&#x22;:&#x22;entities/opencode&#x22;,&#x22;target&#x22;:&#x22;concepts/instinct-clustering&#x22;},{&#x22;source&#x22;:&#x22;entities/opencode&#x22;,&#x22;target&#x22;:&#x22;concepts/context-compression&#x22;},{&#x22;source&#x22;:&#x22;entities/opencode&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-harness&#x22;},{&#x22;source&#x22;:&#x22;entities/pi-agent&#x22;,&#x22;target&#x22;:&#x22;concepts/model-tier-routing&#x22;},{&#x22;source&#x22;:&#x22;entities/pi-agent&#x22;,&#x22;target&#x22;:&#x22;concepts/multi-vendor-adversarial-review&#x22;},{&#x22;source&#x22;:&#x22;entities/pi-agent&#x22;,&#x22;target&#x22;:&#x22;comparisons/claude-code-vs-opencode-plugins&#x22;},{&#x22;source&#x22;:&#x22;entities/pi-agent&#x22;,&#x22;target&#x22;:&#x22;entities/opencode&#x22;},{&#x22;source&#x22;:&#x22;entities/pi-agent&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-self-correction&#x22;},{&#x22;source&#x22;:&#x22;guides/onboarding&#x22;,&#x22;target&#x22;:&#x22;concepts/software-documentation&#x22;},{&#x22;source&#x22;:&#x22;guides/onboarding&#x22;,&#x22;target&#x22;:&#x22;concepts/agent-skills&#x22;},{&#x22;source&#x22;:&#x22;guides/onboarding&#x22;,&#x22;target&#x22;:&#x22;syntheses/local-rag-wiki&#x22;},{&#x22;source&#x22;:&#x22;guides/onboarding&#x22;,&#x22;target&#x22;:&#x22;concepts/tiered-knowledge-delivery&#x22;},{&#x22;source&#x22;:&#x22;guides/onboarding&#x22;,&#x22;target&#x22;:&#x22;concepts/model-tier-routing&#x22;},{&#x22;source&#x22;:&#x22;guides/architecture&#x22;,&#x22;target&#x22;:&#x22;concepts/tiered-knowledge-delivery&#x22;}],CUR=&#x22;guides/architecture&#x22;,MAXD=3;
const C={concepts:'#8B7CF6',patterns:'#0D9373',systems:'#E0567C',syntheses:'#E2A03F',comparisons:'#3B82F6',entities:'#14B8A6',guides:'#9CA3AF'};
function lid(x){return (x&&x.id!==undefined)?x.id:x;}
const ADJ=new Map(NODES.map(function(n){return [n.id,new Set()];}));
LINKS.forEach(function(l){var s=lid(l.source),t=lid(l.target);if(ADJ.has(s)&&ADJ.has(t)){ADJ.get(s).add(t);ADJ.get(t).add(s);}});
var opt={ns:1.8,lw:0.6,ts:3.5,to:0.75,dp:2,ar:false};
function visible(){
if(!CUR)return {nodes:NODES,links:LINKS};
var dist=new Map([[CUR,0]]),fr=[CUR];
for(var d=1;d<=opt.dp;d++){var nx=[];fr.forEach(function(u){(ADJ.get(u)||[]).forEach(function(v){if(!dist.has(v)){dist.set(v,d);nx.push(v);}});});fr=nx;}
var keep=new Set(dist.keys());
return {nodes:NODES.filter(function(n){return keep.has(n.id);}),links:LINKS.filter(function(l){return keep.has(lid(l.source))&&keep.has(lid(l.target));})};
}
var el=document.getElementById('g');
var G=ForceGraph()(el).backgroundColor('#0f1117').nodeId('id')
.warmupTicks(24).cooldownTicks(70).autoPauseRedraw(true)
.nodeColor(function(n){return C[n.group]||'#9CA3AF';}).nodeLabel('label').nodeVal(function(n){return n.val;})
.linkColor(function(){return 'rgba(255,255,255,0.12)';})
.nodeRelSize(opt.ns).linkWidth(opt.lw)
.linkDirectionalArrowLength(0).linkDirectionalArrowRelPos(1).linkDirectionalArrowColor(function(){return 'rgba(255,255,255,0.4)';})
.nodeCanvasObjectMode(function(){return 'after';})
.nodeCanvasObject(function(n,ctx,scale){var r=opt.ns*Math.sqrt(n.val||1);
if(n.id===CUR){ctx.beginPath();ctx.arc(n.x,n.y,r+1.6,0,6.283);ctx.strokeStyle='#fff';ctx.lineWidth=1.2/scale;ctx.stroke();}
if(opt.to>0&&opt.ts>0){var t=n.label.length>28?n.label.slice(0,26)+'…':n.label;ctx.globalAlpha=opt.to;ctx.font=((n.id===CUR?opt.ts+1:opt.ts))+'px ui-sans-serif,sans-serif';ctx.fillStyle=(n.id===CUR)?'#ffffff':'#aab0c0';ctx.textAlign='center';ctx.textBaseline='top';ctx.fillText(t,n.x,n.y+r+1.5);ctx.globalAlpha=1;}})
.onNodeClick(function(n){if(window.top){window.top.location.href='/'+n.id;}});
G.graphData(visible());G.d3VelocityDecay(0.4);
function fit(){G.zoomToFit(400,20);}
setTimeout(fit,350);setTimeout(fit,1100);
// Stop the render/sim loop while idle so the fixed widget never repaints during
// parent-page scroll; resume only while the pointer is over the widget.
var pt;function pause(){G.pauseAnimation();}function resume(){G.resumeAnimation();}
function idle(ms){clearTimeout(pt);pt=setTimeout(pause,ms);}
document.body.addEventListener('pointerenter',function(){clearTimeout(pt);resume();});
document.body.addEventListener('pointerleave',function(){idle(250);});
addEventListener('resize',function(){resume();G.zoomToFit(0,20);idle(700);});
idle(2000);
function apply(re){resume();G.nodeRelSize(opt.ns).linkWidth(opt.lw).linkDirectionalArrowLength(opt.ar?2.6:0);if(re){G.graphData(visible());setTimeout(fit,450);}idle(re?2200:1400);}
function bind(id,key,fmt,re){var e=document.getElementById(id),o=document.getElementById('v'+id);e.value=opt[key];if(o)o.textContent=fmt(opt[key]);e.addEventListener('input',function(){opt[key]=parseFloat(e.value);if(o)o.textContent=fmt(opt[key]);apply(re);});}
bind('ns','ns',function(v){return v.toFixed(1);},false);
bind('lw','lw',function(v){return v.toFixed(1);},false);
bind('ts','ts',function(v){return v.toFixed(1);},false);
bind('to','to',function(v){return v.toFixed(2);},false);
var dE=document.getElementById('dp'),dO=document.getElementById('vd');dE.max=MAXD;dE.value=opt.dp;dO.textContent=opt.dp;dE.addEventListener('input',function(){opt.dp=parseInt(dE.value,10);dO.textContent=opt.dp;apply(true);});
if(!CUR)document.getElementById('depthRow').style.display='none';
var aE=document.getElementById('ar');aE.checked=opt.ar;aE.addEventListener('change',function(){opt.ar=aE.checked;apply(false);});
document.getElementById('gear').addEventListener('click',function(){document.getElementById('panel').classList.toggle('open');});
var hd=document.getElementById('hd');hd.textContent='⠿  '+(CUR?'Local graph':'Knowledge graph');
// free-form placement: drag by the header. Default is bottom-right (inline style);
// a moved position is saved per parent-origin and restored on every page.
function clampPos(fe,l,t){var TW=(window.top||window),r=fe.getBoundingClientRect();return [Math.min(Math.max(0,l),Math.max(0,TW.innerWidth-r.width)),Math.min(Math.max(0,t),Math.max(0,TW.innerHeight-r.height))];}
function place(fe,l,t){var p=clampPos(fe,l,t);fe.style.left=p[0]+'px';fe.style.top=p[1]+'px';fe.style.right='auto';fe.style.bottom='auto';}
try{var sp=JSON.parse(localStorage.getItem('llmwiki_graph_pos'));if(sp&&window.frameElement)place(window.frameElement,sp.l,sp.t);}catch(e){if(window.console)console.debug('graph: saved position unavailable',e);}
hd.addEventListener('pointerdown',function(e){var fe=window.frameElement;if(!fe)return;var rect=fe.getBoundingClientRect();var sx=e.screenX,sy=e.screenY,L=rect.left,T=rect.top;place(fe,L,T);hd.setPointerCapture(e.pointerId);
function mv(ev){place(fe,L+ev.screenX-sx,T+ev.screenY-sy);}
function up(){if(hd.hasPointerCapture(e.pointerId))hd.releasePointerCapture(e.pointerId);hd.removeEventListener('pointermove',mv);hd.removeEventListener('pointerup',up);try{localStorage.setItem('llmwiki_graph_pos',JSON.stringify({l:parseFloat(fe.style.left),t:parseFloat(fe.style.top)}));}catch(e2){if(window.console)console.debug('graph: could not persist position',e2);}}
hd.addEventListener('pointermove',mv);hd.addEventListener('pointerup',up);e.preventDefault();});
</script></body></html>"
  title="Knowledge graph"
  loading="lazy"
  style={{position:"fixed",right:"18px",bottom:"18px",width:"320px",height:"340px",border:0,borderRadius:"14px",boxShadow:"0 6px 28px rgba(0,0,0,0.38)",zIndex:50,background:"#0f1117"}}
/>
