← Discover MCPs and Agents
a
AgentAI & MLGitHub

awesome-ai-anatomy

Source code teardowns of 15 AI coding agents. What is actually inside Claude Code, Dify, OpenHands, Cline, MemPalace, oh-my-codex, Goose, Codex CLI, and 7 more. Architecture diagrams, design patterns. Every claim fact-checked.

Links

README

From the repo.

NEW: AgentSentinel -- We went from studying agent anatomy to protecting it. A zero-trust local proxy that monitors, secures, and records every decision your AI agent makes. Built from the security findings of our 16+ agent teardowns. npx agent-sentinel start

Awesome AI Anatomy

English | 简体中文

Stars Forks Twitter Substack Teardowns Updated Weekly Last Updated License

Source code teardowns of AI coding agents. Architecture diagrams, design patterns, and the stuff nobody documents.

Claude Code hides 18 virtual pet species inside production code that runs on your machine. MemPalace got 30K stars in 4 days - with 7,600 lines of Python. oh-my-codex runs 30 AI agents in parallel using git worktrees for isolation. None of this is in the docs. We found it by reading every file.

New teardown every Tuesday · Get it in your inbox (free) · Follow on X

Awesome AI Anatomy

15 AI agent projects dissected - architecture diagrams, design patterns, and the engineering decisions nobody documents.


Table of Contents


Greatest Hits

The 5 findings people can't stop sharing:

#FindingProjectWhy It Matters
1Claude Code ships 18 virtual pet species - a full tamagotchi system hidden in a coding agentClaude CodeWhat else is hiding in tools you run with sudo?
2Pi Mono's "stealth mode" mirrors Claude Code tool names for provider compatibilityPi MonoOpen-source projects gaming API providers is a trend
3MiroFish's "collective intelligence" = LLM social simulation - agents role-playing humans on a simulated social networkMiroFish50K stars driven by a compelling vision of agent-based prediction
4Lightpanda's bitcast dispatch makes Zig act like a language with vtables - a systems trick we'd never seen beforeLightpandaZig comptime metaprogramming pushed to its limits
5DeerFlow's orphan tool call bug - 93 lines of code fix a crash that affects every LangGraph-based agentDeerFlowIf you use LangGraph, you probably have this bug too

These are real findings from reading source code, not vibes from README files.

Ever wondered how Claude Code manages its context window? Or why Codex CLI chose Rust and built a 17K-line sandbox? These teardowns answer questions like that by reading the actual source code.


Project Index

15 AI agent source code analyses - from orchestration frameworks to coding assistants.

On mobile? Scroll right to see all columns, or tap a project name to read the full teardown.

#ProjectStarsLanguageLinesKey FindingsStatus
001Dify136KPython + TS1.24Mgraphon engine, 7+ containers, 30+ vector DBsPublished
002Claude Code109KTypeScript510K4-layer context, hidden pet system (18 species)Published
003Browser Use87KPython53KRaw CDP over Playwright, DOM pipeline beats screenshots 5x, skills system, custom Chromium forkNEW
004OpenHands71KPython + TS400K10 condensers, 3-layer security, 487-line stuck detectorPublished
005Cline60KTypeScript560K3,756-line God Object, 40+ providers, YOLO mode, hooks systemPublished
006DeerFlow58KPython + TS180K14-layer middleware, hash loop kill@5, no RBACPublished
007MiroFish50KPython + Vue39KLLM social simulation engine for collective intelligencePublished
008Goose37KRust + TS198KMCP-first bus, 5-inspector pipeline, 30+ LLMsPublished
009Pi Mono32KTypeScript147KGame-engine arch, stealth mode as Claude CodePublished
010MemPalace30KPython9KMilla Jovovich's 4-layer memory palace, AAAK dialect debunkedPublished
011OpenAI Codex CLI27KRust549KQueue-pair arch, Guardian AI approval, 3-OS sandboxPublished
012Lightpanda27KZig + Rust91KFrom-scratch browser for AI agents, 9x ChromePublished
013Hermes Agent26KPython260KSelf-improving skills, FTS5 search, frozen memPublished
014oh-my-claudecode24KTypeScript194K19-agent team via file IPC, Haiku→Opus routingPublished
015oh-my-codex19.5KTypeScript124K30 agents, git worktrees, plugin hook SDK, autoresearch loopsPublished
016Guardrails AI6.6KPython18KValidator Hub, reask self-correction loopPublished

