How storytold/autocraft works
AutoCraft mirrors GitHub repositories into a local database, processes items through a staged model-assisted maintenance pipeline, and exposes decisions, approvals, and item status through a dashboard. The principal workflow runs from repository sync through classification and maintainer decisions to reviewed fixes, verification, and safe merging; actions that need human judgment stop for operator input. The README documents the stage order and capabilities. Source-index references support selected internal links; relationships involving unsampled modules are omitted where the evidence does not establish a call.
Main entry points: index.ts Pipeline runner · decisions.ts Maintainer decisions · pipeline.ts Dashboard API · open.ts Local database
Components 21
Pipeline control
- Pipeline runner
src/runner/index.ts - GitHub sync
src/mirror.ts
Item analysis
- Duplicate detection
src/dupes/index.ts - Classify items
src/classify/run.ts - Prioritize items
src/priority/index.ts - Maintainer decisions
src/decisions.ts
Repository actions
- Apply labels
src/labels/index.ts - PR review
src/review/index.ts - Issue implementation
src/implement/session.ts - PR fix-up
src/fixup/index.ts - Build and verify
src/verify/index.ts - Merge queue
src/merge/index.ts - Decision actions
src/act/index.ts - Post-merge review
src/postmerge/index.ts
Operator interface
- Dashboard API
src/dash/api/pipeline.ts - Dashboard UI
web/src/main.tsx
Data and safeguards
- Local database
src/db/open.ts - Write guard
src/core/guard.ts - GitHub writes
src/github/write.ts - Model prompts
src/prompts/index.ts
Other components
- Maintainer / operator
Connections 23
- Maintainer / operator → Dashboard UI: uses dashboard
README.md - Dashboard UI → Dashboard API: requests pipeline
- Dashboard API → Pipeline runner: controls jobs
src/dash/api/pipeline.ts - Pipeline runner → GitHub sync: runs sync
README.md - GitHub sync → Duplicate detection: feeds items
README.md - Duplicate detection → Classify items: then classifies
README.md - Classify items → Prioritize items: then prioritizes
README.md - Prioritize items → Maintainer decisions: then prepares decisions
README.md - Maintainer decisions → Apply labels: then labels
README.md - Apply labels → PR review: then reviews
README.md - PR review → Issue implementation: then implements
README.md - Issue implementation → PR fix-up: then fixes up
README.md - PR fix-up → Build and verify: then verifies
README.md - Build and verify → Merge queue: then merges
README.md - Merge queue → Decision actions: then acts
README.md - Decision actions → Post-merge review: then reviews landed changes
README.md - Maintainer / operator → Maintainer decisions: answers questions
README.md - Maintainer / operator → Dashboard API: sets approvals
README.md - Pipeline runner → Local database: uses database
src/runner/index.ts - Pipeline runner → Model prompts: selects prompts
src/prompts/index.ts - GitHub writes → Write guard: checks writes
src/github/write.ts - Write guard → Local database: reads facts and approvals
src/core/guard.ts - GitHub writes → Local database: records audit
src/github/write.ts