1	# Wiki Index
2
3	A catalog of everything in this knowledge base. Updated by Nano on every ingest.
4
5	## Tools & Software
6	*Guest-endorsed or actively used — not sponsors.*
7	- [[Agent Browser]] — Vercel Labs Rust CLI for AI-driven browser automation. Credential vault, accessibility-tree refs, React introspection, HAR recording.
8	- [[Devin]] — AI coding agent by Cognition. 15-thread code factory model.
9	- [[OpenClaw]] — Open-source AI executive assistant / chief of staff.
10	- [[ClawChief]] — Ryan Carson's open-sourced OpenClaw chief-of-staff config.
11	- [[Claude Code]] — Anthropic's coding agent. Ryan Carson's preferred coding tool.
12	- [[Codex]] — OpenAI's coding agent / browser testing tool.
13	- [[Sentry]] — Error monitoring. Used with Devin for automated bug triage.
14	- [[Tailscale]] — WireGuard mesh network. Used for remote access to Mac Mini services from phone. Includes full recipe for exposing any local port via `tailscale serve` + launchd.
15	- [[Figma]] — Design/wireframing. Visual context layer in Ravi Mehta's system.
16	- [[AgentsView]] — Agent token/cost accounting tool. Useful when new frontier-model pricing appears before dashboards and pricing databases catch up.
17	- [[Teach Skill]] — `/teach` by Matt Pocock. ZPD-based personalized tutor with persistent learning records. Trigger-based (no idle context cost). Claude Code only. Install: `npx skills add mattpocock/skills --skill teach`.
18
19	## Anthropic Official Repos & Resources
20	*Official Anthropic repositories — tools, SDKs, plugins, and reference implementations.*
21	- [[Anthropic Skills Repo]] — Reference implementations of the Claude Agent Skills system. Template for building custom skills.
22	- [[Claude Plugins Official]] — Anthropic's curated plugin marketplace for Claude Code. Install via `/plugin install`.
23	- [[Ralph Loop Plugin]] — Stop-hook-based autonomous iteration loop. Feeds Claude the same prompt until it outputs a completion promise. For well-defined tasks with clear success criteria and automatic verification.
24	- [[Hookify Plugin]] — Create Claude Code hooks from natural language. `/hookify warn me when I use rm -rf` → working hook instantly. No hooks.json editing required.
25	- [[Knowledge Work Plugins]] — 18 open-source role-specific plugins (sales, legal, finance, design, engineering, HR, ops, etc.) built on Claude Agent SDK.
26	- [[Claude for Legal]] — Deep legal workflow plugin suite (transactional + litigation + learning). Integrates with Westlaw, CourtListener.
27	- [[Claude for Life Sciences]] — Research marketplace: PubMed, BioRender, Synapse, Consensus + RNA-seq/Nextflow skills.
28	- [[Claude for Healthcare]] — Healthcare marketplace: FHIR developer, prior-auth review, clinical trial protocols + CMS/NPI servers.
29	- [[Claude for Financial Services]] — 10 named agents (Pitch Agent, GL Reconciler, Market Researcher, KYC Screener, etc.) + 9 vertical skill bundles (IB, ER, PE, WM, fund admin). Deployable as Cowork plugins or Managed Agent templates.
30	- [[Managed Agents]] — Anthropic's hosted agent orchestration platform. Self-hosted sandbox option (tool execution on your infra via outbound-polling worker), mid-session tool/MCP updates, large MCP output auto-offload. Scheduled deployments (cron, no custom infra). Env vars in vaults (credentials injected at network boundary). Opus 4.8 tool-description guidance included.
31	- [[Claude Agent SDK Demos]] — 8 local demo apps showcasing Claude Agent SDK patterns (multi-agent, streaming, email, docs).
32	- [[Anthropic SDK Go]] — `go get anthropic-sdk-go@v1.56.0`. Go 1.24+. Type-safe Claude API client for Go: model constants, context support, standard Go idioms.
33	- [[Claude Agent SDK TypeScript]] — `npm install @anthropic-ai/claude-agent-sdk`. Node.js 18+. Renamed from Claude Code SDK.
34	- [[Claude Agent SDK Python]] — `pip install claude-agent-sdk`. Python 3.10+. In-process MCP servers, hooks as Python functions, CLI bundled in wheel.
35	- [[Claude Cookbooks]] — Copy-paste code recipes and notebooks for Claude API (RAG, tool use, multimodal, agents).
36	- [[Claude Quickstarts]] — Production-ready starter projects: customer support, computer use, browser automation, coding agent.
37	- [[Anthropic Courses]] — 5-course official curriculum: API fundamentals → prompt engineering → real-world prompting → evals → tool use. Jupyter notebooks.
38	- [[Anthropic Prompt Engineering Tutorial]] — 9-chapter interactive prompt engineering course with exercise playgrounds. Available direct API and Amazon Bedrock variants.
39	- [[Claude Code Action]] — GitHub Action that brings Claude into PR review and CI/CD workflows.
40	- [[Defending Code Reference Harness]] — Reference impl for autonomous vuln discovery + human-reviewed patching. gVisor-sandboxed agents. Not actively maintained; Claude Security is the hosted version.
41	- [[Scone Bench]] — 417-task benchmark for evaluating LLM agents on smart-contract vuln discovery/exploitation. Historical DeFi incidents, MCP-based, Docker-sandboxed. From Anthropic Red Team.
42	- [[Claudes C Compiler]] — Claude Opus 4.6 wrote a dependency-free C compiler in Rust from scratch. Compiles PostgreSQL, SQLite, Linux kernel, FFmpeg. Capability showcase, not production-validated.
43	- [[Anthropic Performance Take-Home]] — Open version of Anthropic's original performance engineering take-home. Optimize a VLIW SIMD kernel; Claude Opus 4.5 scored 1,363 cycles vs 147,734 baseline (108× improvement).
44	- [[Claude Code Security Review]] — GitHub Action that auto-scans PRs for security vulnerabilities using Claude.
45	- [[Claude Desktop Buddy]] — ESP32 desk pet + Bluetooth API reference for makers integrating with Claude Desktop.
46	- [[HTML Effectiveness Examples]] — Anthropic's reference collection of single-file HTML artifacts (slide decks, dashboards, editing UIs, diagrams).
47	- [[Claude Code Setup Plugin]] — Official Anthropic plugin that scans your codebase and recommends tailored hooks, skills, MCP servers, subagents, and plugins. Read-only, 1-2 recs per category.
48	- [[Claude Code Monitoring Guide]] — Prometheus + OpenTelemetry toolkit for tracking Claude Code ROI, token spend, and team adoption.
49	- [[GitHub MCP Server]] — GitHub's official MCP server.
50	- [[PineForge MCP]] — Hosted MCP server for real Pine Script v6 backtests. `claude mcp add --transport http pineforge https://mcp.pineforge.dev/mcp`. No key/signup. 245/246 TradingView parity, 100 backtests/week, 13mo Binance data. Docker route for unlimited/custom data. 60+ tools: repos, issues, PRs, code search, security scanning.
51	- [[Devcontainer Features]] — One-line devcontainer.json feature that installs Claude Code CLI in any dev container.
52	- [[Claude Code Routines]] — Scheduled/triggered cloud automation. Runs on Anthropic infrastructure, not your machine. `/schedule` command, API + GitHub + time triggers. Research preview.
53	- [[Long-Running Agent Primitives]] — 3 core primitives (Default-FAIL, Fresh-context evaluator, Handoff) + 2 operator hooks (kill switch, STEER.md). From Anthropic's own patterns.
54	- [[Claude Plugins Community]] — Community plugin marketplace (security-reviewed). Submit at clau.de/plugin-directory-submission.
55	- [[Anthropic CLI]] — `ant` CLI for the Claude Developer Platform API. `brew install anthropics/tap/ant`.
56	- [[Anthropic CWC Workshops]] — 8 Code-with-Claude workshop curricula: Managed Agents, memory primitives (Dreaming Service), eval-driven dev, multi-agent decomposition, Deal Desk reference impl.
57	- [[Agent SDK Workshop]] — Hands-on workshop for Claude Agent SDK: 4-stage guided demo (chat → tools → subagents → memory) + breakout scenarios. Python 3.10+, flip switches in config.py.
58	- [[Long-Horizon Coding Agent Demo]] — Archived AWS re:Invent 2025 demo. GitHub issue → agent builds full-stack app → CloudFront preview → human approval gate. Bedrock AgentCore + Claude Agent SDK.
59	- [[Claude Foundation Models Swift Package]] — Swift package for hybrid Apple-platform apps: on-device model for fast/private tasks, Claude for reasoning + web search. iOS 27+, SPM install. Announced June 2026.
60	- [[Claude Tag Plugins]] — 19 SaaS integration plugins (Jira, Linear, Snowflake, Salesforce, Sentry, Datadog, etc.) via Claude Tag CLI. Credentials injected at runtime; install only what you need.