Projects sorted by GitHub stars (descending).


Cross-Project Comparison

Interactive Comparison Tool - filter, search, and compare projects side by side.

We maintain a detailed COMPARISON.md with side-by-side analysis across all 16 projects:

  • Quick Reference (creator, stars, language, type, license)
  • Architecture patterns (agent loop, extensibility, deployment)
  • Multi-agent & orchestration approaches
  • Memory & persistence strategies

We also have a CROSS-CUTTING.md - a deep horizontal analysis covering:

  • Architecture pattern taxonomy across all projects
  • Context management strategies compared
  • Tool system design patterns
  • Security posture evaluation
  • Anti-pattern catalog with evidence
  • "Build from scratch" recommendations
  • Safety & security postures
  • "If I Were Building an Agent Today" synthesis

Read the full comparison →


What Makes This Different

Other "awesome" listsThis repo
Curate links and descriptionsDissect repos
"What they use"Why they chose it
Overview metricsArchitecture diagrams + trade-off analysis
High-level overviewsDetailed engineering analysis with code references
Praise everythingReveal engineering decisions and trade-offs

Each Teardown Includes

  • Architecture diagrams - Mermaid + hand-drawn style PNGs showing component relationships
  • Detailed analysis - security posture, architecture trade-offs, code quality observations
  • Core innovation analysis - what the project does that nobody else does
  • Code-level references - file paths + line numbers for every claim
  • Cross-project comparison table - how it stacks up against alternatives
  • "Stuff Worth Stealing" - patterns other projects should adopt
  • Verification log - every factual claim fact-checked against source code
  • Easter eggs and hidden details - the stuff you'd only find reading every file

Knowledge Base

Beyond individual teardowns, we maintain cross-cutting analysis:

  • COMPARISON.md - Side-by-side comparison across all 16 projects
  • CROSS-CUTTING.md - Patterns, anti-patterns, and architectural trends
  • knowledge/ - Structured knowledge base: design patterns, anti-patterns, and project metadata

Coming Next

  • Crush (22K stars) - OpenCode's successor, built by the Charm team (Bubble Tea)
  • Aider (36K stars) - Git-native AI pair programming, Python
  • Continue (28K stars) - Open-source AI IDE extension, TypeScript
  • Cursor - the most controversial AI IDE (closed source, partial analysis)
  • Windsurf - Codeium's AI IDE fork (closed source, partial analysis)

Have a project in mind? → Suggest a teardown


Contributing

Found an error? Have a better analysis? PRs welcome.

  • Fix factual errors
  • Add missing architecture details
  • Suggest projects to teardown → Open an Issue
  • Help translate teardowns

Stay Updated

New teardown every Tuesday.

Subscribe to AI Anatomy Newsletter -- the full analysis, delivered to your inbox. Free.

Follow @Neuzhou_ on X -- teardown highlights + AI agent commentary.

Star to bookmark this repo. Watch > Releases to get GitHub notifications when new teardowns drop.

16 deep-dives published so far. The next batch is already in progress.

Star History Chart


Legal Notice

These teardowns are independent technical commentary for educational purposes under fair use (criticism, commentary, and education). Analysis of proprietary products is based on publicly available information including published npm packages, source maps, and documentation. No source code from analyzed projects is hosted in this repository - only short citations for commentary.

Project names and trademarks belong to their respective owners. Star counts and metrics are snapshots at time of writing. Analysis may contain errors - please verify claims against current source code.

For takedown requests, please open an issue with specific concerns.


16 projects dissected. Updated weekly.

Collected info

  • 243 stars
  • 22 forks
  • Language: D2
  • Source updated: 9/23/2026