Episode
Structuring Codebases for AI, Claude Code in GitHub, Scale Acquired! Granola Cafe, AI Rules and More MCP
- Podcast
- You've Been a Bad Agent
- Published
- Jun 12, 2025
- Duration seconds
- 3826
- Processing state
processed- Canonical source
- https://share.transistor.fm/s/82181cce
Actions
POST https://stenobird.com/v1/public/podcasts/you-ve-been-a-bad-agent-7334728/episodes/structuring-codebases-for-ai-claude-code-in-github-scale-acquired-granola-cafe-ai-rules-and-more-mcp/transcription-requests
Idempotently request low-priority transcript generation for this episode.GET https://stenobird.com/podcast/you-ve-been-a-bad-agent-7334728/structuring-codebases-for-ai-claude-code-in-github-scale-acquired-granola-cafe-ai-rules-and-more-mcp.md
Read the agent-friendly Markdown representation of this episode resource.
Summary
To leverage AI coding agents effectively, you must move beyond simple file access and focus on structuring codebases with clear boundaries and trace-based context. The discussion explores how tools like Claude Code and MCP servers can be optimized through better documentation and rule-based instructions.
Topics
- Claude Code
- Model Context Protocol
- AI Coding Agents
- Software Architecture
- MCP Servers
- Codebase Refactoring
- Developer Tooling
- Automated Migrations
Highlights
- Main idea: Effective AI coding requires structuring codebases with clear boundaries and high-signal documentation to prevent model confusion
- Practical takeaway: Use compact representations of key code transactions (traces) to teach agents which functions and files are critical to core logic
- Failure mode: Models struggle with 'cleaning up' after themselves, necessitating strict rule files (like cursor-rules) to prevent unused variables and messy refactors
- Technical insight: Using URL-based secrets in MCP servers can bypass the complexities and broken implementations of standard OAuth flows in AI clients
- Tooling trend: The rise of subagents in tools like Shippie allows for parallel processing of complex coding tasks across different parts of a codebase
Chapters
1:00Tech Industry Drama & Meta's Scale Acquisition: A discussion on the implications of Meta's 49% stake in Scale AI and the strategic importance of data distribution.11:00Codebase Structure for Parallelization: Exploring how separating testing frameworks, UI components, and logic allows for better parallel processing in AI-driven development.15:00Automating Migrations with Claude Code: Using Claude Code and custom utility libraries to automate large-scale version migrations and codebase updates.20:00Stateful AI Tools and Gitli: Discussing the emergence of stateful development tools and the utility of Gitli for managing developer workflows.30:00Solving Authentication in MCP Servers: Analyzing the Supermemory MCP approach to using URL-based secrets to avoid broken OAuth and Bearer token implementations.44:00Enforcing Strict Coding Standards via Rules: The necessity of using rule files to prevent models from introducing unused variables and unoptimized code.53:00Context-Aware Agents and Trace-Based Learning: The future of coding agents: providing models with traces of key transactions to improve understanding of complex logic flows.