# Wiki Index

A catalog of everything in this knowledge base. Updated by Nano on every ingest.

## Tools & Software
*Guest-endorsed or actively used — not sponsors.*
- [[Agent Browser]] — Vercel Labs Rust CLI for AI-driven browser automation. Credential vault, accessibility-tree refs, React introspection, HAR recording.
- [[Devin]] — AI coding agent by Cognition. 15-thread code factory model.
- [[OpenClaw]] — Open-source AI executive assistant / chief of staff.
- [[ClawChief]] — Ryan Carson's open-sourced OpenClaw chief-of-staff config.
- [[Claude Code]] — Anthropic's coding agent. Ryan Carson's preferred coding tool.
- [[Codex]] — OpenAI's coding agent / browser testing tool.
- [[Sentry]] — Error monitoring. Used with Devin for automated bug triage.
- [[Tailscale]] — WireGuard mesh network. Used for remote access to Mac Mini services from phone. Includes full recipe for exposing any local port via `tailscale serve` + launchd.
- [[Figma]] — Design/wireframing. Visual context layer in Ravi Mehta's system.
- [[AgentsView]] — Agent token/cost accounting tool. Useful when new frontier-model pricing appears before dashboards and pricing databases catch up.
- [[Teach Skill]] — `/teach` by Matt Pocock. ZPD-based personalized tutor with persistent learning records. Trigger-based (no idle context cost). Claude Code only. Install: `npx skills add mattpocock/skills --skill teach`.

## Anthropic Official Repos & Resources
*Official Anthropic repositories — tools, SDKs, plugins, and reference implementations.*
- [[Anthropic Skills Repo]] — Reference implementations of the Claude Agent Skills system. Template for building custom skills.
- [[Claude Plugins Official]] — Anthropic's curated plugin marketplace for Claude Code. Install via `/plugin install`.
- [[Ralph Loop Plugin]] — Stop-hook-based autonomous iteration loop. Feeds Claude the same prompt until it outputs a completion promise. For well-defined tasks with clear success criteria and automatic verification.
- [[Hookify Plugin]] — Create Claude Code hooks from natural language. `/hookify warn me when I use rm -rf` → working hook instantly. No hooks.json editing required.
- [[Knowledge Work Plugins]] — 18 open-source role-specific plugins (sales, legal, finance, design, engineering, HR, ops, etc.) built on Claude Agent SDK.
- [[Claude for Legal]] — Deep legal workflow plugin suite (transactional + litigation + learning). Integrates with Westlaw, CourtListener.
- [[Claude for Life Sciences]] — Research marketplace: PubMed, BioRender, Synapse, Consensus + RNA-seq/Nextflow skills.
- [[Claude for Healthcare]] — Healthcare marketplace: FHIR developer, prior-auth review, clinical trial protocols + CMS/NPI servers.
- [[Claude for Financial Services]] — 10 named agents (Pitch Agent, GL Reconciler, Market Researcher, KYC Screener, etc.) + 9 vertical skill bundles (IB, ER, PE, WM, fund admin). Deployable as Cowork plugins or Managed Agent templates.
- [[Managed Agents]] — Anthropic's hosted agent orchestration platform. Self-hosted sandbox option (tool execution on your infra via outbound-polling worker), mid-session tool/MCP updates, large MCP output auto-offload. Scheduled deployments (cron, no custom infra). Env vars in vaults (credentials injected at network boundary). Opus 4.8 tool-description guidance included.
- [[Claude Agent SDK Demos]] — 8 local demo apps showcasing Claude Agent SDK patterns (multi-agent, streaming, email, docs).
- [[Anthropic SDK Go]] — `go get anthropic-sdk-go@v1.56.0`. Go 1.24+. Type-safe Claude API client for Go: model constants, context support, standard Go idioms.
- [[Claude Agent SDK TypeScript]] — `npm install @anthropic-ai/claude-agent-sdk`. Node.js 18+. Renamed from Claude Code SDK.
- [[Claude Agent SDK Python]] — `pip install claude-agent-sdk`. Python 3.10+. In-process MCP servers, hooks as Python functions, CLI bundled in wheel.
- [[Claude Cookbooks]] — Copy-paste code recipes and notebooks for Claude API (RAG, tool use, multimodal, agents).
- [[Claude Quickstarts]] — Production-ready starter projects: customer support, computer use, browser automation, coding agent.
- [[Anthropic Courses]] — 5-course official curriculum: API fundamentals → prompt engineering → real-world prompting → evals → tool use. Jupyter notebooks.
- [[Anthropic Prompt Engineering Tutorial]] — 9-chapter interactive prompt engineering course with exercise playgrounds. Available direct API and Amazon Bedrock variants.
- [[Claude Code Action]] — GitHub Action that brings Claude into PR review and CI/CD workflows.
- [[Defending Code Reference Harness]] — Reference impl for autonomous vuln discovery + human-reviewed patching. gVisor-sandboxed agents. Not actively maintained; Claude Security is the hosted version.
- [[Scone Bench]] — 417-task benchmark for evaluating LLM agents on smart-contract vuln discovery/exploitation. Historical DeFi incidents, MCP-based, Docker-sandboxed. From Anthropic Red Team.
- [[Claudes C Compiler]] — Claude Opus 4.6 wrote a dependency-free C compiler in Rust from scratch. Compiles PostgreSQL, SQLite, Linux kernel, FFmpeg. Capability showcase, not production-validated.
- [[Anthropic Performance Take-Home]] — Open version of Anthropic's original performance engineering take-home. Optimize a VLIW SIMD kernel; Claude Opus 4.5 scored 1,363 cycles vs 147,734 baseline (108× improvement).
- [[Claude Code Security Review]] — GitHub Action that auto-scans PRs for security vulnerabilities using Claude.
- [[Claude Desktop Buddy]] — ESP32 desk pet + Bluetooth API reference for makers integrating with Claude Desktop.
- [[HTML Effectiveness Examples]] — Anthropic's reference collection of single-file HTML artifacts (slide decks, dashboards, editing UIs, diagrams).
- [[Claude Code Setup Plugin]] — Official Anthropic plugin that scans your codebase and recommends tailored hooks, skills, MCP servers, subagents, and plugins. Read-only, 1-2 recs per category.
- [[Claude Code Monitoring Guide]] — Prometheus + OpenTelemetry toolkit for tracking Claude Code ROI, token spend, and team adoption.
- [[GitHub MCP Server]] — GitHub's official MCP server.
- [[PineForge MCP]] — Hosted MCP server for real Pine Script v6 backtests. `claude mcp add --transport http pineforge https://mcp.pineforge.dev/mcp`. No key/signup. 245/246 TradingView parity, 100 backtests/week, 13mo Binance data. Docker route for unlimited/custom data. 60+ tools: repos, issues, PRs, code search, security scanning.
- [[Devcontainer Features]] — One-line devcontainer.json feature that installs Claude Code CLI in any dev container.
- [[Claude Code Routines]] — Scheduled/triggered cloud automation. Runs on Anthropic infrastructure, not your machine. `/schedule` command, API + GitHub + time triggers. Research preview.
- [[Long-Running Agent Primitives]] — 3 core primitives (Default-FAIL, Fresh-context evaluator, Handoff) + 2 operator hooks (kill switch, STEER.md). From Anthropic's own patterns.
- [[Claude Plugins Community]] — Community plugin marketplace (security-reviewed). Submit at clau.de/plugin-directory-submission.
- [[Anthropic CLI]] — `ant` CLI for the Claude Developer Platform API. `brew install anthropics/tap/ant`.
- [[Anthropic CWC Workshops]] — 8 Code-with-Claude workshop curricula: Managed Agents, memory primitives (Dreaming Service), eval-driven dev, multi-agent decomposition, Deal Desk reference impl.
- [[Agent SDK Workshop]] — Hands-on workshop for Claude Agent SDK: 4-stage guided demo (chat → tools → subagents → memory) + breakout scenarios. Python 3.10+, flip switches in config.py.
- [[Long-Horizon Coding Agent Demo]] — Archived AWS re:Invent 2025 demo. GitHub issue → agent builds full-stack app → CloudFront preview → human approval gate. Bedrock AgentCore + Claude Agent SDK.
- [[Claude Foundation Models Swift Package]] — Swift package for hybrid Apple-platform apps: on-device model for fast/private tasks, Claude for reasoning + web search. iOS 27+, SPM install. Announced June 2026.
- [[Claude Tag Plugins]] — 19 SaaS integration plugins (Jira, Linear, Snowflake, Salesforce, Sentry, Datadog, etc.) via Claude Tag CLI. Credentials injected at runtime; install only what you need.


