Code
How tw93/mole is laid out, and where to start for common changes.
There is no import map for this report yet.
Where to start reading
- Repository root
- Repository root
- Likely start-up file
- Likely start-up file
- Suggested starting pointAI
- Suggested starting pointAI
- Suggested starting pointAI
- Suggested starting pointAI
Find files for a task
AIAdd a New System Metric
- Create a new metrics_*.go file in cmd/status/ (e.g., metrics_memory.go)
- Implement collection function following the pattern in metrics_cpu.go or metrics_disk.go
- Register the new metric in metrics.go aggregation function
Add a New Cleanable Target
- Define detection logic in cmd/analyze/cleanable.go with file patterns and validation
- Register cleanup function in lib/clean/caches.sh or appropriate orchestrator
- Add test case in cmd/analyze/cleanable_test.go
Add Platform-Specific Logic (macOS vs Windows)
- Create *_darwin.go file for macOS (e.g., cmd/analyze/clone_darwin.go)
- Create *_other.go file for Windows (e.g., cmd/analyze/clone_other.go)
- Add tests for both platforms in *_test.go files
Add a New CLI Command
- Register command in Makefile build targets
Trace runtime behavior
Add or update tests
Change build or automation
RepoPilot lists up to 500 files, so a file missing here may still exist.
- Files marked “likely” are guessed from their names.
- The file list is newer than the written guide, so descriptions and suggested changes may describe older code.