Status: β
Planning Complete, Ready for Implementation
Estimated Effort: 50-70 hours (60% reduction from original plan)
Architecture: Built on Paul Payne's issue-manager module
An intelligent activity tracking system that:
- Automatically detects duplicate work when developers start new tasks
- Files new ideas discovered during development
- Coordinates across repos for multi-repo projects
- Uses LLM + embeddings for accurate duplicate detection
- Minimal overhead - <2s impact on session start
Building on the GitHub issue tools module means we only need to add the intelligence layer - issue retrieval and management are already done!
-
SPECIFICATION_V2.md (24KB)
- Complete technical specification
- Architecture design
- Data models and flows
- Integration with issue-manager
- READ THIS FIRST
-
TASKS.md (18KB)
- 28 detailed tasks across 4 phases
- Hour estimates per task
- Dependencies and priorities
- Acceptance criteria
- YOUR IMPLEMENTATION ROADMAP
-
TESTING_STRATEGY.md (22KB)
- Unit, integration, performance, E2E tests
- Coverage goals (>80%)
- Test frameworks and tools
- Example test code
- QUALITY ASSURANCE GUIDE
-
PROJECT_STRUCTURE.md (19KB)
- Repository structure
- Module breakdown
- Data flows
- Configuration examples
- ARCHITECTURE REFERENCE
- SPECIFICATION.md (46KB)
- Original design with Beads substrate
- Archived for reference
- Shows evolution of thinking
What You'll Build:
- Hook module that captures session start/end
- Simple LLM-based duplicate detection
- Integration with issue-manager
- Basic notification system
How to Start:
# 1. Set up project
cd C:\ANext\activity-tracker
mkdir amplifier-module-hooks-activity-tracker
cd amplifier-module-hooks-activity-tracker
# 2. Initialize Python project
python -m venv venv
venv\Scripts\activate
pip install amplifier-core openai pyyaml pytest
# 3. Create module structure (see PROJECT_STRUCTURE.md)
# 4. Start with Task 1.1 in TASKS.mdFirst Tasks:
- Task 1.1: Module Scaffold (2 hours)
- Task 1.2: Context Capture (3 hours)
- Task 1.3: Session Start Hook (4 hours)
Duration: 1-2 weeks
Effort: ~25 hours
Tasks: 10 tasks
Goal: Prove concept with core functionality
Deliverables:
- β Session start/end hooks
- β Context capture (prompt, git, files)
- β Simple LLM duplicate detection
- β Session tracking in issue-manager
- β Basic idea filing
Duration: 1 week
Effort: ~20 hours
Tasks: 7 tasks
Goal: Add embeddings for speed and accuracy
Deliverables:
- β Embedding generation (OpenAI)
- β Embedding cache (SQLite)
- β Two-phase matching (embeddings β LLM)
- β Performance optimization
- β <5s analysis for 100 issues
Duration: 1 week
Effort: ~15 hours
Tasks: 5 tasks
Goal: Project groups and cross-repo coordination
Deliverables:
- β ProjectGroupManager
- β Multi-repo issue querying
- β Smart repo selection for new issues
- β Enhanced tool-issue operations
- β Cross-repo duplicate detection
Duration: 3-5 days
Effort: ~10 hours
Tasks: 6 tasks
Goal: Production-ready release
Deliverables:
- β Comprehensive error handling
- β Full test suite (>80% coverage)
- β Complete documentation
- β Performance validation
- β v1.0.0 release
User Session
β
βββββββββββββββββββββββββββββββββββ
β hooks-activity-tracker (NEW) β β What we're building
β β’ Session lifecycle hooks β
β β’ LLM-powered analysis β
β β’ Multi-repo coordination β
ββββββββββββββ¬βββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββ
β issue-manager (EXISTING) β
β β Paul's module (already done!)
β β’ Storage & CRUD β
β β’ Dependencies & cycles β
β β’ Ready work detection β
β β’ Event tracking β
βββββββββββββββββββββββββββββββββββ
Key Insight: We're building a thin intelligence layer on top of solid existing infrastructure.
- Overall: >80%
- Critical paths: >85%
- Data integrity: >95%
- Unit Tests (60%) - Individual functions
- Integration Tests (30%) - Module interactions
- E2E Tests (10%) - Full workflows
- Context capture (git, files, prompts)
- LLM analysis and parsing
- Embedding generation and caching
- Multi-repo coordination
- Error handling and recovery
See TESTING_STRATEGY.md for detailed test plans.
- Detects obvious duplicates >80% of time
- Files ideas automatically with >90% accuracy
- Zero unhandled exceptions
- Setup time <10 minutes
- Analysis <5s for 100 issues
- False positive rate <10%
- Cache hit rate >70%
- User satisfaction 7/10+
- Works with 3-5 repo groups
- Cross-repo duplicate detection >80%
- No performance degradation
- Test coverage >80%
- Zero critical bugs in 1 week
- Documentation complete
- Ready for team rollout
- amplifier-core - Amplifier kernel
- issue-manager - Storage and CRUD (Paul's module)
- openai - LLM and embeddings
- pyyaml - Configuration
- numpy - Vector operations
- sqlite3 - Embedding cache
- pytest - Testing framework
- pytest-asyncio - Async tests
- pytest-cov - Coverage reporting
- black - Code formatting
- ruff - Linting
- mypy - Type checking
- Set up project structure
- Implement core hooks
- Basic LLM analysis
- Integration with issue-manager
- Milestone: Working duplicate detection
- Add embeddings
- Build cache layer
- Performance optimization
- Milestone: <5s analysis time
- Project groups
- Multi-repo querying
- Enhanced tool operations
- Milestone: Cross-repo coordination
- Error handling
- Full test suite
- Documentation
- Release prep
- Milestone: v1.0.0 release
Total: 4-5 weeks for complete implementation
- Native Amplifier module
- Teammate collaboration
- 60% effort reduction
- Pure Python
- Embeddings pre-filter (fast)
- LLM reasoning (accurate)
- Best of both worlds
- Only high-confidence (>0.85)
- Less intrusive
- Better UX
- Simple, no infrastructure
- Works with existing workflow
- Can add real-time later if needed
- Using his issue-manager module
- Can contribute enhancements
- Coordinate on features
- Share profiles and config
- Collaborate via git
- Multi-repo project groups
- Review specifications - Make sure design meets needs
- Set up repository - Create module structure
- Start Task 1.1 - Module scaffold (2 hours)
- Complete Module 1 (hooks-activity-tracker scaffold)
- Complete Module 2 (ActivityAnalyzer basic)
- First integration test passing
- Can detect duplicates with simple LLM
- LLM provider configuration details
- OpenAI API key management
- Repository location decisions
- Team coordination approach
Planning Documents (All in C:\ANext\activity-tracker\):
- β README.md (this file) - Project overview
- β SPECIFICATION_V2.md - Technical specification (use this)
- β SPECIFICATION.md - Original spec with Beads (archive)
- β TASKS.md - Implementation task list
- β TESTING_STRATEGY.md - Testing approach
- β PROJECT_STRUCTURE.md - Architecture reference
Git Repositories:
- β amplifier/ - Cloned Amplifier repo (reference)
- β payne-amplifier/ - Paul's modules (reference)
amplifier/docs/REPOSITORY_RULES.md- Module boundariesamplifier/docs/MODULES.md- Available modulesamplifier/docs/MODULE_DEVELOPMENT.md- How to build modules
payne-amplifier/max_payne_collection/modules/issue-manager/- Source codepayne-amplifier/max_payne_collection/modules/tool-issue/- Tool wrapper
- @foundation:context/IMPLEMENTATION_PHILOSOPHY.md - Ruthless simplicity
- @foundation:context/MODULAR_DESIGN_PHILOSOPHY.md - Bricks and studs
- β Requirements gathered
- β Architecture designed
- β Tasks broken down
- β Testing strategy defined
- β Documentation created
- β¬ Phase 1: MVP (not started)
- β¬ Phase 2: Enhanced (not started)
- β¬ Phase 3: Multi-Repo (not started)
- β¬ Phase 4: Polish (not started)
- Read SPECIFICATION_V2.md first - Understand the design
- Follow TASKS.md sequentially - Dependencies matter
- Write tests alongside code - Don't defer testing
- Use issue-manager for tracking - Dogfood your own tool!
- β Don't skip error handling
- β Don't test implementation details
- β Don't over-engineer Phase 1
- β Don't ignore performance early
- β Keep it simple (ruthless simplicity!)
- Check SPECIFICATION_V2.md for design details
- Review PROJECT_STRUCTURE.md for examples
- Look at issue-manager source code
- Ask Paul about issue-manager specifics
- Review Amplifier module examples
- All specs and guides in this directory
- Amplifier docs in
amplifier/docs/ - issue-manager in
payne-amplifier/
- Look at existing Amplifier modules
- Reference Paul's issue-manager
- Check tool-issue for tool patterns
Last Updated: 2025-11-20
Next Milestone: Phase 1 MVP Complete
Estimated Completion: 4-5 weeks from start
Let's build this! π