Ingest Claude blog post on marketing operations automation


60	- [[Claude Tag Plugins]] — 19 SaaS integration plugins (Jira, Linear, Snowflake, Salesforce, Sentry, Datadog, etc.) via Claude Tag CLI. Credentials injected at runtime; install only what you need.
61	- [[Launch Your Agent]] — Claude Code skill that guides a founder from raw idea to live Claude Managed Agent: interview → scope → deploy → grade → schedule. One session, costs cents.
62	- [[Claude Fable 5 and Mythos 5]] — Anthropic's latest frontier models. Always-on adaptive thinking, new tokenizer (~30% more tokens), refusal stop reason + SDK fallback middleware, 30-day data-retention requirement. Fable 5 = GA; Mythos 5 = Preview.
63
64	## Third-Party Tools & Platforms
65	- [[Legora]] — AI-native operating system for legal teams. Autonomously plans, executes, reviews, and completes complex legal work end-to-end. Built on Claude. "Raises the tide" model: improves with each Claude release.
66
67	## Concepts & Reference Docs
68	- [[Test Isolation for Runtime Activity Logs]] — Prevent orchestration tests from polluting live alert/error/state feeds by redirecting module-level runtime paths to `tmp_path`, then prove production logs are unchanged by the suite.
69	- [[LaunchAgent Quarantine and Tailscale Recovery]] — Recover a reboot-stalled local site by clearing the LaunchAgent quarantine and re-bootstrapping it, then separately reconnecting Tailscale and verifying both local and public routes.
70	- [[Orthogonal Visual Channels on Map Lines]] — Don't recolor a line to encode a boolean when color already carries a scalar; add a near-black dotted overlay (Mapbox: short dash + round cap, dasharray units are line-widths so zoom-scaling is free). Plus a puppeteer pattern for E2E-verifying map layers via the app's own custom events.
71	- [[CLAUDE.md Progressive Disclosure]] — Every-session context files hold only always-relevant rules; situational procedures move to `.claude/docs/` behind trigger-phrased pointers. Measure per-section cost first; add a size budget against regrowth.
72	- [[Claude Constitution]] — Anthropic's foundational values document. CC0 licensed. January 2026.
73	- [[Agentic UI Impedance Mismatch]] — Dario Amodei's framing: agents will complete tasks end-to-end most of the time, but humans need deep-dive inspection capability for the exceptions. No product solves this yet.
74	- [[Claude Code Subagents]] — Separate Claude instances with their own context windows. 5 copy-paste templates (reviewer, test-writer, doc-writer, security, pr-writer). Route to Sonnet for 5× cost savings.
75	- [[WebMCP]] — Chrome's proposed web standard for exposing structured tools to AI agents. Declarative HTML annotations + JS API replace fragile UI actuation. Origin trial in Chrome 149.
76	- [[But For Real Skill]] — Self-audit pattern: follow-up prompt that assumes bugs are present and bullies the AI into finding them. Simulates PR code review. From Josh Pigford's solo-founder skills stack.
77	- [[Claude Code Agent Teams]] — Native experimental feature: Team Lead + Teammates model with shared task list, dependency management, plan approval, and hooks. Enable via env flag. Claude Code only (no Codex/Aider).
78	- [[Claude Code Dynamic Workflows]] — Claude writes its own JS orchestration harness on the fly (`ultracode` keyword). 6 patterns: classify-and-act, fan-out-and-synthesize, adversarial verification, generate-and-filter, tournament, loop-until-done. Opus 4.8 era.
79	- [[Finding Your Unknowns Framework]] — Pre-flight protocol for agentic work. 4-quadrant unknowns model (Known/Unknown × Knowns/Unknowns) + 8 elicitation techniques (blind spot pass, interview mode, reference prompting, implementation plan, explainer artifact, quiz mode). Fable-era shift: user clarity is now the bottleneck, not model capability.
80	- [[AI-Native Engineering Org]] — Fiona Fung (Claude Code eng director): JIT planning, Claude reviews style/bugs/humans review domain, kill obsolete processes, track ramp time + PR cycle time + Claude-assisted commit rate.
81	- [[Claude Code Skills Best Practices]] — Thariq Shihipar: 9 skill categories, Gotchas sections, progressive disclosure via file system, trigger keywords, `${CLAUDE_PLUGIN_DATA}` memory, on-demand hooks. From Anthropic's own usage.
82	- [[X AI Signal Ingestion Source]] — Regular monitored X source for high-signal AI voices. Uses browser-visible/public pages only; no credential extraction or social-account side effects.
83	- [[NanoClaw Slack Mention-Sticky Session Bug]] — Two stacked router bugs made a documented `session_mode='shared'` config inert on threaded adapters (Slack/Discord): a forced per-thread coercion, plus a sticky-engagement check that always did an exact-thread lookup regardless of the wiring's actual session mode. Fix makes `mention-sticky` self-bootstrapping: first message creates the shared session, every message after keeps engaging.
84	- [[NanoClaw REST Fallback Tool-Call Hallucination]] — A toolless LM Studio/Codex fallback rung hallucinated fake tool-call tags (`<read_file .../>`) instead of admitting it had no tools, and the existing `<message>`-block validation only checked the wrapper, not the content, so raw tag soup reached the user. Fixed with an output-side allowlist check + corrective retry + honest fallback, deliberately without over-fitting the routing heuristic.
85	- [[Hermes Provider Fallback Config]] — Configure Hermes LLM quota failover with top-level `fallback_providers`; put LM Studio first for cloud usage-limit failures, include only authenticated providers, and use Hermes' fallback CLI/runtime/gateway tests as evidence.
86	- [[Cowork Dispatcher-Specialist Pattern]] — Dispatcher routes intake → specialist agents execute → independent audit agent verifies → human reviews. Skills as living systems: corrections loop back into skill instructions. Applicable to qip-qien triage, nanoclaw agent architecture, and signal-routing in trading projects.
87	- [[Frontier Code Evaluation]] — Use your best engineers to test models on real production work; gate on "Would I keep this code?" Cognition's internal benchmark showed 3× Fable 5 improvement over prior Opus on their hardest subset.
88	- [[Cross-Agent Session State]] — A gitignored `.agent-state/session.md` Markdown handoff lets Claude Code, Codex, Antigravity, Grok, and local agents resume interrupted work from shared evidence-based state.
89	- [[Eval-Routed Local-First Code Delegation]] — Use a standing eval's machine-readable routing block to pick the cheap local default, per-task exceptions, and cloud-only task classes instead of guessing model choice.
90	- [[Productization and Pricing Research Concierge Reel Workflow]] — Stagehand go-to-market memo: sell a concierge reel retainer first, keep Telegram as intake, run locally until 2-3 paying clients, and charge for reviewed outcomes rather than raw AI access.
91
92	## 📢 Sponsor-only mentions
93	*Paid placements — not guest endorsements. Pages exist for reference.*
94	- [[Granola]] — AI meeting notes (Behind the Craft sponsor)
95	- [[Wispr Flow]] — Voice dictation (Behind the Craft sponsor)
96	- [[Linear]] — Project management / AI agent platform (Behind the Craft sponsor)
97
98	## Frameworks & Mental Models
99	- [[Apple Widget Rendering Modes]] — How to design SwiftUI widgets that work in both full-color and monochrome/accented modes (macOS, iOS, watchOS). Luminance zones, arc opacity, adaptive line colors, and `widgetAccentedRenderingMode`.
100	- [[WidgetKit Engineering Pitfalls]] — Infrastructure and data-layer pitfalls: intent-type orphaning, chronod descriptor caching, provider-data siloing, weekly-exhausted 5H row rules (0% + weekly reset + blank chart), and the early-cap reset pattern.
101	- [[Mac Widget Runtime Verification Loop]] — Layered macOS WidgetKit validation: active target membership, render tests, installed AppIntents metadata, chronod cache refresh, and desktop screenshot proof.
102	- [[Human Sandwich Model]] — Human frames → AI executes → Human judges. Dan Shipper's model for human-AI collaboration.
103	- [[Screenshot-First Visual Verification]] — Screenshots are the only ground truth for visual UI work; code correctness ≠ visual correctness.
104	- [[3-Layer Context Engineering System]] — Functional + Visual + Data layers for polished AI prototypes. Ravi Mehta's framework.
105	- [[Tokenmaxxing]] — Accusation that AI companies inflate token metrics; Boris Cherny's 250% productivity rebuttal.
106	- [[Saaspocalypse]] — Thesis that agents erode SaaS switching costs. Boris Cherny's nuanced take via Seven Powers.
107	- [[Claude Code Drift Problem]] — Config entropy at ~5 months: stale CLAUDE.md, bad folder structure, manual triggers that should be routines.
108	- [[4 AI Digital Employees Framework]] — 4 agent roles to "hire": Research Analyst, Strategic Advisor, Communication Specialist, Operations Manager.
109	- [[Friction-First Development]] — 6-principle philosophy for personal tool building: scratch your own itch, define the friction before the code, resist market-bias. Includes a pre-code Problem & Friction Analysis template.
110	- [[Devin vs Claude Code]] — Head-to-head comparison: philosophy, SWE-Bench (80.8% vs 13.86%), billing model, failure modes. Verdict: Claude Code wins for James's current stage.
111	- [[Frontier Model Qualitative Step Change]] — Pattern for treating credible practitioner reports as eval triggers when a model feels like a major-version jump on long tasks.
112	- [[Builder-Verifier Loop Pattern]] — Every code-writing loop needs a separate verifier running the real app. Builder makes the change; Verifier confirms feature correctness; you read the diff. Boris Cherny's core rule for avoiding confident-but-broken PRs.
113	- [[Question-Led Selling Arc]] — Synthesis of SPIN / Sandler / NEPQ / Oren Klaff / Chris Do into a four-step ask-don't-pitch arc (problem → change → cost → worth) plus a button-driven profiling block. Cross-project pattern for solution-selling sites' stage-2 discovery flow.
114	- [[Frontier Model Extraction Strategy]] — Frontier judgment required to *create*, ordinary intelligence sufficient to *use*. The irreversibility filter test: "Can a cheaper model redo this tomorrow?" Basis for the Learning Law in root CLAUDE.md.
115
116	## Reference
117	- [[Local Coding Model Benchmarks]] — 🔁 auto-maintained leaderboard for local (LM Studio/MLX) and cloud coding models on the `evals/local-code` gate, synced from `projects/` on every benchmark run. Includes a vetted list of where to source new local-model candidates (Aider Polyglot, LiveBench, model-discover.sh, aidatatools/ollama-benchmark) and a list of low-trust SEO leaderboards to avoid.
118	- [[Coding Agent Behavior Guide]] — INTJ-A derived instructions for coding agents working with James. Communication style, autonomy rules, pushback expectations, blindspot compensations.
119	- [[Ingestion Pipeline Patterns]] — 6 cost/quality optimization patterns for the wiki ingest pipeline: QFS, chapter chunking, map-reduce, tiered models, prompt caching, RAPTOR. Includes Phase 1–3 implementation order.
120	- [[Instagram Reel Transcription Pipeline]] — agent-browser + OpenAI Whisper pipeline for overnight reel-to-transcript processing. ~$0.003–$0.008/reel.
121	- [[Shared Vault Mount Guide]] — Step-by-step for mounting a shared host directory into multiple NanoClaw agent containers. `additionalMounts` config, allowlist setup, restart flow.
122	- [[Ryan Carson Tool Usage Notes]] — Detailed "how he actually uses it" notes for each tool from the May 24 episode (OpenClaw, Devin, Codex, Claude Code, Sentry, Tailscale, ClawChief).
123
124	## People
125	- [[James Lopez]] — Owner of this wiki. INTJ-A, mobile engineer (LinkedIn iOS), Austin TX. Full personality profile and background.
126	- [[Ramón Lopez]] — James's brother. Sr. Director Digital Manufacturing Architecture at Jabil. 25+ yrs medical device quality (FDA/ISO 13485). Domain expert persona for qip-qien.
127	- [[Ryan Carson]] — 5x founder, building Untangle solo with AI agents.
128	- [[Peter Yang]] — Host of Behind the Craft podcast.
129	- [[Dan Shipper]] — Co-founder of Every. Author of "After Automation."
130	- [[Andrej Karpathy]] — AI researcher and educator. High-signal source on frontier model capability and workflow ergonomics.
131	- [[Simon Willison]] — Developer and LLM tooling analyst. High-signal source on evals, sandboxing, cost accounting, and practical AI tools.
132	- [[Nathaniel Whittemore]] — Host of The AI Daily Brief.
133	- [[Ravi Mehta]] — AI instructor, ex-CPO Tinder. Created 3-layer context engineering system.
134	- [[Boris Cherny]] — Head of Claude Code at Anthropic.
135	- [[Alex Kantrowitz]] — Host of Big Technology Podcast.
136	- [[Gael Breton]] — Co-founder, Authority Hacker. Small biz AI automation practitioner.
137	- [[Mark Webster]] — Co-founder, Authority Hacker.
138	- [[Nufar Gaspar]] — Co-host, The AI Daily Brief.
139	- [[Delba de Oliveira]] — MTS Claude Code engineer at Anthropic. Created "Claude Code Patterns: Feedback loops" video — Cherny's cited breakdown of self-verification.

