Aimi Engineering
You describe what you want built. The plugin turns it into a plan, splits it into pieces that don't depend on each other, and runs them at the same time — each in its own isolated workspace, each with a fresh context.
At the end you review commits, not steps.
Works with Claude Code and OpenCode.
Why this exists
A coding agent working straight through a feature keeps one context for the whole job. It fills up. By the third file the agent is carrying everything it read for the first two, and quality drops right when the work gets hardest.
This plugin changes the shape of that work:
- A feature becomes a plan — a set of stories, each small enough to finish in one context window.
- Stories that don't depend on each other run in parallel, each in its own git worktree.
- Each story gets a fresh agent that sees only that story. No leftovers from the last one.
- The whole run happens outside your working tree, so your checkout stays where you left it.
- Results merge back branch by branch, so a failure blocks only what depended on it.
You stay out of the loop until there is something to review.
Install
Claude Code
No dependencies. The plugin is self-contained.
claude /plugin marketplace add https://github.com/aimi-so/aimi-engineering-plugin
claude /plugin install aimi-engineering
Check it worked:
claude /plugin list
/aimi:init
OpenCode
git clone https://github.com/aimi-so/aimi-engineering-plugin
cd aimi-engineering-plugin
./install.sh --to opencode
The installer rewrites commands, skills, and agents for OpenCode's structure. See docs/opencode.md for what gets translated and the three features that behave differently there.
The shape of a run
flowchart LR
B["/aimi:brainstorm<br/><i>shape the idea</i>"]
P["/aimi:plan<br/><i>write the plan</i>"]
E["/aimi:execute<br/><i>do the work</i>"]
R["/aimi:review<br/><i>read the result</i>"]
T[("<b>.aimi/tasks/…</b><br/>one file,<br/>the whole run state")]
W["one worktree per story,<br/>running in waves"]
B -.optional.-> P --> E -.optional.-> R
P --> T
E --> W
style B stroke-dasharray: 4 4
style R stroke-dasharray: 4 4
Only two of those are required. /aimi:brainstorm earns its place when you are still deciding what to build; /aimi:review when you want a second opinion before merging.
First run
# 1. Work out what you're building (optional, but it makes the plan better)
/aimi:brainstorm Add user authentication with email and password
# 2. Turn it into a plan
/aimi:plan Add user authentication
# 3. Run it
/aimi:execute
# 4. Review what came out
/aimi:review
Step 2 writes .aimi/tasks/YYYY-MM-DD-user-authentication-tasks.json. That file is the whole state of the run — you can read it, edit it, and commit it.
Step 3 does the work. Watch or walk away.
How the parallel part works
A plan is a graph, not a list. Stories with no unmet dependencies can start immediately; grouping by depth gives you waves.
flowchart LR
subgraph w1["wave 1"]
direction TB
A1["US-001"]
A2["US-002"]
A3["US-003"]
end
subgraph w2["wave 2"]
direction TB
B1["US-004"]
B2["US-005"]
end
subgraph w3["wave 3"]
direction TB
C1["US-006"]
end
w1 -- merge --> w2 -- merge --> w3
Every story in a wave gets its own worktree and runs at the same time as its siblings. A wave merges into the feature branch before the next one starts, so a failure blocks only what depended on it.
Full detail in docs/architecture.md.
Where the work happens
By default, /aimi:execute does not touch your working tree. Everything happens in worktrees under .worktrees/, nested two levels deep:
flowchart LR
subgraph you["your checkout"]
CO["<b>feat/checkout</b><br/><i>untouched</i>"]
end
subgraph wt[".worktrees/"]
direction TB
CT["<b>feat/checkout</b><br/><i>the container</i>"]
S1["feat/checkout-US-001"]
S2["feat/checkout-US-002"]
S3["feat/checkout-US-003"]
S1 -- merge --> CT
S2 -- merge --> CT
S3 -- merge --> CT
end
CO -- "cut from" --> CT
CT -. "one worktree per story" .-> S1
Your checkout stays where you left it, so you can keep working while a plan runs.
Two consequences worth knowing before your first run:
Commit first. A worktree branches from committed history — uncommitted edits do not reach it.