45 23
⚠️ EXPERIMENTAL — This repo is under active development. Reach out to glasner@aiki.sh if you have issues.
Aiki gives teams a practical way to let AI edit code without losing control. It provides a structured workflow for planning, executing, reviewing, and fixing AI-suggested work, while keeping the whole process visible, attributable, and safe to adapt.
Aiki is a layer on top of your repo and your AI tools that turns AI edits into trackable work:
- Opinionated defaults for task tracking, provenance, and review/fix loops
- Consistent handoffs across Claude Code, Codex, and other agents
- Safe concurrency via isolated sessions and session-aware workflows
Most teams start with fast AI code changes and immediately lose one of two things:
- Context — what changed, why, and who changed it
- Quality control — why some changes are reviewed, others are skipped
Aiki addresses both by giving AI work a workflow shape that stays human-readable: every change is attached to a task, reviewed in a loop, and recorded in history.
When your team adopts Aiki:
- Every AI task is started, described, and tracked as a task.
- You can inspect work in real time (
aiki task show), and review exact edits (aiki task diff). - Reviews and fixes become part of the same workflow instead of a separate ad hoc step.
- You retain control points (
aiki doctor, stop conditions, and review gates) without removing automation.
Aiki is built on a change-based workflow (Jujutsu/JJ). That makes AI edits naturally reviewable and reversible: each task creates a JJ change record with stable IDs, so provenance, reruns, and follow-up fixes are easier to track.
Aiki starts with sensible defaults for teams that want guardrails out of the box, and gives you extension points when you want more control:
- Customize behavior via flow hooks in
.aiki/hooks.yml. - Adapt templates and extend with plugins to encode team-specific policies.
- Build your own agent harness by composing primitives (task links, hooks, templates) instead of rewriting core behavior.
- Follow Getting Started to install and bootstrap.
- In one repo:
aiki initand thenaiki doctor. - Run a tiny change in your chat workflow and verify:
aiki task show <task-id>aiki task diff <task-id>
Use AI interactively in your editor, with task-level traceability and review readiness built in.
Use aiki plan, aiki build, and aiki review/aiki fix for repeatable
spec-to-implementation runs.
- Getting Started — install and first run
- SDLC: Plan, Build, Review, Fix — end-to-end flow model
- Customizing Defaults — hook/events and custom flow behavior
- Creating Plugins — packages for reusable harness logic
- Task Types and Links — dependency and review graph semantics
- Session Isolation Workflow — safe multi-agent execution