- [[Claude Tag Plugins]] — 19 SaaS integration plugins (Jira, Linear, Snowflake, Salesforce, Sentry, Datadog, etc.) via Claude Tag CLI. Credentials injected at runtime; install only what you need.
- [[Launch Your Agent]] — Claude Code skill that guides a founder from raw idea to live Claude Managed Agent: interview → scope → deploy → grade → schedule. One session, costs cents.
- [[Claude Fable 5 and Mythos 5]] — Anthropic's latest frontier models. Always-on adaptive thinking, new tokenizer (~30% more tokens), refusal stop reason + SDK fallback middleware, 30-day data-retention requirement. Fable 5 = GA; Mythos 5 = Preview.

## Third-Party Tools & Platforms
- [[Legora]] — AI-native operating system for legal teams. Autonomously plans, executes, reviews, and completes complex legal work end-to-end. Built on Claude. "Raises the tide" model: improves with each Claude release.

## Concepts & Reference Docs
- [[Test Isolation for Runtime Activity Logs]] — Prevent orchestration tests from polluting live alert/error/state feeds by redirecting module-level runtime paths to `tmp_path`, then prove production logs are unchanged by the suite.
- [[LaunchAgent Quarantine and Tailscale Recovery]] — Recover a reboot-stalled local site by clearing the LaunchAgent quarantine and re-bootstrapping it, then separately reconnecting Tailscale and verifying both local and public routes.
- [[Orthogonal Visual Channels on Map Lines]] — Don't recolor a line to encode a boolean when color already carries a scalar; add a near-black dotted overlay (Mapbox: short dash + round cap, dasharray units are line-widths so zoom-scaling is free). Plus a puppeteer pattern for E2E-verifying map layers via the app's own custom events.
- [[CLAUDE.md Progressive Disclosure]] — Every-session context files hold only always-relevant rules; situational procedures move to `.claude/docs/` behind trigger-phrased pointers. Measure per-section cost first; add a size budget against regrowth.
- [[Claude Constitution]] — Anthropic's foundational values document. CC0 licensed. January 2026.
- [[Agentic UI Impedance Mismatch]] — Dario Amodei's framing: agents will complete tasks end-to-end most of the time, but humans need deep-dive inspection capability for the exceptions. No product solves this yet.
- [[Claude Code Subagents]] — Separate Claude instances with their own context windows. 5 copy-paste templates (reviewer, test-writer, doc-writer, security, pr-writer). Route to Sonnet for 5× cost savings.
- [[WebMCP]] — Chrome's proposed web standard for exposing structured tools to AI agents. Declarative HTML annotations + JS API replace fragile UI actuation. Origin trial in Chrome 149.
- [[But For Real Skill]] — Self-audit pattern: follow-up prompt that assumes bugs are present and bullies the AI into finding them. Simulates PR code review. From Josh Pigford's solo-founder skills stack.
- [[Claude Code Agent Teams]] — Native experimental feature: Team Lead + Teammates model with shared task list, dependency management, plan approval, and hooks. Enable via env flag. Claude Code only (no Codex/Aider).
- [[Claude Code Dynamic Workflows]] — Claude writes its own JS orchestration harness on the fly (`ultracode` keyword). 6 patterns: classify-and-act, fan-out-and-synthesize, adversarial verification, generate-and-filter, tournament, loop-until-done. Opus 4.8 era.
- [[Finding Your Unknowns Framework]] — Pre-flight protocol for agentic work. 4-quadrant unknowns model (Known/Unknown × Knowns/Unknowns) + 8 elicitation techniques (blind spot pass, interview mode, reference prompting, implementation plan, explainer artifact, quiz mode). Fable-era shift: user clarity is now the bottleneck, not model capability.
- [[AI-Native Engineering Org]] — Fiona Fung (Claude Code eng director): JIT planning, Claude reviews style/bugs/humans review domain, kill obsolete processes, track ramp time + PR cycle time + Claude-assisted commit rate.
- [[Claude Code Skills Best Practices]] — Thariq Shihipar: 9 skill categories, Gotchas sections, progressive disclosure via file system, trigger keywords, `${CLAUDE_PLUGIN_DATA}` memory, on-demand hooks. From Anthropic's own usage.
- [[X AI Signal Ingestion Source]] — Regular monitored X source for high-signal AI voices. Uses browser-visible/public pages only; no credential extraction or social-account side effects.
- [[NanoClaw Slack Mention-Sticky Session Bug]] — Two stacked router bugs made a documented `session_mode='shared'` config inert on threaded adapters (Slack/Discord): a forced per-thread coercion, plus a sticky-engagement check that always did an exact-thread lookup regardless of the wiring's actual session mode. Fix makes `mention-sticky` self-bootstrapping: first message creates the shared session, every message after keeps engaging.
- [[NanoClaw REST Fallback Tool-Call Hallucination]] — A toolless LM Studio/Codex fallback rung hallucinated fake tool-call tags (`<read_file .../>`) instead of admitting it had no tools, and the existing `<message>`-block validation only checked the wrapper, not the content, so raw tag soup reached the user. Fixed with an output-side allowlist check + corrective retry + honest fallback, deliberately without over-fitting the routing heuristic.
- [[Hermes Provider Fallback Config]] — Configure Hermes LLM quota failover with top-level `fallback_providers`; put LM Studio first for cloud usage-limit failures, include only authenticated providers, and use Hermes' fallback CLI/runtime/gateway tests as evidence.
- [[Cowork Dispatcher-Specialist Pattern]] — Dispatcher routes intake → specialist agents execute → independent audit agent verifies → human reviews. Skills as living systems: corrections loop back into skill instructions. Applicable to qip-qien triage, nanoclaw agent architecture, and signal-routing in trading projects.
- [[Frontier Code Evaluation]] — Use your best engineers to test models on real production work; gate on "Would I keep this code?" Cognition's internal benchmark showed 3× Fable 5 improvement over prior Opus on their hardest subset.
- [[Cross-Agent Session State]] — A gitignored `.agent-state/session.md` Markdown handoff lets Claude Code, Codex, Antigravity, Grok, and local agents resume interrupted work from shared evidence-based state.
- [[Eval-Routed Local-First Code Delegation]] — Use a standing eval's machine-readable routing block to pick the cheap local default, per-task exceptions, and cloud-only task classes instead of guessing model choice.
- [[Productization and Pricing Research Concierge Reel Workflow]] — Stagehand go-to-market memo: sell a concierge reel retainer first, keep Telegram as intake, run locally until 2-3 paying clients, and charge for reviewed outcomes rather than raw AI access.

