How ishaan812/devlog works
DevLog is a local-first developer work logger: it reads Git history across repositories and branches, stores indexed commit data, and produces branch-organized work logs with optional AI summaries. The CLI also supports onboarding, profiles, scheduled ingestion, commit-message generation, export, and an interactive console; the frontend is a separate documentation/marketing site. The ingest and worklog excerpts establish their main dependencies, while several other command links are documented in the README. Unsampled command internals are represented by their exact tree paths, not inferred implementation details.
Main entry points: ingest.go Git ingestion · worklog.go Worklog generation · db.go Profile database manager · repository.go SQL repository
Components 25
Ingestion and logs
- Git ingestion
internal/cli/ingest.go - Git history reader
internal/git/walker.go - Branch selection
internal/tui/branch_select.go - Codebase scanner
internal/indexer/scanner.go - Worklog generation
internal/cli/worklog.go
Profiles and storage
- Profile database manager
internal/db/db.go - SQL repository
internal/db/repository.go - Profile configuration
internal/config/config.go
AI summaries
- Code summarizer
internal/indexer/summarizer.go - Prompt templates
internal/prompts/prompts.go - LLM provider client
internal/llm/client.go - LLM services
internal/llm
CLI capabilities
- CLI entry
cmd/devlog/main.go - Command router
internal/cli/root.go - AI commit messages
internal/cli/commit.go - Onboarding setup
internal/cli/onboard.go - Scheduled ingestion
internal/cli/cron.go - Obsidian export
internal/cli/export.go - Console command
internal/cli/console.go - Interactive worklog console
internal/tui/console.go
Project website
- Website app
frontend/src/App.jsx - Documentation page
frontend/src/DocsPage.jsx - Frontend mount
frontend/src/main.jsx
Other components
- Developer
- Obsidian vault
Connections 30
- Developer → CLI entry: runs commands
- CLI entry → Command router: executes CLI
cmd/devlog/main.go - Command router → Git ingestion: dispatches ingest
- Command router → Worklog generation: dispatches worklog
- Developer → Git ingestion: requests ingestion
- Git ingestion → Git history reader: reads Git history
internal/cli/ingest.go - Git ingestion → Branch selection: selects branches
internal/cli/ingest.go - Git ingestion → Codebase scanner: scans codebase
internal/cli/ingest.go - Git ingestion → Profile database manager: accesses profile DB
internal/cli/ingest.go - Git ingestion → Code summarizer: generates summaries
internal/cli/ingest.go - Worklog generation → SQL repository: queries and caches
internal/cli/worklog.go - Worklog generation → LLM provider client: requests summaries
internal/cli/worklog.go - Worklog generation → Prompt templates: builds prompts
internal/cli/worklog.go - Profile database manager → Profile configuration: resolves DB paths
internal/db/db.go - Profile database manager → SQL repository: creates repository
internal/db/db.go - SQL repository → Profile database manager: uses SQL connection
- Code summarizer → Prompt templates: builds prompts
internal/indexer/summarizer.go - Code summarizer → LLM provider client: requests completion
internal/indexer/summarizer.go - LLM provider client → LLM services: selects provider
internal/llm/client.go - Developer → AI commit messages: generates commit
- Developer → Onboarding setup: configures DevLog
- Developer → Scheduled ingestion: schedules ingestion
- Scheduled ingestion → Git ingestion: schedules daily run
- Developer → Obsidian export: exports worklogs
- Obsidian export → Obsidian vault: writes log exports
- Developer → Console command: opens console
- Console command → Interactive worklog console: starts console UI
- Interactive worklog console → SQL repository: loads worklogs
internal/tui/console.go - Frontend mount → Website app: mounts app
frontend/src/main.jsx - Website app → Documentation page: renders docs
frontend/src/App.jsx