RepoPilot

tw93 / mole

Search tw93/mole

GitHub

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

  1. Repository root
  2. Repository root
  3. Likely start-up file
  4. Likely start-up file
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add 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.

Code quality and hotspots

Largest source files

  • Branch points45 per file on average
  • Code issues0 errors, 3 warnings
  • Largest file5,101 lines
  • Hotspot load10 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions7 workflows
  • Tests130 test filesGo test · Pytest · 2.9 test files per source file (file count, not coverage)
  • Dependency updatesCodeQL · Dependabot

Test folders: cmd/analyze · cmd/status · tests

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.