## 📢 Sponsor-only mentions
*Paid placements — not guest endorsements. Pages exist for reference.*
- [[Granola]] — AI meeting notes (Behind the Craft sponsor)
- [[Wispr Flow]] — Voice dictation (Behind the Craft sponsor)
- [[Linear]] — Project management / AI agent platform (Behind the Craft sponsor)

## Frameworks & Mental Models
- [[Apple Widget Rendering Modes]] — How to design SwiftUI widgets that work in both full-color and monochrome/accented modes (macOS, iOS, watchOS). Luminance zones, arc opacity, adaptive line colors, and `widgetAccentedRenderingMode`.
- [[WidgetKit Engineering Pitfalls]] — Infrastructure and data-layer pitfalls: intent-type orphaning, chronod descriptor caching, provider-data siloing, weekly-exhausted 5H row rules (0% + weekly reset + blank chart), and the early-cap reset pattern.
- [[Mac Widget Runtime Verification Loop]] — Layered macOS WidgetKit validation: active target membership, render tests, installed AppIntents metadata, chronod cache refresh, and desktop screenshot proof.
- [[Human Sandwich Model]] — Human frames → AI executes → Human judges. Dan Shipper's model for human-AI collaboration.
- [[Screenshot-First Visual Verification]] — Screenshots are the only ground truth for visual UI work; code correctness ≠ visual correctness.
- [[3-Layer Context Engineering System]] — Functional + Visual + Data layers for polished AI prototypes. Ravi Mehta's framework.
- [[Tokenmaxxing]] — Accusation that AI companies inflate token metrics; Boris Cherny's 250% productivity rebuttal.
- [[Saaspocalypse]] — Thesis that agents erode SaaS switching costs. Boris Cherny's nuanced take via Seven Powers.
- [[Claude Code Drift Problem]] — Config entropy at ~5 months: stale CLAUDE.md, bad folder structure, manual triggers that should be routines.
- [[4 AI Digital Employees Framework]] — 4 agent roles to "hire": Research Analyst, Strategic Advisor, Communication Specialist, Operations Manager.
- [[Friction-First Development]] — 6-principle philosophy for personal tool building: scratch your own itch, define the friction before the code, resist market-bias. Includes a pre-code Problem & Friction Analysis template.
- [[Devin vs Claude Code]] — Head-to-head comparison: philosophy, SWE-Bench (80.8% vs 13.86%), billing model, failure modes. Verdict: Claude Code wins for James's current stage.
- [[Frontier Model Qualitative Step Change]] — Pattern for treating credible practitioner reports as eval triggers when a model feels like a major-version jump on long tasks.
- [[Builder-Verifier Loop Pattern]] — Every code-writing loop needs a separate verifier running the real app. Builder makes the change; Verifier confirms feature correctness; you read the diff. Boris Cherny's core rule for avoiding confident-but-broken PRs.
- [[Question-Led Selling Arc]] — Synthesis of SPIN / Sandler / NEPQ / Oren Klaff / Chris Do into a four-step ask-don't-pitch arc (problem → change → cost → worth) plus a button-driven profiling block. Cross-project pattern for solution-selling sites' stage-2 discovery flow.
- [[Frontier Model Extraction Strategy]] — Frontier judgment required to *create*, ordinary intelligence sufficient to *use*. The irreversibility filter test: "Can a cheaper model redo this tomorrow?" Basis for the Learning Law in root CLAUDE.md.

