Weave-It is a TypeScript CLI package. The npm package is @weave-tools/weave-it and the CLI binary is weave.
Weave is an SDLC tool for AI-assisted software teams. It is designed to work with agents and coding tools like Claude, Codex, OpenCode, and similar systems.
The goal is to give AI tools durable project context across the full software lifecycle:
- Product discovery and requirements
- Engineering planning and implementation
- Cross-repo code exploration
- QA notes, validation, and handoff
- Long-lived product and technical knowledge
Each repo or workspace can contain a committed wiki/ folder that acts like an LLM-friendly wiki for that context. Weave also maintains committed metadata in .weave/ and a local session so agents can understand which folders/repos should be considered together for the current task.
Weave organizes work into changes: durable folders under wiki/changes/<change-id>/ on a matching git branch change/<change-id>. Each change moves through artifact lanes tracked in status.yml. Agent skills own each lane and write the durable artifacts agents and humans read next.
The active change is branch-derived: checking out change/<change-id> is how Weave knows which change you are working on. Run weave change current to inspect it.
Lanes can be skipped when a change does not need them. Cross-cutting helpers (weave-new, weave-next, weave-capture, weave-clarify) support the flow at any point.
- questions and research (evidence lanes) — document how the system works today before anything is designed.
weave-questionswritesquestions.md: two to eight descriptive questions about the current code, docs, and dependencies. They never describe the planned change.weave-researchanswers them inresearch.md, ideally in a fresh session, using read-only research sub-agents. It reads onlyquestions.md, so the research stays objective.- Progressing these lanes never moves
stage; they feed later lanes as--source research. - With
questions_to_researchon (the default),weave-questionscallsweave advanceand runsweave-researchas a fresh sub-agent of your own agent.
- exploration — brainstorm product directions and settle on a product shape.
- Skill:
weave-explore. Opens with two to four directions, talks them through in plain product language, and writes the shape toexploration.mdonce you pick one.
- Skill:
- prd — write the requirements from the agreed product shape in
prd.md.- Skill:
weave-prd. Forfeatchanges it needs a passing stress test of the shape first, and asks only blocking questions.
- Skill:
- findings — capture bug repro, scope, and root-cause notes for fix-type changes in
findings.md.- Skill:
weave-fix(chat-driven fix entry; also scaffolds an initial slice)
- Skill:
- architecture — compare technical approaches and settle on a technical shape.
- Skill:
weave-architect. Opens with two to four approaches grounded in research and code, then writesarchitecture/index.mdand facets once you pick one.
- Skill:
- slices — scaffold
task-slices/<NN>-<slug>/folders with slice narrative, contracts, and per-slicetasks.md.- Skill:
weave-slices. Forfeatchanges it needs a passing stress test of the architecture first.
- Skill:
- execution — implement and verify selected tasks locally; update task evidence in
tasks.md.- Skill:
weave-execute(includes branch prep viaweave task prepare)
- Skill:
- knowledge (cross-cutting) — update current-state specs under
wiki/knowledge/**and record change-local provenance inknowledge-delta.md.- Skill:
weave-knowledge
- Skill:
Alongside the lanes, lasting engineering decisions are kept as ADRs in wiki/decisions/ (see weave adr). They are not a lane and add no gate. wiki/knowledge/ says how things work, wiki/changes/ holds the history of each change, and wiki/decisions/ says why the system is built this way.
Between a shape and the lane that builds on it sits a stress test:
weave-stress-test explorationorweave-stress-test architecturehas the read-onlyweave-challengersub-agent attack the written shape using only that artifact,research.md, and the knowledge wiki — never the brainstorm conversation. It then interviews you on the weak points, writes the answers into the shape, and records a verdict withweave change verdict.- Verdicts are
holds,holds-with-changes,needs-reshaping, orwaived(skipped on request, with a reason). A verdict goes outdated automatically when its shape changes. - For
featchanges,weave-prdandweave-slicesrequire a current passing or waived verdict. For other change types the stress test is optional.
Helper skills:
weave-new— create a change from a title or topic and recommend the first lane skill.weave-next— read-only advisory: what skill to run next for the active change, including stale lanes, stress test gates, and whether auto-advance will start it.weave-capture— persist discussion into session notes and/or live artifacts (see Skills In Depth).weave-clarify— focused amendment of one existing artifact when scope or decisions change midstream (see Skills In Depth).
Feature change (--type feat, the default):
flowchart LR
new["weave-new"] --> questions["questions\nweave-questions"]
questions --> research["research\nweave-research"]
research --> explore["exploration\nweave-explore"]
explore --> st1["weave-stress-test\nexploration"]
st1 -- "needs-reshaping" --> explore
st1 --> prd["prd\nweave-prd"]
prd --> arch["architecture\nweave-architect"]
arch --> st2["weave-stress-test\narchitecture"]
st2 -- "needs-reshaping" --> arch
st2 --> slices["slices\nweave-slices"]
slices --> exec["execution\nweave-execute"]
exec --> knowledge["knowledge\nweave-knowledge"]
For greenfield work with no existing code to understand, skip weave-questions and weave-research and start at weave-explore. Run weave-research and each weave-stress-test in a fresh session so they stay independent of the conversation that came before.
Fix change (--type fix):
flowchart LR
fix["weave-fix"] --> findings["findings"]
findings --> archOpt["architecture?\nweave-architect"]
findings --> slicesOpt["slices\nweave-slices"]
archOpt --> slicesOpt
slicesOpt --> exec["execution\nweave-execute"]
Non-feature changes (refactor, docs, test, ci, chore) start at stage: started with no scaffolded artifact. The fitting skill creates the first durable artifact when work is clear enough. weave-questions and weave-research work for any change type.
Legacy flat changes with a single change-root tasks.md still execute through weave-execute in flat mode. New changes should use weave-slices. weave-issues is superseded by weave-slices; weave-prepare is deprecated (branch prep is built into weave-execute).
Install the CLI globally from npm:
npm install -g @weave-tools/weave-itThen verify it works:
weave --helpOptional: install codebase-memory-mcp if you want coding agents to use indexed codebase context while working with Weave-managed repos:
npm install -g codebase-memory-mcpAfter installing it, configure or restart your coding agent and index the project. See the codebase-memory-mcp GitHub documentation for further setup. Weave works without this MCP; it just gives compatible agents a faster way to search architecture, symbols, and call relationships before reading source files.
- Node.js
>=22.12 - npm
If you use nvm:
nvm use 22Install dependencies from the project root:
npm installRun the CLI from source:
npm run dev -- <command>Examples:
npm run dev -- --help
npm run dev -- init --help
npm run dev -- init --yes
npm run dev -- workspace --jsonTypecheck:
npm run typecheckRun tests:
npm testBuild:
npm run buildRecommended verification before opening a PR:
npm run typecheck
npm test
npm run buildThe package exposes this binary in package.json:
"bin": {
"weave": "./dist/cli.js"
}To test the installed command shape locally:
npm run build
npm linkThen run:
weave --help
weave init --yes
weave workspaceAfter code changes, run npm run build again so the linked command uses the latest compiled output.
To remove the local global link:
npm unlink -g @weave-tools/weave-itInitializes Weave in repo mode or workspace mode and starts a local session.
| Mode | Use when | Where artifacts live | Sub-repos |
|---|---|---|---|
| repo | Single repo or folder | wiki/ and .weave/ inside that repo |
Other folders join the ephemeral session via weave add |
| workspace | Multi-repo product or platform boundary | One shared wiki/ and .weave/ at the workspace root |
Registered in .weave/workspace.yml; implementation happens inside sub-repos |
Repo mode is the default. Weave scaffolds wiki/knowledge/, wiki/changes/, and .weave/ in the current folder. Each repo keeps its own git history.
Workspace mode creates (or adopts into) a workspace whose git repo tracks only the workspace metadata and wiki — not the code inside sub-repos. When you register a sub-repo, Weave appends /<repo-path>/ to the workspace .gitignore so each sub-repo keeps its independent .git/ history and is not nested-committed into the workspace repo. Sub-repo registration and remotes live in .weave/workspace.yml.
Common workspace setup paths:
- From an existing app repo: Weave creates the workspace beside the repo, moves the repo (including
.git/) into the workspace, git-ignores it, and registers it inworkspace.yml. - From an empty folder: the current directory becomes the workspace root; add repos afterward with
weave add. - From outside a git repo: pass
--workspace-pathto create the workspace at a chosen location.
After workspace-mode init, open the workspace path in your editor. Use weave add to register, move, or clone additional repos into the workspace.
weave init [options]Options:
--id <id> folder id
--kind <kind> folder kind, defaults to app
--mode <mode> init mode: repo or workspace; defaults to repo with --yes
--workspace-name <name> workspace name for workspace mode
--workspace-path <path> workspace path for workspace mode outside a git repo
--yes accept defaults and skip prompts
-h, --help display help for command
Examples:
weave init --id weave-it --kind package --yes
weave init --mode repo --yes
weave init --mode workspace --workspace-name peoplebox-platform
weave init --mode workspace --workspace-name peoplebox-platform --workspace-path ../peoplebox-platformFrom source:
npm run dev -- init --id weave-it --kind package --yes
npm run dev -- init --mode workspace --workspace-name peoplebox-platformAdds a folder to the current Weave context. Behavior depends on whether the active directory is in repo mode or workspace mode (detected via .weave/workspace.yml).
Repo mode (default when no workspace or mode: repo):
- Adds the folder to the ephemeral session in
~/.cache/weave/current-session.ymlonly.
Workspace mode (mode: workspace in .weave/workspace.yml):
- Accepts a filesystem path or a git URL.
- Local path outside the workspace: moves the folder into the workspace root (including its existing
.git/) so you preserve git history, then registers it inworkspace.ymland appends it to the workspace.gitignore. - Local path inside the workspace: registers in place and gitignores the path.
- Git URL: runs
git cloneinto the workspace root (directory name from the URL basename), registers the repo, and gitignores the path. - Records
remote.origin.urlwhen the folder has a.git/. - Does not add sub-repos to
session.folders.
A teammate who clones the workspace sees registered repos in weave workspace, including availability: missing for gitignored paths not present locally. They can materialize a missing registered repo without rewriting workspace.yml or .gitignore:
# Clone by recorded remote
weave add [email protected]:org/billing.git
# Or adopt an existing local checkout (preserves its .git/)
weave add ../billingBoth forms recognize when the repo id is already registered but missing locally and place the checkout at the registered path.
weave add [options] <path-or-url>Arguments:
path-or-url folder path or git remote URL (workspace mode only for URLs)
Options:
--id <id> folder id (workspace: repos.<id> key; repo mode: session folder id)
--kind <kind> folder kind, defaults to app
-h, --help display help for command
Examples:
# Repo mode: add another repo to the local session
weave add ../backend --id backend --kind api
# Workspace mode: register a folder already inside the workspace
weave add ./billing --kind app
# Workspace mode: clone by URL
weave add [email protected]:org/billing.git
# Workspace mode: adopt a sibling repo into the workspace
weave add ../external-toolingFrom source:
npm run dev -- add ../backend --id backend --kind api
npm run dev -- add [email protected]:org/billing.gitShows what is around you. Behavior depends on whether the current working directory sits inside a Weave workspace.
weave workspace [options]Options:
--json print machine-readable JSON
-h, --help display help for command
weave workspace walks up from the current directory looking for .weave/workspace.yml:
- Workspace mode (a
workspace.ymlwithmode: workspaceis found at or abovecwd): prints the workspace name, its root path, and the repos registered inworkspace.yml.repos. An active Weave session is not required. - Repo mode (no workspace.yml above
cwd, or itsmodeis notworkspace, or the file is malformed): prints the current Weave session folders. Requires an active session.
Examples:
weave workspace
weave workspace --jsonJSON shape in workspace mode:
{
"session": { "status": "active", "updated_at": "..." } | null,
"workspace": {
"name": "peoplebox-platform",
"path": "/path/to/peoplebox-platform",
"mode": "workspace"
},
"repos": [
{ "id": "billing", "path": "billing", "kind": "app", "remote": "[email protected]:org/billing.git" }
],
"folders": []
}JSON shape in repo mode:
{
"session": { "status": "active", "updated_at": "..." },
"workspace": null,
"repos": [],
"folders": [
{
"id": "frontend",
"path": "/path/to/frontend",
"kind": "app",
"wiki": "/path/to/frontend/wiki",
"metadata": "/path/to/frontend/.weave"
}
]
}A teammate cloning the workspace fresh can run weave workspace immediately from inside the clone to see the registered repos, without ever running weave init.
From source:
npm run dev -- workspace
npm run dev -- workspace --jsonCreates, inspects, and switches durable change folders under wiki/changes/.
weave change new "<title>" [options]
weave change list [options]
weave change current [options]
weave change status [change] [options]
weave change progress <lane> [options]
weave change clear-stale <lane> [options]
weave change switch <change> [options]
weave change setup [--approve] [options]
weave change close [change] [options]
weave change knowledge <status> [options]
weave change verdict <lane> <verdict> [options]
weave change auto-advance [transition] [on|off] [options]
weave change runs [options]
weave change run start <lane> --skill <skill> --agent <agent> [options]
weave change run finish <run-id> --result <result> [options]
weave advance [options]weave change new creates a change id in the form {YYMMDD}-{XXXX}-{slug}, writes status.yml, creates or checks out the matching git branch, and scaffolds the first artifact when applicable:
change/{change-id}
--type feat(default): scaffoldsexploration.mdand starts atstage: exploration.- Non-feature types (
fix,refactor,docs,test,ci,chore): start atstage: startedwith no scaffolded artifact. - Every type writes the proposed auto-advance flags for its type into
status.yml(questions_to_researchon).--no-auto-advancestarts with all of them off. See Auto-advance.
The active change is branch-derived: checking out change/<change-id> is authoritative. Weave does not write active-change routing into committed files.
Change commands are cwd-dispatched. Weave walks up from the current directory to .weave/workspace.yml; in workspace mode the workspace root owns wiki/changes/, and in repo mode the repo root owns wiki/changes/. Running from a nested workspace repo or repo subdirectory operates on that containing Weave root.
Options for new:
--type <type> change type: feat, fix, refactor, docs, test, ci, or chore; defaults to feat
--slug <slug> change slug override
--repo <id> worktree checkouts: only create worktrees for this registered repo (repeatable)
--base <ref> ref the change branch starts from, or <repo>=<ref> for one repo (repeatable);
defaults to the remote default branch
--no-fetch worktree checkouts: do not fetch the base branch first
--skill <name> the skill the change starts with, e.g. weave-explore; the new session's first step
--context <text> a one-line gist added to that first step
--open <place> worktree checkouts: open this change in <place>[:<agent>] this time only
--no-open worktree checkouts: don't open this change, whatever your default says
--json print machine-readable JSON
.weave/workspace.yml decides how a change is checked out:
checkout: worktree(the default for new workspaces): each change gets its own folder, next to the main checkout, holding a git worktree of the workspace root and of every registered repo, all onchange/<change-id>. Your existing checkouts never switch branches, so several changes can be worked on at once.checkout: in-place(what workspaces created before worktrees get): the current checkout switches to the change branch.
~/work/acme/ your main checkouts, left alone
~/work/acme.changes/
261107-a1b2-login/ workspace root on change/261107-a1b2-login
wiki/changes/261107-a1b2-login/
api/ api on change/261107-a1b2-login
web/ web on change/261107-a1b2-login
weave change new fetches each repo's remote default branch and starts the change from it. To start somewhere else, the most specific setting wins: --base api=feature/x for one repo (root is the workspace root), then --base feature/x for every repo, then a repo's base in .weave/workspace.yml. A plain branch name means your local branch when you have one, and otherwise the branch of that name on origin, fetched first; origin/<branch> always means the freshly fetched remote branch. If a repo does not have the branch you named, nothing is created and the error says which repo, so you can give it its own --base. Every check runs first, so a problem in any repo stops it before anything is created, and if a step fails partway it removes the worktrees and branches that run created. The workspace root's .weave/workspace.yml must be committed on the base branch, or the new folder would not be a Weave workspace.
Weave then opens the folder where you chose (see Where changes open); without a choice it prints the folder for you to open in a new session. weave change list shows every change folder from any checkout, weave change switch <change> opens a change's folder the same way and creates it if it is missing. That includes a change that only exists as a change/<id> branch, such as a teammate's pushed change or one you closed earlier: it matches the id, token, or slug against change branches locally and on origin, fetches them, and gives every repo that has the branch a worktree tracking it (the others start fresh from their base), and weave task prepare adds worktrees for repos the change does not have yet without moving any checkout.
checkout: worktree
worktrees:
root: ../acme.changes # optional; where change folders go, relative to the main checkout
copy: [.env] # ignored files copied from the main checkout into the root worktree
setup: npm ci # command `weave change setup` runs in the root worktree
repos:
api:
path: api
kind: app
base: origin/develop # optional; where api's change branches start
copy: [.env, .env.local]
setup: npm ci && npm run db:migratecopy lists literal paths, copied when a worktree is created. weave change setup runs each worktree's setup once, at the first weave-execute, so planning never waits on installs. It only runs a command after a person approves that exact command with weave change setup --approve in a terminal, and the approval is remembered on that machine. Agents and auto-advance cannot approve, so a new or changed command always waits for you. Commands get WEAVE_CHANGE_ID, WEAVE_CHANGE_DIR, WEAVE_REPO_ID, WEAVE_SOURCE_DIR and WEAVE_SLOT. The slot is a small number unique among open changes on the machine, which a setup command can turn into ports, for example PORT=$((3000 + WEAVE_SLOT * 10)).
weave change close [change] removes the change's worktrees once they have no uncommitted work, run from outside the change folder. It keeps every branch and says which ones are not on origin, so closing never deletes commits. Slots, setup approvals and logs live in .git/weave/ of the main checkout and are never committed.
With worktree checkouts, weave change new and weave change switch can open the change's folder for you, so you don't have to open a tab, go there, and start your agent yourself. The first time it matters, Weave asks where changes should open:
- Where: a terminal (a herdr tab or tmux window when you are working inside one, or an iTerm or Terminal window on macOS), an app (VS Code, Cursor, the Claude desktop app, T3 Code), or don't open.
- What to start (terminals only): Claude, Codex, opencode, Cursor's agent, one of your own agents, or just a shell.
At a terminal you get a menu. In an agent's guided flow (weave-new, weave-next), the agent asks you in chat with the same choices. Last, you choose just this once (you're asked again next time) or make it my default. A default applies to every project on this machine and is used from then on without asking, by you, your agent, or a script. "Don't open, don't ask again" brings back the old behaviour. When nobody can be asked and there is no default, nothing opens and the output is unchanged.
- The first step. The new session starts with the change's next step, for example
use the weave-explore skill for change 261107-a1b2-login: …. The Claude desktop app gets it filled in but not sent; everywhere else the step is printed for you to paste.weave-newpasses it with--skill/--context; switching uses the stored step, orweave-nextonce the change has moved on. - Already there. From inside the change's folder nothing opens. A tmux window or herdr terminal already sitting in the folder is brought forward instead of opening another.
- One change only.
--no-openor--open <place>[:<agent>]onnewandswitch(or telling your agent "don't open this one") never changes the default.weave change open [change] [--in <place>] [--agent <agent>]reopens a change, or opens it somewhere else, without fetching or touching worktrees. - Changing it.
weave settings openshows the menu again;weave settings open --in cursor --projectsets this project only;--clearmakes Weave ask again. Settings live in~/.weave/settings.yml, never in the project. You can add your own agents there (agents: { pi: { command: "pi" } }) and point a listed tool at an unusual install path (locations: { cursor: /opt/cursor/bin/cursor }). - When it can't open. The change is always created or switched to anyway; Weave says what went wrong in one line and prints the folder and step. Over SSH, Mac windows and apps are skipped and only herdr and tmux open. A default whose tool was uninstalled is cleared and you are asked again; a tool that just isn't available right now (not inside tmux, app not responding) keeps the default. T3 Code can't be told to open a folder yet, so Weave brings it up and asks you to add the folder there.
- Setup is separate. Opening never runs or approves
weave change setup. - Independent of auto-advance. This default only decides where changes open. Auto-advance hand-offs keep their own
advance.*settings and never use it. WEAVE_NO_OPEN=1turns opening off;WEAVE_NO_PROMPT=1never shows the menu. Agents (Claude Code, Cursor, opencode, Codex) and--jsonnever get the menu either: they getopen.status: "needs_choice"with the choices.
Worktree checkouts need macOS or Linux for now. With in-place checkouts, weave change new refuses to start on top of another change branch unless you pass --base, and weave task prepare refuses a repo that sits on an unrelated branch, and switches back the repos it already moved if a later one fails.
Options for list, current, status, and switch:
--json print machine-readable JSON
Options for progress:
lane questions, research, exploration, prd, findings, architecture, or slices (issues accepted as alias for slices)
--source <source> repeatable source dependency: questions, research, exploration, prd, architecture, discussion, sessions, or codebase
--no-invalidate suppress all downstream stale propagation for this call
--invalidate <list> mark only this comma-separated subset of dependent lanes stale (e.g. slices,architecture)
--json print machine-readable JSON
Options for clear-stale:
lane questions, research, exploration, prd, findings, architecture, or slices
--reason <reason> one-sentence verification rationale recorded in stale_history
--json print machine-readable JSON
Options for verdict:
lane exploration or architecture
verdict holds, holds-with-changes, needs-reshaping, or waived
--reason <reason> why this verdict was given (required for waived)
--session <path> stress test session note that holds the questions and answers
--json print machine-readable JSON
Examples:
weave change new "Analytics of reviews"
weave change new "Fix review import" --type fix --slug review-import
weave change list
weave change current
weave change status
weave change progress prd --source exploration --source sessions --json
weave change verdict exploration holds-with-changes --reason "Leave handling added" --json
weave change status 260522-f3q9-review-analytics
weave change switch f3q9From source:
npm run dev -- change new "Analytics of reviews"weave change list is a clean index and marks the active change with *. weave change current shows the active change from the checked-out branch. weave change status reports metadata and branch alignment. weave change switch is the explicit way to move to another existing change; with worktree checkouts it prints the change's folder instead of switching branches.
weave change progress <lane> records lifecycle progress for the active change. stage is orientation for the furthest progressed lane; it does not prove skipped upstream artifacts were created. artifacts records the source graph used for stale invalidation:
stage: architecture
artifacts:
prd:
sources:
- exploration
- sessions
updated_at: "2026-05-31T04:00:00.000Z"
architecture:
sources:
- prd
- codebase
updated_at: "2026-05-31T04:05:00.000Z"Pass each source with repeatable --source flags. Source lists are replaced on each progress call for that lane.
stale records source-aware dependents that should be refreshed after a source lane changes:
stage: slices
stale:
architecture:
invalidated_by: prd
invalidated_at: "2026-05-31T04:06:16.000Z"Weave-managed artifact-writing skills call progress after successful live artifact writes. Existing changes without artifacts or stale continue to work and are treated as having no recorded dependencies or stale lanes.
The questions and research evidence lanes take part in artifacts and staleness like any other lane, but progressing them never changes stage. Re-running weave-questions marks research stale, and anything that cites --source research goes stale with it.
Default propagation marks every transitive downstream lane stale. Skills following the Lifecycle Staleness Verification Protocol (embedded in every progress-calling skill: weave-questions, weave-research, weave-explore, weave-stress-test, weave-prd, weave-architect, weave-clarify, weave-slices, and weave-capture) first read the dependent artifacts and decide per-lane whether the upstream change actually invalidates them:
# default: every downstream lane goes stale
weave change progress prd --source exploration --json
# narrow clarification, no dependent invalidated
weave change progress prd --source exploration --no-invalidate --json
# only `slices` is invalidated, not `architecture`
weave change progress prd --source exploration --invalidate=slices --jsonIf a previously-stale lane is now in content sync (verified by reading both artifacts), clear the flag with an audit-trail entry:
weave change clear-stale architecture --reason "Wording typo in prd; architecture references unchanged" --jsonEach clear appends a record to status.yml.stale_history with lane, invalidated_by, invalidated_at, cleared_at, and reason. Never hand-edit status.yml to change stale state; use the CLI.
weave change verdict <lane> <verdict> records a stress test result under status.yml.stress_tests, pinned to the lane's artifacts.<lane>.updated_at at the time:
stress_tests:
exploration:
verdict: holds-with-changes
judged_at: "2026-05-31T05:00:00.000Z"
artifact_updated_at: "2026-05-31T04:58:00.000Z"
session: wiki/changes/<change-id>/sessions/20260531-103000-ab12-exploration-stress-test.md
reason: Leave handling addedWhen the lane is progressed again, weave change status reports the verdict as outdated (Stress test (exploration): holds (outdated: shape changed since)), and weave-next, weave-prd, and weave-slices ask for a fresh stress test. waived requires --reason; skills record a waiver only when the user explicitly asks to skip the stress test.
weave advance starts the next lifecycle phase of the active change in a fresh session, so a phase that needs no decisions from you does not wait for you to open one. It works with whatever agent you use: by default Weave starts no agent itself. It records the run and hands the phase back to the agent that called it, which runs it as a fresh sub-agent with its own tools (Claude Code's Agent tool, Codex sub-agents, opencode's subagent tool). The sub-agent's progress shows in your session, and anything it asks permission for comes to you.
Each transition between lanes has a flag under status.yml.auto_advance:
auto_advance:
questions_to_research: true
findings_to_questions: falseMissing flags read as off. weave change auto-advance lists every transition; weave change auto-advance <transition> on|off sets one. Transitions into a step where you make decisions are listed as never and cannot be turned on: into weave-explore or weave-architect, and architecture_to_slices (for now). exploration_to_prd can be on, and is on by default for feat changes: the PRD only writes up the shape you reviewed, so weave-stress-test hands it off after a passing verdict. It fires only when that verdict is current and passing (for every change type) and the shape's ## PRD Readiness says Ready. The stress test clears whatever would block the PRD before it finishes, and if the PRD sub-agent still meets a question it would have to guess, it stops and returns it; the stress test asks you, writes the answer into the shape, and hands the PRD off again.
weave advance starts a phase only when every condition holds:
flag: the transition's flag is on.progressed: the upstream lane was recorded withweave change progress.fresh: the upstream lane is not stale.artifact: the upstream artifact (for examplequestions.md) has substantive content.verdict: any stress test verdict the next skill gates on is current and passing.not_started: no run of the next lane has started since that progress, none is still running, and the next lane was not already progressed after it.
weave advance --dry-run # print each condition and the decision
weave advance --json # record the run and return the handoff brief
weave advance --launch background # Weave starts a headless session itself; same as --detach
weave advance --transition questions_to_research --once
weave change run log --follow # readable progress of a background runHow the phase starts (--launch, or advance.launch in .weave/workspace.yml):
handoff(default): returnssteps[0].handoffwith the run id and a self-containedbrief. The calling skill starts one fresh sub-agent (never a fork of its conversation, so research stays independent of what was discussed) with exactly that brief, waits for it, then runsweave advance --finish-run <run-id> --launch handoff --once. If the agent cannot start sub-agents, the skill gives you the brief to paste into a new session.here,terminal,background: Weave starts the session itself, for scripts, CI, or people who prefer it. These need an agent you chose:--agent claude,advance.agent: claude, oradvance.commandfor any other agent CLI, such asadvance.command: pi "{prompt}"(the prompt replaces{prompt}).hereruns it interactively in your terminal;terminalopens it in a new visible terminal (a herdr tab inside herdr, a tmux window inside tmux, otherwise an iTerm2 or Terminal window on macOS);backgroundruns it headless, streaming its events soweave change run log <run-id> --followshows lines likeRead src/lib/worktrees.tsorAgent weave-locator: find close logic, and how many tool calls were blocked.
A run finishes when its session records its lane with weave change progress, even while that session stays open. When a session ends without recording it, the run is incomplete.
Every phase writes its own change files, runs weave, and may look things up on the web. weave agent install and weave agent update add rules for exactly that to Claude Code's project settings (.claude/settings.json), keeping your other settings: Edit(/wiki/changes/**), WebSearch, WebFetch, Bash(weave *), and read-only git log, git show, git diff, git status, and git ls-files. Sub-agents inherit them, so a research sub-agent checks library docs and saves research.md without asking. Anything else, such as a quick experiment's commands, follows your session's permission mode. For other agents, allow the same in their own settings: for Codex, a workspace-write sandbox covers the change files and weave needs allowing; for opencode, set permission for edits and weave in its config.
Every phase run is logged under status.yml.runs with lane, skill, agent, session_id, trigger, transition, upstream_updated_at, started_at, finished_at, and result. Runs also record launch (handoff, here, terminal, or background) and, for a new terminal, where. A run succeeded as soon as its lane is progressed, is incomplete when its session ended without progress, and failed when a background session exited with an error. Because a run pins the upstream progress it answered, the same update never starts a phase twice; --retry-failed lets a phase whose run failed or ended incomplete start again. Skills started by hand can log runs with weave change run start and weave change run finish. Session output goes to ~/.weave/runs/<change-id>/<run-id>.log.
When Weave starts a session itself, it uses an agent adapter: claude runs claude "use the <skill> skill for change <id>" with a Weave-chosen --session-id, adding -p and streaming output for background runs; advance.command runs your template. --permission-mode <mode> overrides the session's permission mode.
Weave commits a change's work on the change's own branch, so planning is never lost and the history reads stage by stage and slice by slice. Nobody has to remember to commit, and it works the same in every agent because the commits come from Weave's own commands:
- Planning commits. Every command that records the change's status makes one:
weave change progress(with--summary "<one line>"for the subject),verdict,clear-stale,knowledge, andweave review recordwhen a review run ends or waits on a person. A planning commit holds the change's folder, the decisions it drafted (and the ones they supersede), its knowledge pages, and anything you had staged. It runs none of the project's git hooks. Leftovers that belong to no recorded step, such as session notes, go first into their own "Planning notes" commit. - Build commits.
weave slice rollupcommits a slice when it is ready for review: everything in the slice's repos except other changes' folders and.weave/coding-guidelines*.md, with the project's hooks. The commit message names the slice's purpose and finished tasks. A rejected build commit is retried at the next rollup until another slice starts; that slice's build commit then carries the leftovers. - Fix commits. Each review fix round, and the final review's fix batch, becomes its own commit, and review end boundaries point at these commits. Packages report
boundary: commitorsnapshotper repo; snapshots remain the fallback.
Commits are best-effort: a failure is reported with its reason and never blocks the step. Weave never pushes, amends, or commits on another branch, uses your own git identity, and adds Weave-* trailers (for example Weave-Change, Weave-Slice). Sessions Weave starts itself (WEAVE_UNATTENDED=1) make planning commits but never build or fix commits.
Switches: commits.enabled: false in .weave/workspace.yml turns commits off for everyone (in the main checkout or the change folder); weave settings commits off [--project] turns them off just for you; weave change skip-commits --reason "<why>" skips one change. commits.subject_template (a string, or a map per planning, catch-up, build, fix, final-fix, with {subject}, {stage}, {slice}, {change}) shapes subjects to your conventions, and commits.code_timeout_seconds (default 300) bounds hooks on code commits. Because every change now has commits from its first stage, a change abandoned during planning reads "closed, not landed", and a planning save after merging shows "landed with newer commits".
If a target is not a git repo, Weave still writes the change artifacts and reports branch creation as skipped. switch blocks when affected git repos have uncommitted changes; new does not block so already-started local work can be captured as a new change.
Records long-lived engineering decisions (ADRs) that outlive any one change.
weave adr new "<title>" [--applies-to <path>]... [--supersedes <decision>]... [--owner <owner>] [--slug <slug>] [--json]
weave adr list [--status <status>] [--path <file>] [--json]
weave adr status <decision> <proposed|accepted|superseded> [--superseded-by <decision>] [--json]
weave adr check [--base <ref>] [--json]Write one only when a future developer could reasonably undo the decision without knowing why it was made: it is costly to reverse and it affects more than one change. Most changes record none.
- Location:
wiki/decisions/, with a generatedindex.md. If a repo already hasdocs/decisions/,docs/adr/, oradr/, Weave uses that folder instead. ADRs written outside Weave are listed but left untouched. In workspace mode the workspace root owns decisions. - Ids: dated, such as
261101-a3f9-separate-approvals-table, so parallel branches cannot collide. Commands accept any unique part of an id. - File format: frontmatter (
id,title,status,date,owner,change,applies_to,supersedes,superseded_by) and short sections: Context, Decision, Alternatives Rejected, Consequences, Reconsider When. applies_to: files, folders, or globs relative to the Weave root (in workspace mode, include the repo folder).*stays within one path segment;**crosses them.- Status:
proposed, thenaccepted, thensuperseded. An accepted decision is never rewritten. Accepting a decision that names--supersedesretires the old one, which stays in place as history.
weave adr check lists the live decisions that apply to files changed on this branch, including uncommitted and untracked files, across registered repos in workspace mode. It compares against the default branch or --base. It reports and never blocks, and it works whether or not an agent looked at the decisions.
How the skills use them:
weave-researchreports the decisions that apply to what it researched.weave-architectworks inside accepted decisions, says when an option conflicts with one, and drafts new ones asproposed.weave-challengerchecks shapes against accepted decisions and challenges proposed ones.weave-stress-test architectureaccepts proposed decisions on a passing verdict. Awaivedtest accepts nothing; those wait for the user to confirm.weave-fixandweave-executecheck decisions before changing code, stop on a conflict, and name what they consulted.weave-executealso flags new decisions worth recording.weave-nextmentions proposed decisions waiting for confirmation.
weave init and the first weave adr new add a marked section to AGENTS.md so agents outside a Weave skill check decisions too. They only ever append, and they create the file if it does not exist.
Shows the installed @weave-tools/weave-it package version, the bundled skill versions, and any notices for the current repo.
weave status [options]Options:
--json print machine-readable JSON
-h, --help display help for command
weave status is the explicit, detailed view of:
- the installed
@weave-tools/weave-itnpm package version, - the latest cached
@weave-tools/weave-itversion from the npm registry (refreshed at most once every 24h), - every installed skill, the package version it was installed from, the current bundled package version, and a per-skill state (
current,outdated,modified,missing), - the same
noticesarray that Tier 1 commands return in--jsonmode.
Use it whenever a notice points you here:
weave status
weave status --jsonInspects the current Weave project and optionally repairs missing safe scaffold files.
weave doctor [options]Options:
--fix create missing safe scaffold files without overwriting existing files
--json print machine-readable JSON
-h, --help display help for command
weave doctor is read-only by default. It reports metadata health, missing safe scaffold files, installed skill drift, active change context, branch match status when available, and a summary status of ok, warning, or error.
weave doctor --fix is intentionally narrow. It only creates missing safe scaffold directories and files through write-if-missing behavior, such as .weave/architecture-considerations.md and standard wiki/knowledge/** scaffold files. It never overwrites existing files, updates installed skills, changes branches, edits status.yml, mutates live artifacts, or runs migrations.
Examples:
weave doctor
weave doctor --json
weave doctor --fix
weave doctor --fix --jsonExisting Weave projects can run weave doctor --fix after upgrading the package to receive newly-added safe scaffold files without restarting sessions or running weave init again.
The Tier 1 commands surface a stable notices array in their --json output and, in interactive TTY mode, print a one-line stderr footer that tells the user there are notices and to run weave status:
weave workspace
weave change current
weave change status
weave change new
weave status
weave doctor
Notice kinds:
package_outdated a newer @weave-tools/weave-it npm version is cached locally
skills_modified one or more installed SKILL.md files differ from the manifest hash
skills_outdated one or more installed skills were installed from an older @weave-tools/weave-it version than the current bundled skills
Notices are computed in parallel with the command's normal work; missing network, an unwritable ~/.weave/cache, or a stripped-down npm registry response all degrade gracefully to an empty array.
Suppress notices everywhere with either:
NO_UPDATE_NOTIFIER=1 weave change current
WEAVE_NO_NOTICES=1 weave change currentNon-Tier-1 commands (agent install, agent update, change list, change progress, etc.) never include a notices field.
Every bundled SKILL.md follows the Agent Skills specification: only name, description, license, compatibility, and metadata at the top level, with Weave's own fields under metadata. metadata.last_changed_in records the @weave-tools/weave-it package version of the last substantive change to that skill:
---
name: weave-prd
description: Write or revise prd.md for the active Weave change ... Use when ... Not for ...
license: MIT
compatibility: Requires the weave CLI (npm package @weave-tools/weave-it) on PATH ...
metadata:
author: weave-tools
last_changed_in: "0.1.0"
---Descriptions say what the skill does, when to use it, and which skill to use instead. A test enforces the spec on every bundled skill, including the 1024-character description limit and the 500-line body guideline. Older installed copies with a top-level last_changed_in are still read.
When a skill is installed, the version is stamped into .weave/agents.yml as installed_from. The skills_outdated notice fires when the bundled version is newer than the recorded installed_from. Run weave agent update <agent> to bring untouched skills up to date, or weave agent reset <agent> <skill> to overwrite a locally-modified copy.
Maintainers bump last_changed_in for every skill that changed since the previous git tag with:
npm run release:bump-skillsThe script reads package.json's version, diffs each templates/skills/<name>/SKILL.md against the most recent reachable git tag, and only updates skills with real changes. It writes metadata.last_changed_in (moving a legacy top-level field under metadata) and never commits or tags on its own.
Three ideas shape the design skills:
- Research before design, kept objective.
weave-questionsseparates "what are we trying to do" from "how does the system work now": its questions describe only the present.weave-researchreads onlyquestions.md, never the change's intent artifacts, and writes cited facts toresearch.md. Later lanes build on those facts instead of re-reading the code with a particular answer in mind. - Options before interviews.
weave-explore(product) andweave-architect(engineering) open with two to four genuinely different directions, talk them through, and ask detailed questions only about the one you pick. They write a shape — the chosen direction, every option considered and why, decisions, assumptions, and open questions — only after you confirm.weave-explorestays in product language and translates research findings;weave-architectis technical and cites code. - Independent critique.
weave-stress-testattacks only what is written, through a sub-agent that never saw the conversation. Anything agreed only in chat shows up as a gap and gets written into the shape. - Durable reasons. Lasting engineering decisions are recorded as ADRs (see
weave adr), so a later agent working on a small fix can find out why something is deliberate before undoing it.
No Weave skill requires Plan Mode. Design skills write only their own lane's artifact, and only after you confirm; use weave-capture session <lane> to checkpoint a discussion without deciding.
Installs and manages Weave Agent Skills for supported coding agents.
weave agent <install|update|diff|reset> <agent> [skill]Agents:
codex install Agent Skills to .agents/skills
cursor install Agent Skills to .agents/skills
claude install Agent Skills to .claude/skills
opencode install Agent Skills to .agents/skills and slash commands to .opencode/commands
all install every supported integration
For Claude Code, install also adds Weave's read-only sub-agents to .claude/agents/: weave-locator, weave-analyzer, weave-pattern-finder, and weave-web-researcher (used by weave-questions and weave-research), and weave-challenger (used by weave-stress-test). They are limited to read-only tools. Other agents run the same roles inside the main skill. Sub-agents are tracked in .weave/agents.yml with the same update, diff, and reset protection as skills.
Examples:
weave agent install opencode
weave agent update opencode
weave agent diff opencode weave-explore
weave agent reset opencode weave-exploreinstall and update protect user edits. They update files only when the current file still matches the last Weave-installed hash in .weave/agents.yml. If a user edits an installed skill or command wrapper, Weave skips it. reset is the explicit overwrite path.
Weave ships Agent Skills for the full change lifecycle. Each skill starts by running weave workspace --json and uses wiki/knowledge/** plus wiki/changes/** as durable context.
weave-new start a new change from a title or topic
weave-questions write current-state research questions (questions.md)
weave-research answer them objectively with read-only sub-agents (research.md)
weave-explore brainstorm product directions, then write the product shape
weave-stress-test challenge a written shape and record a verdict
weave-prd write prd.md from the stress-tested product shape
weave-architect compare technical approaches, then write the technical shape
weave-capture capture discussion into session notes and/or live artifacts
weave-clarify amend one existing artifact when scope or decisions change
weave-fix chat-driven fix entry; writes findings.md + initial slice
weave-slices scaffold task-slices/ from upstream artifacts
weave-execute implement and verify selected tasks locally
weave-next read-only: recommend the next skill for the active change
weave-knowledge update current-state knowledge specs for an active change
Legacy / deprecated:
weave-issues superseded by weave-slices (flat tasks.md only)
weave-prepare deprecated; branch prep is built into weave-execute
weave-capture is the primary way to persist design discussion without storing a raw transcript. It runs in two modes:
- Artifact capture (bare
weave-capture): writes a structured session note underwiki/changes/<id>/sessions/, promotes pending session-only context for the selected lane, and merges durable content into the live artifact (exploration.md,prd.md, legacyarchitecture.md, or folder-modearchitecture/index.mdplus facets). Callsweave change progress <lane>after a successful write. - Session-only capture (
weave-capture session [exploration|prd|architecture]): writes a lane-aware session note only; never updates live artifacts or calls lifecycle progress.
Before any write, Defensive Lane Verification compares the resolved lane against the dominant subject of the conversation. When they clearly disagree, capture stops and asks you to confirm the lane. The skill never silently overrides an explicit selection.
weave-capture is the only v1 flow that promotes pending session-only context into live artifacts. Downstream skills treat live artifacts as canonical; they do not scan pending session notes before running.
weave-clarify refines one existing artifact when scope, requirements, assumptions, or decisions change midstream. It is not a generation skill: it does not create a new change, write a PRD from scratch, or generate architecture from scratch.
- Targets:
exploration,prd, orarchitecture(legacy file mode or folder-mode facets). - Updates only the selected lane and reports follow-up lanes that need separate clarification.
- For architecture, supports structural operations: create/split/merge/rename/delete facets and migrate legacy
architecture.mdto folder mode when explicitly requested. - In workspace mode, may inspect registered sub-repos only when the selected clarification depends on repo-local truth.
- Applies the Lifecycle Staleness Verification Protocol before calling
weave change progress <target>.
Use weave-explore / weave-architect for design thinking (they write their own shapes once you decide), weave-capture for checkpoints, and weave-clarify for focused amendments. When weave-clarify changes the chosen direction or approach, it moves the old one under Options Considered instead of deleting it.
weave-new: creates a change viaweave change newand recommends the first lane skill (weave-questionsfor features that touch existing behaviour,weave-explorefor greenfield work;weave-fix/weave-architect/weave-slices/weave-prdfor non-feature types).weave-questions: writes two to eight descriptive questions about today's system toquestions.md, plus verbatim context pointers from the request; never describes the planned change.weave-research: answersquestions.mdusingweave-locator,weave-analyzer,weave-pattern-finder, andweave-web-researcher; writes a citedresearch.mdwith flows, contracts, tests, and code references; makes one follow-up pass on open questions.weave-explore: product brainstorm — options, back-and-forth, then targeted questions for the chosen direction; writes the product shape toexploration.mdafter confirmation; never uses technical jargon.weave-stress-test: runsweave-challengeragainst a shape, interviews you on the weak points (blocking first, about ten questions at most), updates the shape, writes asessions/*-<lane>-stress-test.mdnote, and records the verdict.weave-prd: maps the product shape onto the PRD template, asks only blocking questions, and sends you back toweave-clarify explorationif a decision needs to change.weave-architect: technical options, discussion, then decisions for the chosen approach; writesarchitecture/index.mdand facets from the templates after confirmation.weave-fix: chat-driven--type fixentry; writesfindings.md, scaffoldstask-slices/01-<slug>/, progresses thefindingslane.weave-slices: scaffoldstask-slices/<NN>-<slug>/from upstream artifacts; owns thesliceslane; requires explicit verification tasks per slice.weave-execute: agent-first local task execution in slice mode (/weave-execute 01 T1) or flat legacy mode (/weave-execute T3); includes branch prep, dependency expansion, verification, and narrowtasks.mdevidence updates. Does not commit, push, or open PRs.weave-next: read-only advisory summary of artifact state, stale lanes, stress test verdicts, and the recommended next skill.weave-knowledge: updateswiki/knowledge/**and writesknowledge-delta.mdfor the active change.
Every bundled skill follows the shared # Silent Weave Command Output contract: discovery command output is internal by default; only blockers, failures, relevant notices, or user-required actions are summarized.
Install skills for one agent:
weave agent install claude
weave agent install cursor
weave agent install codex
weave agent install opencode
weave agent install allNew skills such as weave-questions, weave-research, and weave-stress-test, and new sub-agents, require weave agent install; weave agent update refreshes existing manifest entries only.
Install targets:
claude .claude/skills/<skill>/SKILL.md
claude .claude/agents/<subagent>.md
cursor .agents/skills/<skill>/SKILL.md
codex .agents/skills/<skill>/SKILL.md
opencode .agents/skills/<skill>/SKILL.md
opencode .opencode/commands/<skill>.md
Claude Code, Cursor, and opencode use slash commands; Codex uses $-prefixed skill names.
/weave-new "Analytics of reviews"
/weave-fix "Review import fails on large CSV"
/weave-capture
/weave-capture session prd
/weave-explore "Analytics of reviews"
/weave-prd
/weave-architect
/weave-clarify prd
/weave-slices
/weave-execute 01 T1
/weave-next
/weave-knowledge
Or invoke naturally:
Use the weave-explore skill for Analytics of reviews.
Use the weave-capture skill to capture this session without updating artifacts.
Use the weave-slices skill to scaffold task slices from the active PRD.
Use the weave-execute skill to implement slice 01 task T1.
Use the weave-clarify skill to revise the active PRD after scope changes.
Knowledge freshness is tracked through the CLI:
weave change knowledge pending --reason "Knowledge impact not resolved yet"
weave change knowledge updated --domain performance-reviews --file wiki/knowledge/domains/performance-reviews/domain-wide/approvals.md --delta wiki/changes/<change-id>/knowledge-delta.md --reason "Updated current approval behavior"
weave change knowledge none --delta wiki/changes/<change-id>/knowledge-delta.md --reason "No durable behavior impact"
weave change knowledge stale --invalidated-by prd --reason "PRD changed after knowledge was updated"The standard knowledge structure is scaffolded progressively:
wiki/knowledge/
index.md
README.md
domains/
README.md
<domain>/
index.md
features/<feature>/behavior.md
domain-wide/
shared/
README.md
<shared-behavior>/behavior.md
.weave/
architecture-considerations.md
V1 provides scaffold/docs guidance and skill contract tests for this structure. It does not add a CLI validation command for knowledge folders.
Lists and prints bundled Weave skills.
weave skills list
weave skill show weave-new
weave skill show weave-capture
weave skill show weave-explore
weave skill show weave-prd
weave skill show weave-architect
weave skill show weave-clarify
weave skill show weave-fix
weave skill show weave-slices
weave skill show weave-execute
weave skill show weave-next
weave skill show weave-knowledgesrc/
cli.ts
commands/
add.ts
agent.ts
change.ts
doctor.ts
init.ts
skills.ts
slice.ts
status.ts
task.ts
workspace.ts
lib/
add-folder.ts
agent-skills.ts
architecture-artifact.ts
changes.ts
doctor.ts
files.ts
folders.ts
git.ts
ids.ts
init-workspace.ts
notices.ts
session-state.ts
show-workspace.ts
skill-template-checks.ts
sliceRollup.ts
sync.ts
task-prepare.ts
tasks.ts
weave-scaffold.ts
workspace-mode.ts
workspace-repos.ts
templates/
agents/
opencode/
commands/
skills/
tests/
agent-skills.test.ts
cli-doctor.test.ts
cli-skills.test.ts
changes.test.ts
init.test.ts
slice-rollup.test.ts
task-prepare.test.ts
.weave/
agents.yml
architecture-considerations.md
sync.yml
workspace.yml
wiki/
knowledge/
changes/
decisions/
- Keep changes small and focused.
- Add or update tests for behavior changes.
- Do not commit
node_modules/,dist/, coverage output, or local machine state. - Source files use ESM imports with
.jsspecifiers because TypeScript is configured withNodeNextmodule resolution. - Use
apply_patchor normal editor changes for source edits, then run typecheck, tests, and build.
Releases are cut manually by a maintainer with npm publish access and push access to the repo. Each release is a single npm version bump that also stamps skill versions, followed by a push and publish.
- Ensure the working tree is clean and all prep is committed.
- Choose the bump level and create the version commit and tag in one step. The committed
.npmrc(tag-version-prefix="") produces bare-number tags such as1.0.0, notv1.0.0:
npm version <patch|minor|major> --message "release: %s"This bumps version in package.json, runs the version lifecycle hook (which stamps last_changed_in on every skill changed since the previous tag and stages templates/skills), creates one commit release: <version>, and creates the matching bare git tag.
- Push the commit and the tag:
git push --follow-tags- Publish to npm. The
prepublishOnlyhook runs typecheck, tests, and build before anything is uploaded, so a failing gate aborts the publish:
npm publish- Verify the release:
npm view @weave-tools/weave-it
npm install -g @weave-tools/weave-it && weave --help- Optionally refresh this clone's own installed skill copies so local dogfooding matches what shipped:
weave agent update --allThis project is licensed under the MIT License. See LICENSE for the full text.