Agentic Jujutsu — AI Agent Version Control
Lock-free, self-learning version control designed for multiple AI agents
working simultaneously without conflicts. Wraps the Jujutsu (jj) VCS with a
ReasoningBank trajectory store (learned suggestions), AgentDB operation
tracking, and quantum-resistant integrity fingerprints.
When to use
- Multiple AI agents are modifying the same repo simultaneously and you want to
avoid Git's lock contention and serialised commits.
- You need conflict-free concurrent worktree isolation across agents.
- You want operations tracked per agent, with pattern discovery and learned
suggestions for repeated workflows (deploys, merges, reviews).
- You want fast quantum-resistant (SHA3-512 / HQC-128) integrity checks on
commits or trajectories.
When not to use
- Standard single-actor Git operations with no multi-agent coordination — use
Git directly.
- GitHub PR workflows, issue tracking, or release management — use the
github-code-review / github-release-management skills.
- General agent memory and pattern storage without version control — use
agentdb-memory-patterns.
- CI/CD pipeline automation — use
github-workflow-automation.
Quick start
npx agentic-jujutsu
const { JjWrapper } = require('agentic-jujutsu');
const jj = new JjWrapper();
// Basic operations
await jj.status();
await jj.newCommit('Add feature');
await jj.log(10);
// Self-learning trajectory
const id = jj.startTrajectory('Implement authentication');
await jj.branchCreate('feature/auth');
await jj.newCommit('Add auth');
jj.addToTrajectory();
jj.finalizeTrajectory(0.9, 'Clean implementation');
// Get an AI suggestion for a similar task
const suggestion = JSON.parse(jj.getSuggestion('Add logout feature'));
console.log(`Confidence: ${suggestion.confidence}`);
The core loop is: startTrajectory(task) → do work (auto-tracked) →
addToTrajectory() → finalizeTrajectory(score, critique). Later,
getSuggestion(task) returns a learned recommendation. Use honest success
scores (never always 1.0) so the model can learn.
Learning memory (ReasoningBank trajectories, patterns, coordination state) is
stored in centralized RuVector PostgreSQL, retrieved via pgvector HNSW.
Detailed references
references/cookbook.md — worked examples per capability (self-learning,
pattern discovery, multi-agent coordination, quantum security, operation
tracking), advanced multi-agent use cases, best practices, and end-to-end
examples.
references/api.md — full method catalog (Core / ReasoningBank / AgentDB
/ Quantum), validation rules, performance characteristics, RuVector storage
details, troubleshooting, and version history.
1---2name: agentic-jujutsu3description: Lock-free version control for multiple AI agents committing concurrently to the same repo, built on Jujutsu (jj). Use when several agents need to commit/branch/rebase simultaneously without lock contention, for conflict-free concurrent worktree isolation, or when you want per-agent operation tracking with learned suggestions for repeated jj workflows.4---56# Agentic Jujutsu — AI Agent Version Control78Lock-free, self-learning version control designed for multiple AI agents9working simultaneously without conflicts. Wraps the Jujutsu (`jj`) VCS with a10ReasoningBank trajectory store (learned suggestions), AgentDB operation11tracking, and quantum-resistant integrity fingerprints.1213## When to use1415- Multiple AI agents are modifying the same repo simultaneously and you want to16 avoid Git's lock contention and serialised commits.17- You need conflict-free concurrent worktree isolation across agents.18- You want operations tracked per agent, with pattern discovery and learned19 suggestions for repeated workflows (deploys, merges, reviews).20- You want fast quantum-resistant (SHA3-512 / HQC-128) integrity checks on21 commits or trajectories.2223## When not to use2425- Standard single-actor Git operations with no multi-agent coordination — use26 Git directly.27- GitHub PR workflows, issue tracking, or release management — use the28 `github-code-review` / `github-release-management` skills.29- General agent memory and pattern storage without version control — use30 `agentdb-memory-patterns`.31- CI/CD pipeline automation — use `github-workflow-automation`.3233## Quick start3435```bash36npx agentic-jujutsu37```3839```javascript40const { JjWrapper } = require('agentic-jujutsu');4142const jj = new JjWrapper();4344// Basic operations45await jj.status();46await jj.newCommit('Add feature');47await jj.log(10);4849// Self-learning trajectory50const id = jj.startTrajectory('Implement authentication');51await jj.branchCreate('feature/auth');52await jj.newCommit('Add auth');53jj.addToTrajectory();54jj.finalizeTrajectory(0.9, 'Clean implementation');5556// Get an AI suggestion for a similar task57const suggestion = JSON.parse(jj.getSuggestion('Add logout feature'));58console.log(`Confidence: ${suggestion.confidence}`);59```6061The core loop is: `startTrajectory(task)` → do work (auto-tracked) →62`addToTrajectory()` → `finalizeTrajectory(score, critique)`. Later,63`getSuggestion(task)` returns a learned recommendation. Use honest success64scores (never always 1.0) so the model can learn.6566Learning memory (ReasoningBank trajectories, patterns, coordination state) is67stored in centralized RuVector PostgreSQL, retrieved via pgvector HNSW.6869## Detailed references7071- **`references/cookbook.md`** — worked examples per capability (self-learning,72 pattern discovery, multi-agent coordination, quantum security, operation73 tracking), advanced multi-agent use cases, best practices, and end-to-end74 examples.75- **`references/api.md`** — full method catalog (Core / ReasoningBank / AgentDB76 / Quantum), validation rules, performance characteristics, RuVector storage77 details, troubleshooting, and version history.