jung
A Version Control Sidecar for AI-Assisted Development with Prompt, Plan, Cost & Diff Attribution
Git tracks WHAT changed. jung tracks WHY and WHO (human or AI agent). A local-first development sidecar that captures conversation logs, multi-step plans, tool executions, token expenditures, and human-vs-agent code attribution behind every code change — permanently linked to git diffs.
1. Installation
Install jung using your favorite package manager. All dependencies are minimal and zero-leakage.
pip install jung2. Quickstart & Implementation
Get up and running in less than 30 seconds. Copy and paste the code snippets below directly into your codebase.
# 1. Install the CLI sidecar
pip install jung
# 2. Initialize in your repository
cd my-project
jung init
# 3. Start the background watcher
jung watch
# 4. Check status and browse captured AI context
jung status
jung log
jung cost
jung blame src/main.py
# 5. Launch the local web dashboard
jung dashboard --open3. Command-Line Reference
jung provides 24+ commands for tracking AI turns, Git diffs, token consumption, and code attribution.
Initializes a .jung/ store with SQLite index and content-addressed blob store in the repository. Automatically installs a Git post-commit hook.
Starts the background daemon to discover IDE sessions (Antigravity, Cursor, Claude Code) and correlate file modifications to conversation turns.
Checks daemon health, active branch, last AI-attributed commit, uncommitted changes, and store statistics.
Lists captured sessions, conversation turns, actor attribution, models used, and estimated USD costs.
Displays full turn context: prompt/response content, multi-step agent plans, tool calls, and syntax-highlighted diffs.
Compares file changes produced in specific conversation turns or across entire AI sessions.
Like git blame, but shows whether each line was authored by a human or AI agent, plus turn ID and date.
Summarizes token expenditures and financial costs grouped by session, calendar day, or AI model (Gemini, Claude, GPT).
High-speed full-text search across turns, agent reasoning, and markdown artifacts using SQLite FTS5.
Spawns a local-first interactive web dashboard to browse conversation threads, diff lineages, and cost charts.
Creates an explicit checkpoint snapshot of AI changes and conversation context.
Branches development context for isolated AI experimentation without disturbing the main timeline.