## Reference
- [[Local Coding Model Benchmarks]] — 🔁 auto-maintained leaderboard for local (LM Studio/MLX) and cloud coding models on the `evals/local-code` gate, synced from `projects/` on every benchmark run. Includes a vetted list of where to source new local-model candidates (Aider Polyglot, LiveBench, model-discover.sh, aidatatools/ollama-benchmark) and a list of low-trust SEO leaderboards to avoid.
- [[Coding Agent Behavior Guide]] — INTJ-A derived instructions for coding agents working with James. Communication style, autonomy rules, pushback expectations, blindspot compensations.
- [[Ingestion Pipeline Patterns]] — 6 cost/quality optimization patterns for the wiki ingest pipeline: QFS, chapter chunking, map-reduce, tiered models, prompt caching, RAPTOR. Includes Phase 1–3 implementation order.
- [[Instagram Reel Transcription Pipeline]] — agent-browser + OpenAI Whisper pipeline for overnight reel-to-transcript processing. ~$0.003–$0.008/reel.
- [[Shared Vault Mount Guide]] — Step-by-step for mounting a shared host directory into multiple NanoClaw agent containers. `additionalMounts` config, allowlist setup, restart flow.
- [[Ryan Carson Tool Usage Notes]] — Detailed "how he actually uses it" notes for each tool from the May 24 episode (OpenClaw, Devin, Codex, Claude Code, Sentry, Tailscale, ClawChief).

## People
- [[James Lopez]] — Owner of this wiki. INTJ-A, mobile engineer (LinkedIn iOS), Austin TX. Full personality profile and background.
- [[Ramón Lopez]] — James's brother. Sr. Director Digital Manufacturing Architecture at Jabil. 25+ yrs medical device quality (FDA/ISO 13485). Domain expert persona for qip-qien.
- [[Ryan Carson]] — 5x founder, building Untangle solo with AI agents.
- [[Peter Yang]] — Host of Behind the Craft podcast.
- [[Dan Shipper]] — Co-founder of Every. Author of "After Automation."
- [[Andrej Karpathy]] — AI researcher and educator. High-signal source on frontier model capability and workflow ergonomics.
- [[Simon Willison]] — Developer and LLM tooling analyst. High-signal source on evals, sandboxing, cost accounting, and practical AI tools.
- [[Nathaniel Whittemore]] — Host of The AI Daily Brief.
- [[Ravi Mehta]] — AI instructor, ex-CPO Tinder. Created 3-layer context engineering system.
- [[Boris Cherny]] — Head of Claude Code at Anthropic.
- [[Alex Kantrowitz]] — Host of Big Technology Podcast.
- [[Gael Breton]] — Co-founder, Authority Hacker. Small biz AI automation practitioner.
- [[Mark Webster]] — Co-founder, Authority Hacker.
- [[Nufar Gaspar]] — Co-host, The AI Daily Brief.
- [[Delba de Oliveira]] — MTS Claude Code engineer at Anthropic. Created "Claude Code Patterns: Feedback loops" video — Cherny's cited breakdown of self-verification.


Conversation compacted


This session is being continued from a previous conversation that ran out of context. The summary below covers the earlier portion of the conversation.

Summary:
1. Primary Request and Intent:

This is an ongoing agentic session for James Lopez's NanoClaw AI assistant platform. Multiple tasks handled in sequence across Jul 13-16, 2026:

