Build a Team OS with Claude Code
Author: Aakash Gupta (featuring Hannah Stulberg) | Published: 2026-04-07
A five-part framework for building a “Team OS” – a shared GitHub repo as a team’s single source of truth, queryable by Claude Code so team members self-serve instead of routing every question through the PM.
1. The Team OS Structure
Problem: The PM is the human router. Every question goes through them. Doesn’t scale.
Solution: One shared repo where every function checks in their work. Everyone self-serves.
Three Components
-
Root CLAUDE.md – loaded every session. Contains exactly three things:
- Doc index mapping where every type of info lives
- Team roster with Slack and GitHub handles
- Key Slack channels mapped to IDs/purposes
- Keep it under one page
-
Nested doc indexes – every major folder gets its own CLAUDE.md as a navigation map (not content). Enables precise navigation without burning context
-
Folder architecture – three top-level sections:
.claude/for shared agents, commands, skills- Product development folders (customers, competitive, PRDs, strategy, analytics, engineering)
- Team folder (onboarding, retros)
Key insight: Every level of nesting is a context-saving decision.
2. Token Efficiency Framework
| Tier | What | Size | When loaded |
|---|---|---|---|
| Tier 1 (Always) | Root CLAUDE.md, team roster, channels | < 500 tokens | Every session |
| Tier 2 (On query) | Folder-level CLAUDE.md files | 200-500 tokens each | When Claude navigates to folder |
| Tier 3 (On demand) | Actual content (PRDs, transcripts, SQL) | Hundreds-thousands | When specifically needed |
Three Failure Modes
- Flat repo, no CLAUDE.md files – Claude runs expensive explore agents
- Overstuffed root file – everything loaded every session, kills thinking room
- Full transcripts instead of summaries – 10,000+ tokens vs 500 for structured summary
3. Scaling Analytics Across Functions
Layer 1: Metrics, Queries, and Schemas
- Organized by product area, then by data type (metrics.md, queries/, schemas/)
- Can connect to Snowflake MCP for live analysis using verified queries
Layer 2: Playbooks and Verified Approaches
- The analyst’s investigation process checked into the repo as a playbook
- Claude follows the same methodology. Critical: analyst must audit the playbooks
Layer 3: Feature Launch Gate
- A feature is not launched until the repo is updated
- Checklist: metric definitions, verified SQL, table schemas, dashboard links, investigation playbooks
4. Writing 10x Docs with Planning
Three Prompting Tiers
| Tier | Approach | When |
|---|---|---|
| Basic | Type request, Claude decides everything | Quick lookups only |
| Lightweight | “Give me a proposal first” | Most tasks |
| Full plan mode | Shift+Tab twice; Claude can’t execute until you approve | Strategy docs, complex work |
Full Planning Process (Five Phases)
- Load context – Claude reads research, docs, writing guides in parallel
- Ask user questions – Claude clarifies audience, focus, scope
- Build plan file – section-by-section structure for review
- Push your thinking – tell Claude to challenge assumptions
- Review agent prompts – verify what files each agent will read
Parallel Agents and Temp Files
- Split complex documents across agents, each writing to a temp file
- Orchestrating agent compiles final doc
- Must explicitly prompt Claude to use temp files
Key insight: “Most people under-plan. The plan is not overhead. The plan IS the work.”
5. The Learning Flywheel
- Automate one task -> free up time
- Use freed time to learn -> improve your repo
- Better repo -> more automation possible
- More automation -> even more time freed
Five Mistakes That Stall Progress
- Giving up after day one (commit to 30 days)
- Copying without understanding (can’t fix what you don’t understand)
- Treating it as a coding tool (most PM time is writing docs, analysis, prototypes)
- Not clearing between tasks (leftover context pollutes results)
- Context rot (not updating the repo means Claude uses outdated intel)