2.8 KiB
2.8 KiB
gitcrawl Spec
Product Contract
gitcrawl is a local-first GitHub maintainer triage tool written in Go.
The target is a compact, local SQLite workflow for syncing, searching, clustering, and reviewing related GitHub issues and pull requests.
In Scope
- local SQLite storage
- metadata-first GitHub sync for open issues and pull requests
- optional comment, review, review-comment, and PR code hydration
- canonical thread document building
- FTS search
- OpenAI summaries and embeddings
- deterministic fingerprints
- vector search
- clustering and durable cluster governance
- portable sync export/import
- CLI JSON surfaces for automation and agents
- TUI browsing after core JSON contracts settle
Out Of Scope
- local HTTP API
- hosted service runtime
- browser web UI
- GitHub write-back actions
Architecture
cmd/gitcrawl: executable entrypointinternal/cli: command parsing and outputinternal/config: config and env resolutioninternal/store: SQLite schema and persistenceinternal/github: GitHub API clientinternal/syncer: repository sync workflowsinternal/documents: canonical document generationinternal/openai: OpenAI summaries and embeddingsinternal/vector: vector search abstractioninternal/cluster: similarity and durable cluster governanceinternal/search: keyword, semantic, and hybrid searchinternal/portable: compact sync export/importinternal/tui: terminal UI
TUI guidance:
gitcrawl tui [owner/repo]is a supported command; omitowner/repoto use the most recently updated local repository- keyboard-first navigation is required
- mouse support is optional polish
- right-click must not be required for primary actions because terminal mouse support is inconsistent
- avoid decorative glyph noise or transient rendering debris in dense panes
Command Surface
No serve command.
Public commands:
initdoctorconfigureversionsyncrefreshsummarizekey-summariesembedclusterthreadsrunsclustersdurable-clusterscluster-detailcluster-explainneighborssearchclose-threadclose-clusterexclude-cluster-memberinclude-cluster-memberset-cluster-canonicalmerge-clusterssplit-clusterexport-syncimport-syncvalidate-syncportable-sizesync-statusoptimizetuicompletion
Config
Default config path:
~/.config/gitcrawl/config.toml
Default database path:
~/.config/gitcrawl/gitcrawl.db
Primary environment variables:
GITCRAWL_CONFIGGITHUB_TOKENOPENAI_API_KEYGITCRAWL_DB_PATHGITCRAWL_SUMMARY_MODELGITCRAWL_EMBED_MODEL
Legacy environment aliases may be supported only when they do not leak old naming into user-facing output.