Install for Claude Code
Install Weave for Claude Code
Claude Code loads Weave as two plugin directories that the Weave CLI generates in your project. Unlike OpenCode, Claude Code needs the CLI installed.
Prerequisites
Section titled “Prerequisites”- Claude Code
- Bun. The Weave CLI runs on Bun, not Node.js.
Install
Section titled “Install”-
Install the Weave CLI globally:
Terminal window bun add --global @weaveio/weave-cli@0.2.0 -
In your project, generate the Claude Code plugins:
Terminal window weave compose --adapter claude-code --initThis writes two directories:
.weave/plugins/claude-code/: the agents (loom.md,shuttle.md, …), the/weave:startcommand, and asettings.jsonthat makes Loom the main agent.weave-bootstrap-plugin/: aSessionStarthook that runsweave compose --adapter claude-codeat the start of every session, so the agents follow your.weaveconfig. This hook is why the CLI must be installed globally.
You don’t need a
.weaveconfig: without one, Weave generates its builtin agents. To customize them, runweave init --scope local --yesfirst, or later, and edit.weave/config.weave.weave init --harness claude-codewrites the config and runs this compose step in one go. -
Start Claude Code with both plugin directories:
Terminal window claude --plugin-dir ./weave-bootstrap-plugin --plugin-dir ./.weave/plugins/claude-code
Add .weave/plugins/ to your .gitignore: it is generated.
Verify
Section titled “Verify”The session’s main agent is Loom, and the agent list includes the Weave agents as weave:loom, weave:shuttle, weave:pattern, and so on. Ask Loom for a change and it delegates to them, for example to weave:shuttle.
What Claude Code support provides
Section titled “What Claude Code support provides”Claude Code support is file materialization only. The generated files provide agents, prompts, model aliases, tool lists, category shuttles, and the /weave:start plan-entry command. They do not provide a durable workflow runtime.
This is deliberately not a claim of runtime parity with other adapters. Generated files cannot provide durable workflow scheduling, lifecycle observation, idle continuation, compaction recovery, analytics, or runtime-backed eval control.
Working with generated files
Section titled “Working with generated files”After you change your .weave configuration, start a new session, or run /reload-plugins, so Claude Code picks up the regenerated files. The /weave:start command (with /start-work as a compatibility alias) begins plan-based work.
Release channels
Section titled “Release channels”The Weave CLI is published on two npm channels:
- latest: Stable releases (recommended)
- next: Pre-releases for trying upcoming changes
bun add --global @weaveio/weave-cli@next