This is a Weights & Biases Weave plugin. A CoreWeave Forge version isn’t available yet. Traces the plugin sends appear in Agent Lens, because Agent Lens and Weave share the same trace data.
Prerequisites
- Node.js v18 or later (includes
npm). - Claude Code installed and authenticated.
- A CoreWeave Forge account and API key set as a
WANDB_API_KEYenvironment variable. - An Agent Lens project (
[YOUR-TEAM]/[YOUR-PROJECT]) to receive traces.
Install the plugin
Install the CLI, run the installer to register the plugin with Claude Code, then start a Claude Code session to begin tracing.1
Install the CLI
2
Run the installer
- Creates
~/.weave-claude-code/settings.json. - Registers the plugin in Claude Code.
- Prompts for your Agent Lens project (
[YOUR-TEAM]/[YOUR-PROJECT]) and Forge API key if they aren’t already set.
WEAVE_PROJECT and WANDB_API_KEY from the environment and warns if either is missing.3
Start Claude Code
View Claude Code traces in Agent Lens
After running at least one Claude Code session, open your project in the Agent Lens UI:- Navigate to CoreWeave Forge, select Agent Lens from the product menu, and then select your project in the project selector at the top of the side menu.
- In the side menu, select Conversations.
- Select the Conversations tab to view all agent conversations saved for your project.
- Select a conversation to inspect the full conversation tree.
invoke_agent claude-code span uses the top-level agent name, which defaults to claude-code. You can change it with the agent_name setting or the WEAVE_AGENT_NAME environment variable (see Configure the plugin). Subagents keep their own type names.
Multi-turn conversations are linked server-side by conversation ID, so you can follow a conversation across multiple traces. Each span includes token usage, model name, tool inputs and outputs, timing, and the textual content of prompts and responses. For more information about traced data, see What Gets Traced in GitHub.
Configure the plugin
Use theweave-claude-code config commands to view or update plugin settings after installation:
claude-code in the Conversations tab. Set agent_name to use a different name, for example to distinguish teams or projects. The name can’t be empty, and surrounding whitespace is trimmed.
Environment variables take precedence over the settings file:
Agent Lens skills
After installation, three Agent Lens-specific skills are available directly inside any Claude Code session.
You can use the
weave:weave-config skill to set Agent Lens values from within Claude Code:
Check plugin status
You can use these CLI commands to check plugin status or troubleshoot issues:✓ (OK), ✗ (action needed), or - (not yet active but not an error).
If conversations aren’t appearing in Agent Lens, check the daemon log:
~/.weave-claude-code/logs/daemon.log.
Uninstall
To remove the plugin from Claude Code, run:--keep-logs to preserve the log directory.