Your local AI collaboration logbook.
Browse Claude Code and Codex history like Git commits.
Analyze prompts like product analytics.
Keep everything local and private.
Why · Features · Quick Start · CLI · Architecture · Privacy · Roadmap
The hosted static demo is designed for GitHub Pages:
- Website:
https://coder-shx.github.io/AILog/ - Mode: static demo data, no private local files are read
- Full local app: run
pnpm devto connect the Vue UI to the Fastify API and scan local Claude/Codex history
AILog is local-first observability for your AI coding workflow.
Most AI coding tools produce valuable collaboration history, but that history is hard to search, compare, measure, and reuse. AILog turns local Claude Code, Codex CLI, and exported AI conversations into a developer-grade timeline, dashboard, search engine, prompt intelligence system, and exportable knowledge base.
中文简介:
AILog 是一个本地优先的 AI 协作历史管理与分析工具。它可以帮助你浏览、搜索、分析 Claude Code 和 Codex 的历史对话,像看 Git 日志一样回顾 AI 协作过程,像看数据仪表盘一样理解自己的 Prompt 习惯和 AI 行为模式。
- What do I ask AI to do most often?
- Which prompts cost the most tokens?
- Which projects rely on AI the most?
- Which model works better for my workflow?
- Which task types fail or require retries?
- Which prompts are good enough to reuse?
- Which files does AI repeatedly inspect or modify?
- How did my AI coding habits change over time?
| Area | What AILog Provides |
|---|---|
| Timeline | Git-log style browsing for local AI collaboration history |
| Dashboard | Sessions, prompts, replies, tokens, tools, models, projects, activity heatmap |
| Prompt Intelligence | Word frequency, language ratio, intent classification, quality scoring |
| Search | Global search across prompts, replies, tool IO, files, tags, models and projects |
| Conversation Detail | Markdown rendering, tool panels, editable title/summary, message tags, favorites, copy, export |
| Compare | Token, tool, file, model, tag and prompt keyword deltas between sessions |
| Prompt Library | Persist reusable prompts and curate high-quality prompt templates |
| Privacy Center | Detect keys, tokens, emails, private keys, phone numbers and path leaks |
| Exports | Markdown, JSON, HTML, PDF, weekly/monthly/project/prompt/compare reports and full local backup |
| Integrations | CLI, local API, MCP server, Live Sessions, Tauri shell, VS Code sidebar and browser import helper |
The current repository includes a screenshot placeholder. Replace it with real product screenshots before launch.
pnpm install
pnpm devOpen:
- Web console:
http://127.0.0.1:1420 - Local API:
http://127.0.0.1:1421
If pnpm is not installed:
corepack enable
corepack prepare pnpm@9.15.4 --activateOn Windows machines where PowerShell cannot find the pnpm shim, use:
corepack pnpm install
corepack pnpm devpnpm --filter @ailog/cli ailog scan
pnpm --filter @ailog/cli ailog stats
pnpm --filter @ailog/cli ailog search "fix bug"
pnpm --filter @ailog/cli ailog export --id <conversation-id> --format markdown
pnpm --filter @ailog/cli ailog report weekly
pnpm --filter @ailog/cli ailog privacy
pnpm --filter @ailog/cli ailog sqlite
pnpm --filter @ailog/cli ailog backup
pnpm --filter @ailog/cli ailog capabilities
pnpm --filter @ailog/cli ailog doctor- Claude Code JSONL history under
~/.claude/ - Codex CLI history directories configured by the user
- Generic
.json,.jsonl,.md,.markdown,.txt,.log - OpenAI, Anthropic and Gemini shaped API exports through generic adapters
- SSE stream logs through the stream adapter
Unknown formats are routed through adapter interfaces so new parsers can be added without coupling the UI to provider-specific records.
apps/web Vue 3 + Vite local console
apps/server Fastify REST API
apps/desktop Tauri shell scaffold
packages/core settings, local index, scan orchestration, exports
packages/parser filesystem discovery and provider adapters
packages/analyzer prompt intelligence, stats, search, redaction
packages/shared shared TypeScript schema and utilities
packages/cli command line interface
packages/mcp local stdio MCP JSON-RPC server
extensions/* VS Code sidebar and browser import helperflowchart LR
A["Claude / Codex / exports"] --> B["Parser adapters"]
B --> C["Unified conversation schema"]
C --> D["Analyzer enrichment"]
D --> E[".ailog/index.json"]
E --> F["Fastify API"]
F --> G["Vue console"]
E --> H["CLI"]
E --> I["SQLite mirror"]
E --> J["MCP server"]
AILog stores generated state locally:
- Settings:
.ailog/settings.json - JSON index:
.ailog/index.json - Optional SQLite mirror:
.ailog/index.sqlite - Prompt library:
.ailog/prompt-library.json
GET /api/health
POST /api/scan
GET /api/conversations
GET /api/conversations/:id
GET /api/search
GET /api/stats/overview
GET /api/stats/prompts
GET /api/stats/ai-behavior
GET /api/stats/collaboration
GET /api/compare
GET /api/privacy/sensitive
GET /api/prompt-library
POST /api/export/report
POST /api/export/backup
POST /api/export/restore
POST /api/admin/clear-index
GET /api/live-sessions
POST /api/live-sessions/:id/run
GET /api/capabilitiesAILog is designed to be private by default.
- Runs locally.
- Does not upload conversation data.
- Does not call remote LLMs for analysis by default.
- Scans source history files read-only.
- Redacts API keys, GitHub tokens, JWTs, SSH private keys, emails, phone numbers and path secrets on export.
- Keeps generated state under
.ailog/.
v1: verified MVP rollback branch.v2-final: final feature branch with stage-two and stage-three capability surfaces.main: final delivery branch.
- Claude Code JSONL scanning
- Codex and generic import adapters
- Timeline, Dashboard, Search and Conversation Detail
- Prompt Intelligence and local quality scoring
- Markdown, JSON, HTML and PDF exports
- SQLite mirror index
- Sensitive information scanning
- Prompt Library persistence
- Conversation Compare
- Live Session command transcript capture
- MCP stdio JSON-RPC tools
- VS Code sidebar and browser import helper
- Optional localhost-only LLM summaries
- Tauri desktop shell scaffold
- Real product screenshots and demo video
- Packaged desktop installer
- Packaged VS Code extension
Contributions are welcome. The main rule is simple: keep AILog local-first unless the user explicitly opts into an external integration.
- Fork the repository.
- Create a feature branch.
- Add parser adapters instead of hard-coding provider formats in UI code.
- Keep redaction enabled for new export paths.
- Run checks before opening a pull request.
pnpm typecheck
pnpm buildpnpm install
pnpm devUseful package commands:
pnpm --filter @ailog/server dev
pnpm --filter @ailog/web dev
pnpm --filter @ailog/mcp start
pnpm --filter @ailog/cli ailog doctorMIT. See LICENSE.
If AILog helps you understand your AI coding workflow, consider starring the project.