Provides a local MCP server indexing Claude Code's 310K lines into 32 modules with 6 tools for architecture queries and source lookup.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
The install command below started, but didn't respond the way we expected when we tried to talk to it.
npx -y cc-senseiinitialize succeeded but no response to tools/list.
This is an experimental automated check and can have false negatives ā missing environment variables, a slow cold install, etc. It doesnāt necessarily mean somethingās wrong. Last checked 1mo ago.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Cc Sensei.
š© "I've already dug deep into Claude Code's source, but when I ask my AI to help me build an Agent, it has no idea what I'm talking about ā what I read, it didn't."
š« "I'd love to build a knowledge base so my AI can learn from Claude Code, but the moment I open it ā 300K+ lines, 1,250 files ā both my AI and I are scared off."
šµ "I've barely looked at Claude Code's source, but I still want an Agent just as powerful ā where do I even begin?"
If any of these hit home ā this project is built for you.
Agent Architecture Oracle distills Claude Code's 310K lines of source and 1,250 files into 32 core modules with 40K lines of structured analysis, and serves it directly to your AI through the MCP protocol.
It covers every core capability of Claude Code:
š Agent main loop Ā· š ļø Tool system & execution pipeline Ā· š”ļø Permissions & security sandbox Ā· š Model API & streaming š§ Context engineering & compaction Ā· š File / Shell / Git tools Ā· š MCP protocol Ā· šØ Ink rendering engine Ā· š§© Skills/plugins š¾ Persistent memory Ā· ā” Prompt cache break detection Ā· š¤ Sub-agents & task system ⦠(22 core + 10 deep-dive supplements)
It establishes a complete index pipeline: natural language ā module ā design decision ā reusable pattern ā corresponding source code:
After plugging it into Claude Desktop / Cursor / Qoder / your own Agent, your AI gains a "Chief Architect of Claude Code" as its consultant ā whether you're cloning the whole thing or just stealing one design, it tells you exactly where to look, why it works, and how to copy it.
In one night, your AI becomes a world-class Agent architect.
This downloads and runs the server directly. Skip to Step 3 to connect your AI.
Copy-paste again:
š” Don't have pnpm? Run
npm install -g pnpmfirst. š” This step parses 32 module analyses, generates the knowledge index, and compiles the server. One-time only.
When done, you should see: ā
module-registry.json (32 modules) and ā
Build success.
Add this snippet to your MCP client's configuration file (replace the path with the one you just cloned to):
Don't know where the config file is? Common locations:
| Client | Config file path |
|---|---|
| Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json |
| Cursor | Settings ā MCP ā Add new server |
| Qoder | Settings ā MCP ā Edit mcpServers |
Restart your client. Done! Your AI just gained 6 new skills.
Just say to your AI:
"Use cc-sensei to tell me how Claude Code optimizes prompt cache."
It will call the tools on its own and return a complete analysis with source-code references. That's it.
| Tool | One-line capability | When to use |
|---|---|---|
list_modules | List all 32 modules and their concerns | "Which modules does Claude Code break down into?" |
query_architecture | Natural-language search with 3 depth levels (brief/standard/deep) | "How do they prevent long-conversation context overflow?" |
get_module | Drill into one module's specific section (responsibility / architecture / decisions / principles / relations) | "Show me M06's design principles" |
trace_concern | Trace one concern across all 32 modules, ranked by hit count | "Which modules touch 'prompt cache'?" |
search_patterns | Bulk-extract reusable patterns with built-in size limiting | "Give me every cache-related design I can copy" |
get_source_code | Read Claude Code source directly (with line numbers, ranges, and directory listings) | "Show me services/api/claude.ts:1412-1456" |
Every tool comes with:
src/... and bare paths are accepted; no more copy-paste failures../../../etc/passwd are rejected outrightA complete "understand ā copy ā ship" loop, averaging ~110ms.
This project is dogfooding itself ā built using the methods Claude Code teaches, made to serve Claude.
| Claude Code's design philosophy | How this project applies it |
|---|---|
| Build-time indexing + zero runtime analysis | Section line ranges, keywords, and concerns are all computed in pnpm build:index; runtime just looks up JSON |
| Path-traversal gatekeeping | validatePath runs before every file read |
| Graceful degradation > unhandled crashes | Section not found? Return the "available types" hint |
| Structured prompt-as-spec | All 32 MODULE_NOTES strictly follow a 10-section template |
| Rate-limiting by default | search_patterns defaults to 800 chars per section, 12 sections cap, configurable |
| Test suite | Cases | Result |
|---|---|---|
| Baseline functionality (6 tools Ć multiple branches) | 30 | ā 30/30 |
| UX-fix regression | 11 | ā 11/11 |
| Real user-scenario E2E (3 personas) | 24 | ā 24/24 |
| Total | 65 | ā 65/65 |
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/contradictory-body-cc-sensei)<a href="https://allmcps.com/mcp/contradictory-body-cc-sensei"><img src="https://allmcps.com/api/badge/contradictory-body-cc-sensei?style=directory" alt="Cc Sensei on AllMCPs" /></a>