- **Loop engineering YouTube source** (Jul 13): James shared a tweet about an Anthropic loop engineering course with Fable 5; found YouTube source at `https://www.youtube.com/watch?v=ss09UQpGmck`
- **Anthropic GitHub sweeps #30–32** (Jul 14–16): Ingest new content from Anthropic repos
- **Daily portfolio briefs** (Jul 14–16): Compose and send phone-readable briefs to Slack
- **Prompt caching course source** (Jul 14): James shared @0xCodila tweet about prompt caching; found DeepLearning.AI source
- **K-12 Teacher Skills ingest** (sweep #31): New official Anthropic skills repo with eval rubrics
- **Fable Method Plugin ingest** (Jul 15): James shared community plugin tweet; created wiki page
- **Security concern re: plugins** (Jul 15): James flagged missing security review step before installation; conducted review (clean)
- **Claude blog checks** (Jul 15–16): Evaluated and ingested new posts
- **AI Code Migration blog post ingest** (Jul 16, IN PROGRESS): Creating source page, concept page, updating Home.md

2. Key Technical Concepts:

- **Rulebook-Driven Migration Loop**: Fix the rulebook/translation rules, regenerate affected batches. "You don't fix the code. You fix the process (loop) that produced the code." Core pattern from ai-code-migration post.
- **Fable Method Plugin**: Community plugin (Sahir619/fable-method) reverse-engineering Claude Fable 5's problem-solving loop. Three skills: fable-method (thinking loop + failure thresholds), fable-loop (execution with adversarial agents), fable-judge (independent re-execution of all "done" claims). "Adds discipline, not knowledge."
- **Plugin security review checklist**: Before installing any community plugin — read scripts + manifests + skill files for outbound calls, sensitive file reads (SSH/env/.claude), unknown MCP server endpoints, obfuscated code
- **Prompt caching**: 90% token cost reduction via Claude's prompt cache; Frankenstein book example (108k → 11 effective tokens)
- **Loop engineering**: Boris Cherny's concept — "I don't prompt Claude anymore. I have loops that are running. My job is to write loops."
- **Skills + eval rubrics co-location**: K-12 Teacher Skills ships `evals/` alongside skills in the same repo — reference pattern for measurable skills
- **Advisory pattern**: Fable 5 (judgment) + Opus 4.8 (workhorse) cost-efficient delegation for large migration tasks
- **Build daemons**: Serialize expensive rebuild operations; feed compiler errors back to fixer agents as structured input
- **Parity harnesses**: Behavior verification when test suite isn't portable to new language
- **Default-FAIL contract**: Criteria start false; agents must present evidence before marking tasks complete (Long-Running Agent Primitives)
- **Fresh-Context Evaluator**: Separate agent without write capabilities grades work from clean context

3. Files and Code Sections:

- **`/workspace/extra/second-brain/wiki/tools/K-12 Teacher Skills.md`** (CREATED in sweep #31)
  - Official Anthropic skills repo co-developed with Learning Commons
  - Two skills: k12-lesson-planning and k12-lesson-differentiation
  - Notable: ships eval rubrics in `evals/` alongside skills — reference pattern for skills + evals co-located
  - Taps Learning Commons Knowledge Graph connector for U.S. academic standards

- **`/workspace/extra/second-brain/wiki/tools/Fable Method Plugin.md`** (CREATED Jul 15)
  - Community plugin (Sahir619/fable-method) by @angeldot_
  - Three skills table, results table (159 runs), development iteration history (v1 0/4 → v2 1/4 → v3 4/4)
  - Relevance section: qip-qien triage, congressional-trading alert loop, portfolio-autopilot cycle sign-off
  - Install: `/plugin marketplace add Sahir619/fable-method` then `/plugin install fable@fable-method`

- **`/workspace/extra/second-brain/wiki/sources/Claude Blog - AI Code Migration.md`** (CREATED Jul 16)
  ```markdown
  # Claude Blog - AI Code Migration
  **URL:** https://claude.com/blog/ai-code-migration
  **Date:** July 16, 2026
  Core claim: "You don't fix the code. You fix the process (loop) that produced the code."
  Real examples: Bun 1M lines Zig→Rust (2 weeks), Python→TypeScript 165k lines (weekend)
  Six-step process, key techniques: rulebook-driven fixes, mechanical work queues, build daemons, advisory pattern, parity harnesses, adversarial review
  ```

- **`/workspace/extra/second-brain/wiki/concepts/Rulebook-Driven Migration Loop.md`** (CREATED Jul 16)
  ```markdown
  # Rulebook-Driven Migration Loop
  Pattern: fix translation rulebook → regenerate affected batch (not individual files)
  Loop diagram: Rulebook → Batch Generator → Output Files → Compiler/Tests → Error Feedback → Fix rule
  Primitives table: work queue via file existence, build daemon, advisory model split, parity harness
  ```

- **`/workspace/extra/second-brain/wiki/sources/Claude Blog - Fable 5 in Claude Cowork.md`** (CREATED Jul 16)
  - Tutorial by Josefina Albert (Anthropic Education)
  - Notable new: effort settings (adjustable), transparent planning panel, multi-day context retention
  - Low direct relevance to James (uses Claude Code not Cowork primarily)

- **`/workspace/extra/second-brain/wiki/Wiki Ingest Log.md`** (UPDATED multiple times)
  - Added entries for sweeps #30, #31, #32
  - Added Fable Method Plugin entry (Jul 15)
  - Added Base44 blog check "skipped" entry (Jul 15)
  - Added loop engineering YouTube source would not have a dedicated entry
  - Still needs: Jul 16 blog check entry for ai-code-migration and Fable 5 Cowork

- **`/workspace/extra/second-brain/wiki/Home.md`** (READ but NOT YET UPDATED)
  - Needs new entries added: [[Rulebook-Driven Migration Loop]] in Concepts section, source pages in Sources section

4. Errors and Fixes:

- **Community plugin security review omitted**: James flagged that recommending plugin installation before reading the source code was wrong — community skills run inside Claude Code with filesystem/env access and could be Trojans
  - Fix: Conducted full security review of Sahir619/fable-method (scripts, manifests, skill files, CI)
  - Result: Clean — pure instructional markdown, no outbound calls, no sensitive file reads, no suspicious MCP endpoints
  - Updated recommended order: (1) Read source on GitHub first, (2) Check for red flags, (3) Only then install

- **slack-daily-brief destination doesn't exist**: Task instructions say to send to `slack-daily-brief` but this destination isn't wired
  - Fix: Sending to `slack-infrastructure` and notifying James each time
  - Noted to James that `slack-daily-brief` needs to be configured

5. Problem Solving:

- **Loop engineering source**: Tweet had native video (too long to ingest), no direct YouTube link. Used Twitter MCP to get tweet text, then web search found `https://www.youtube.com/watch?v=ss09UQpGmck` — "Nobody Could Define 'Loop Engineering'" — and confirmed Boris Cherny is the "Anthropic insider" referenced.

- **Prompt caching course source**: Similar approach. @0xCodila's tweet was their own native Twitter video (no YouTube equivalent). Source material traced to DeepLearning.AI course "Building toward Computer Use with Anthropic" lesson on prompt caching using the Frankenstein book example.

- **cwc-long-running-agents (sweep #32)**: New repo name appeared but was already fully documented under `Long-Running Agent Primitives.md` — confirmed by fetching README and comparing to existing page.

- **AI Code Migration blog post**: Identified as high-signal engineering content (not just a customer case study). Created both a source page and a new concept page (Rulebook-Driven Migration Loop) because the pattern is reusable beyond code migration.

6. All User Messages:

- <message id="2072" from="telegram-mg-17796" sender="James Lopez" time="Jul 13, 2026, 8:30 PM">[First Customer Finder Skill link - handled in previous session]</message>

- <message id="2074" from="telegram-mg-17796" sender="James Lopez" time="Jul 13, 2026, 8:40 PM">https://x.com/johnwhereareu/status/2076631471394345131?s=52 can you find the source for this, by which I mean YouTube link or similar [link ingestion failed: video_too_long_3665s]</message>

- <message id="2132" from="telegram-mg-17796" sender="James Lopez" time="Jul 14, 2026, 7:49 AM">https://x.com/0xCodila/status/2076813306128404833/video/1?s=52 [link ingestion failed: video_too_long_3846s]</message>

- <message id="2248" from="telegram-mg-17796" sender="James Lopez" time="Jul 15, 2026, 7:14 AM">https://x.com/nicos_ai/status/2077092841117888701?s=52. "The Fable loop" skill sounds promising [link ingestion failed: no video]</message>

- <message id="2250" from="telegram-mg-17796" sender="James Lopez" time="Jul 15, 2026, 7:18 AM">What the right next steps with this?</message>

- <message id="2252" from="telegram-mg-17796" sender="James Lopez" time="Jul 15, 2026, 7:24 AM">I'm surprised checking the code of the skill wasn't first in the list, are there no security concerns with skills that could be malicious and Trojan horses?</message>

7. Pending Tasks:

- **Update Home.md**: Add [[Rulebook-Driven Migration Loop]] to Concepts & Reference Docs section; add source entries for [[Claude Blog - AI Code Migration]] and [[Claude Blog - Fable 5 in Claude Cowork]] to Sources section
- **Update Wiki Ingest Log**: Add Jul 16 blog check entry covering both posts
- **Message James**: Summary of what was ingested from the Jul 16 blog check
- **Ongoing decision queue** (all unanswered by James):
  - qip-qien SEV-1 auth fix sign-off
  - congressional-trading dual-poller: Mac Mini or Studio?
  - localsky_radar git-init
  - nanoclaw metric confirmation
  - RoadSense 5 launch questions
  - StageHand 5 toolchain questions
  - nanoclaw provider fallback queuing design
- **slack-daily-brief destination**: Needs to be configured (currently sending to slack-infrastructure)

8. Current Work:

Was mid-task on the Claude blog check (task from "Jul 16, 2026, 11:00 AM"). Two posts detected:
1. `ai-code-migration` — HIGH relevance — fetched, created source page and concept page
2. `working-with-claude-fable-5-in-claude-cowork` — MODERATE relevance — fetched, created source page

Had just read `/workspace/extra/second-brain/wiki/Home.md` (lines 1-138) to find where to insert new entries. The Home.md read showed:
- Sources section exists with existing Claude Blog entries
- Concepts section exists (lines 67-90 area) where Rulebook-Driven Migration Loop should go

Have NOT yet:
- Updated Home.md with the two new source pages and the new concept page
- Updated Wiki Ingest Log with the Jul 16 blog check entry
- Sent the completion message to James

9. Optional Next Step:

Immediately continue the Claude blog check task. The task was: "Update /workspace/extra/second-brain/wiki/Home.md — add entries to the Sources section for new source pages and to Concepts for new concept pages" and "Update /workspace/extra/second-brain/wiki/Wiki Ingest Log.md with a dated entry noting what was ingested" and "Message James (telegram-mg-17796) with a concise bullet list of what was new and what was ingested."

Three actions remain:
1. Edit `/workspace/extra/second-brain/wiki/Home.md` — add `[[Rulebook-Driven Migration Loop]]` to Concepts section and add source entries for the two new blog pages to Sources section
2. Edit `/workspace/extra/second-brain/wiki/Wiki Ingest Log.md` — add Jul 16 blog check entry
3. Send message to `telegram-mg-17796` summarizing what was ingested

You MUST wrap all responses in <message to="name">...</message> blocks.
Available destinations: `cli-local`, `cw-coder`, `ingest-into-wiki`, `slack-agenticlever-website`, `slack-infrastructure`, `slack-mg-17835`, `slack-mg-17835-2`, `slack-mg-17835-3`, `slack-mg-17835-4`, `slack-mg-17835-5`, `slack-mg-17835-6`, `slack-qip-qien`, `slack-roadsense`, `slack-stagehand`, `slack-tradingbot25`, `telegram-mg-17796`, `telegram-mg-17800`.

If you need specific details from before compaction (like exact code snippets, error messages, or content you generated), read the full transcript at: /home/node/.claude/projects/-workspace-agent/033a4a00-9171-4e08-9a79-6b99f177355d.jsonl
Continue the conversation from where it left off without asking the user any further questions. Resume directly — do not acknowledge the summary, do not recap what was happening, do not preface with "I'll continue" or similar. Pick up the last task as if the break never happened.


/workspace/extra/second-brain/wiki/sources/Claude Blog - Fable 5 in Claude Cowork.md

# Claude Blog - Fable 5 in Claude Cowork

**URL:** https://claude.com/blog/working-with-claude-fable-5-in-claude-cowork
**Date:** July 16, 2026
**By:** Josefina Albert (Anthropic Education team)
**Type:** Tutorial / best-practices guide

## What's new vs earlier Cowork posts

Focused specifically on Fable 5's extended autonomy and self-correction in Cowork workflows. Key additions over [[Claude Blog - Best Practices for Claude Cowork]]:

- **Effort settings** — adjustable effort levels control planning depth and verification frequency (new control surface not in earlier docs)
- **Transparent planning panel** — side panel shows Claude's step-by-step workflow before it executes; catch errors before they compound
- **Multi-day context retention** — Fable 5 maintains coherence across tasks that span days, not just a session

## Core framing

> "Working with it resembles working with a highly capable colleague: you explain the situation, agree on what a strong final result looks like, and let your colleague work."

Delegation model: give Fable 5 the goal and definition of done; it handles planning, approach, and timing. User role shifts to reviewing and approving outputs.

## Use cases highlighted

- Deep research synthesis
- Due diligence reviews
- Batch contract analysis

## Relevant to James

- Low direct relevance — Cowork-focused (James uses Claude Code primarily)
- **Effort settings concept** is worth watching: if effort tuning lands in Claude Code, it's a cost-optimization lever (lighter effort for routine tasks, heavier for reasoning-critical ones)
- The "define done before delegating" principle reinforces [[Long-Running Agent Primitives]] Default-FAIL contract

## Related

- [[Claude Blog - Best Practices for Claude Cowork]]
- [[Claude Blog - Claude Cowork Product Guide]]
- [[Claude Fable 5 and Mythos 5]]
- [[Long-Running Agent Primitives]]

../extra/second-brain/wiki/sources/Claude Blog - Fable 5 in Claude Cowork.md


# Rulebook-Driven Migration Loop

**Origin:** [[Claude Blog - AI Code Migration]] (Jul 2026)
**Pattern type:** Large-scale code transformation loop

## The core insight

> "You don't fix the code. You fix the process (loop) that produced the code."

When migrating a large codebase, individual file fixes don't scale. A single translation error can affect thousands of files. The correct lever is the **rulebook** — the set of transformation rules the agents apply. Fix the rule once; the regeneration loop propagates the fix everywhere.

## How it works

```
┌─────────────────────────────────────────────────────┐
│  Rulebook  ──→  Batch Generator  ──→  Output Files  │
│      ↑                                    │         │
│      │          Compiler / Tests          │         │
│   Fix rule  ←──  Error Feedback  ←────────┘         │
└─────────────────────────────────────────────────────┘
```

1. **Rulebook** encodes translation patterns (e.g., "Python dict comprehension → TS Record<K,V>")
2. **Batch generator** applies rules across all files; work queue tracks what's done via file existence checks (resumable)
3. **Build daemon** serializes compiles, feeds structured errors back as input to fixer agents
4. **Fixer agents** identify which rule broke → amend rulebook → regenerate affected batch
5. **Parity harness** verifies behavior equivalence, not just compilation success

## When to use

- Large-scale language migration (thousands of files)
- Any repetitive code transformation across a big codebase (API version upgrade, naming convention change, framework swap)
- Situations where fixing individual files is slower than fixing the pattern that generated them

## When NOT to use

- Small codebases where manual review per file is faster
- Migrations with high semantic variability (each file needs unique judgment)

## Key implementation primitives

| Primitive | Purpose |
|---|---|
| **Work queue via file existence** | Resumable — restart without re-processing completed files |
| **Build daemon** | Serializes rebuilds; no duplicate compiles |
| **Advisory model split** | Fable 5 for judgment (rulebook fixes), cheaper model for execution (batch generation) |
| **Parity harness** | Behavior validation when test suite isn't portable |

## Relationship to other patterns

- Extends [[Builder-Verifier Loop Pattern]] — adds the "fix the rulebook" level above fix-individual-file
- Relies on [[Claude Code Dynamic Workflows]] — parallel agents process independent work units
- The build-daemon feedback loop echoes the Default-FAIL contract in [[Long-Running Agent Primitives]]

## Real-world proof

- Bun: 1M-line Zig→Rust migration in 2 weeks (100% test suite)
- Python→TypeScript: 165k lines over a weekend


/workspace/extra/second-brain/wiki/sources/Claude Blog - AI Code Migration.md

# Claude Blog - AI Code Migration

**URL:** https://claude.com/blog/ai-code-migration
**Date:** July 16, 2026
**By:** Anthropic (features work by Jarred Sumner / Bun, and Mike Krieger)
**Type:** Engineering workflow guide

## Core claim

Code migrations—historically multi-year projects—can now be completed in days or weeks using Claude Code's multi-agent loop architecture. The key insight:

> "You don't fix the code. **You fix the process (loop) that produced the code.**"

## Real-world examples

| Migration | Size | Duration |
|---|---|---|
| Bun: Zig → Rust | 1 million lines | 2 weeks (100% test suite passing pre-merge) |
| Python → TypeScript | 165,000 lines | One weekend |

## Six-step migration process

1. **Create rulebook + dependency map** — document translation rules and file dependencies
2. **Stress-test the rules** — run a small batch, find where the rulebook breaks
3. **Translate everything** — run the full batch with validated rules
4. **Compile** — build daemon serializes rebuild operations, feeds errors back to fixer agents
5. **Run smoke tests** — parity harness validates behavior
6. **Verify behavior matching** — seven real-world scenarios (Mike Krieger's method)

## Key techniques

### Rulebook-driven fixes
When a pattern fails, you amend the translation rulebook — not individual files. The amendment then regenerates the entire affected batch. One fix, propagated everywhere.

### Mechanical work queues (resumable)
Check for output file existence on disk to determine what still needs processing. Migrations resume from where they left off with no bookkeeping.

### Build daemons
Serialize expensive rebuild operations and pipe compiler errors back to fixer agents as structured input. Prevents agents from rebuilding the same file repeatedly.

### Advisory pattern (cost-efficient)
Combine Claude Fable 5 (reasoning) + Opus 4.8 (workhorse) for cost-effective delegation. Fable 5 handles judgment calls; Opus 4.8 handles mechanical translation.

### Parity harnesses
When the legacy test suite isn't portable to the new language, build behavior-matching harnesses. Mike Krieger used seven real-world scenarios to validate behavior equivalence.

### Adversarial review
Use multiple model classes to cross-verify migration output. Avoids the primary agent convincing itself its own work is correct.

## Concept pages

- [[Rulebook-Driven Migration Loop]] — the core pattern from this post
- [[Builder-Verifier Loop Pattern]] — adjacent pattern for any build/test cycle
- [[Claude Code Dynamic Workflows]] — multi-agent parallelism underlying the migration approach

## Applicability

- **Any large-scale refactor in James's projects** — qip-qien TypeScript codebase, congressional-trading Python → any future language move, nanoclaw provider routing refactor
- **Pattern to watch:** the "fix the rulebook, regenerate the batch" principle applies to any repetitive code transformation, not just language migrations

../extra/second-brain/wiki/sources/Claude Blog - AI Code Migration.md


<system>Your response was not delivered — it was not wrapped in <message to="name">...</message> blocks. All output must be wrapped: use <message to="name"> for content to send, or <internal> for scratchpad. Your destinations: cli-local, cw-coder, ingest-into-wiki, slack-agenticlever-website, slack-infrastructure, slack-mg-17835, slack-mg-17835-2, slack-mg-17835-3, slack-mg-17835-4, slack-mg-17835-5, slack-mg-17835-6, slack-qip-qien, slack-roadsense, slack-stagehand, slack-tradingbot25, telegram-mg-17796, telegram-mg-17800. Please re-send your response with the correct wrapping.</system>


Let me continue from where I left off. I need to:
1. Edit `/workspace/extra/second-brain/wiki/Home.md` — add `[[Rulebook-Driven Migration Loop]]` to Concepts section and add source entries for the two new blog pages to Sources section
2. Edit `/workspace/extra/second-brain/wiki/Wiki Ingest Log.md` — add Jul 16 blog check entry
3. Send message to `telegram-mg-17796` summarizing what was ingested

Let me read Home.md first to see the current state and find the right places to insert.