- Created organized guidelines/ directory with focused documentation: - DESIGN_PHILOSOPHY.md: KISS principle and simplicity focus - MODULE_DEVELOPMENT.md: How to build modules with systems focus - TESTING_STANDARDS.md: Immediate testing patterns - PERFORMANCE_CLAIMS.md: Honest reporting based on CIFAR-10 lessons - AGENT_COORDINATION.md: How agents work together effectively - GIT_WORKFLOW.md: Moved from root, branching standards - Added .claude/README.md as central navigation - Updated CLAUDE.md to reference guideline files - Created CLAUDE_SIMPLE.md as streamlined entry point All learnings from recent work captured in appropriate guidelines
4.9 KiB
TinyTorch Agent Coordination Guidelines
🎯 Core Principle
Agents work in sequence with clear handoffs, not in isolation.
🤖 The Agent Team
Primary Interface: Technical Program Manager (TPM)
The TPM is your SINGLE point of communication for all development.
User Request → TPM → Coordinates Agents → Reports Back
The TPM knows when to invoke:
- Education Architect - Learning design
- Module Developer - Implementation
- Package Manager - Integration
- Quality Assurance - Testing
- Documentation Publisher - Content
- Workflow Coordinator - Process
- DevOps Engineer - Infrastructure
- Tito CLI Developer - CLI features
📋 Standard Development Workflow
The Sequential Pattern
For EVERY module development:
1. Planning (Workflow Coordinator + Education Architect)
↓
2. Implementation (Module Developer)
↓
3. Testing (Quality Assurance) ← MANDATORY
↓
4. Integration (Package Manager) ← MANDATORY
↓
5. Documentation (Documentation Publisher)
↓
6. Review (Workflow Coordinator)
Critical Handoff Points
Module Developer → QA Agent
# Module Developer completes implementation
"Implementation complete. Ready for QA testing.
Files modified: 02_tensor_dev.py
Key changes: Added reshape operation with broadcasting"
# QA MUST test before proceeding
QA Agent → Package Manager
# QA completes testing
"All tests passed.
- Module imports correctly
- All functions work as expected
- Performance benchmarks met
Ready for package integration"
# Package Manager MUST verify integration
🚫 Blocking Rules
QA Agent Can Block Progress
If tests fail, STOP everything:
- No commits allowed
- No integration permitted
- Must fix and re-test
Package Manager Can Block Release
If integration fails:
- Module doesn't export correctly
- Breaks other modules
- Package won't build
📝 Agent Communication Protocol
Structured Handoffs
Every handoff must include:
- What was completed
- What needs to be done next
- Any issues found
- Test results (if applicable)
- Recommendations
Example:
From: Module Developer
To: QA Agent
Completed:
- Implemented attention mechanism in 07_attention_dev.py
- Added scaled dot-product attention
- Included positional encoding
Needs Testing:
- Attention score computation
- Mask application
- Memory usage with large sequences
Known Issues:
- Performance degrades with sequences >1000 tokens
Recommendations:
- Focus testing on edge cases with padding
🔄 Parallel vs Sequential Work
Can Work in Parallel
✅ Different modules by different developers ✅ Documentation while code is being tested ✅ Planning next modules while current ones build
Must Be Sequential
❌ Implementation → Testing (MUST test after implementation) ❌ Testing → Integration (MUST pass tests first) ❌ Integration → Commit (MUST integrate successfully)
🎯 The Checkpoint Success Story
How agents successfully implemented the 16-checkpoint system:
- Education Architect designed capability progression
- Workflow Coordinator orchestrated implementation
- Module Developer built checkpoint tests + CLI
- QA Agent validated all 16 checkpoints work
- Package Manager ensured integration with modules
- Documentation Publisher updated all docs
Result: Complete working system with proper handoffs
⚠️ Common Coordination Failures
Working in Isolation
❌ Module Developer implements without QA testing ❌ Documentation written before code works ❌ Integration attempted before tests pass
Skipping Handoffs
❌ Direct commit without QA approval ❌ Missing Package Manager validation ❌ No Workflow Coordinator review
Poor Communication
❌ "It's done" (no details) ❌ No test results provided ❌ Issues discovered but not reported
📋 Agent Checklist
Before Module Developer Starts
- Education Architect defined learning objectives
- Workflow Coordinator approved plan
- Clear specifications provided
Before QA Testing
- Module Developer completed ALL implementation
- Code follows standards
- Basic self-testing done
Before Package Integration
- QA Agent ran comprehensive tests
- All tests PASSED
- Performance acceptable
Before Commit
- Package Manager verified integration
- Documentation complete
- Workflow Coordinator approved
🔧 Conflict Resolution
If agents disagree:
- QA has veto on quality - If tests fail, stop
- Education Architect owns learning objectives
- Workflow Coordinator resolves other disputes
- User has final override
📌 Remember
Agents amplify capabilities when coordinated, create chaos when isolated.
Key Success Factors:
- Clear handoffs between agents
- Mandatory testing and integration
- Structured communication
- Sequential workflow where needed
- Parallel work where possible