How carstenbund/gitview works
GitView is a Git-history analysis CLI that turns repository commits into structured phases, evidence-backed analysis, and narrative reports. Its principal workflow extracts commit and repository metadata, chunks history, summarizes phases, generates a global story, and writes outputs. Separate commands expose compact briefs, persistent repository graphs, structural observations and motif detection, storyline tracking, and file/branch history tools. Edges are limited to README-documented flows and relationships visible in the supplied excerpts or SOURCE INDEX; unsampled command wiring is not inferred.
Main entry points: analyze.py Analysis command · agent.py Adaptive analysis · evidence.py Evidence synthesis · brief.py Agent brief
Components 27
History analysis
- History extraction
gitview/extractor.py - Phase chunking
gitview/chunker.py - Adaptive analysis
gitview/adaptive/agent.py - Significance analysis
gitview/significance_analyzer.py
Repository evidence
- Evidence synthesis
gitview/evidence.py - Graph synchronization
gitview/graph/updater.py - Persistent graph
gitview/graph/store.py - Motif detection
gitview/motifs/engine.py - Structural analysis
gitview/structural/graphify.py
Narratives
- Phase summaries
gitview/summarizer.py - Global storytelling
gitview/storyteller.py - Report output
gitview/writer.py - Storyline tracking
gitview/storyline/tracker.py
LLM and GitHub
- GitHub enrichment
gitview/github_enricher.py - LLM routing
gitview/backends/router.py - LLM providers
gitview/backends/base.py
CLI capabilities
- Analysis command
gitview/commands/analyze.py - Agent brief
gitview/commands/brief.py - Graph command
gitview/commands/graph.py - Observe command
gitview/structural/observe.py - Motifs command
gitview/commands/motifs.py - Storyline commands
gitview/commands/storyline/list.py - File history tools
gitview/commands/track_files.py - Branch comparison
gitview/commands/compare_branches.py
Other components
- Engineer
- GitHub API
- LLM services
Connections 38
- Engineer → Analysis command: runs analysis
- Analysis command → History extraction: extracts history
gitview/commands/analyze.py - Analysis command → Phase chunking: chunks history
gitview/commands/analyze.py - Analysis command → Phase summaries: summarizes phases
gitview/commands/analyze.py - Analysis command → Global storytelling: generates story
gitview/commands/analyze.py - Analysis command → Report output: writes report
gitview/commands/analyze.py - Analysis command → Adaptive analysis: supports adaptive mode
gitview/commands/analyze.py - Adaptive analysis → History extraction: extracts discoveries
gitview/adaptive/agent.py - Adaptive analysis → Phase chunking: rechunks phases
gitview/adaptive/agent.py - Adaptive analysis → Phase summaries: requests summaries
gitview/adaptive/agent.py - Adaptive analysis → Global storytelling: requests narrative
gitview/adaptive/agent.py - Phase summaries → LLM routing: requests completion
gitview/summarizer.py - Global storytelling → LLM routing: requests completion
gitview/storyteller.py - LLM routing → LLM providers: dispatches provider
gitview/backends/router.py - LLM providers → LLM services: calls model
- Analysis command → GitHub enrichment: enriches commits
gitview/commands/analyze.py - GitHub enrichment → GitHub API: queries GraphQL
- Analysis command → Evidence synthesis: builds evidence
gitview/commands/analyze.py - Evidence synthesis → Graph synchronization: synchronizes graph
gitview/evidence.py - Graph synchronization → Persistent graph: updates store
gitview/graph/updater.py - Evidence synthesis → Motif detection: runs motifs
gitview/evidence.py - Motif detection → Persistent graph: reads graph
gitview/motifs/engine.py - Engineer → Graph command: builds graph
- Graph command → Graph synchronization: updates graph
- Engineer → Observe command: records observation
- Observe command → Structural analysis: requests analysis
- Structural analysis → Persistent graph: stores observations
- Engineer → Motifs command: detects motifs
- Motifs command → Motif detection: runs detection
- Engineer → Agent brief: requests digest
- Agent brief → History extraction: loads history
gitview/commands/brief.py - Agent brief → Phase chunking: chunks history
gitview/commands/brief.py - Engineer → Storyline commands: inspects storylines
- Storyline commands → Storyline tracking: reads tracking
gitview/commands/storyline/list.py - Storyline tracking → Storyline commands: provides storyline data
- Analysis command → Storyline tracking: tracks narrative threads
- Engineer → File history tools: tracks files
- Engineer → Branch comparison: compares branches