Skip to content

Conversation

@vanpelt
Copy link
Collaborator

@vanpelt vanpelt commented Dec 20, 2025

Summary

Adds CLI commands and additional features for the Claude Code plugin:

  • weave claude CLI commands - Entry point for hook handling, session import, enable/disable, and status
  • Teleport feature (weave claude teleport) - Resume Claude sessions from a different machine by fetching session data from Weave, verifying git state, and restoring files
  • Secret scanning - Detect and redact secrets (API keys, credentials) from file content before uploading to Weave using detect-secrets

This is a follow-up to the core claude-plugin PR, extracting CLI-specific functionality that can be merged independently.

New Commands

Command Description
weave claude hook Handle Claude Code hook events (stdin relay to daemon)
weave claude import Import historic Claude sessions into Weave
weave claude teleport <session_id> Resume a session from another machine
weave claude enable [--global] Enable Weave tracing
weave claude disable [--global] Disable Weave tracing
weave claude status Show current tracing status

Files Added

  • weave/cli.py - CLI entry point (405 lines)
  • weave/__main__.py - Module entry point for python -m weave
  • weave/integrations/claude_plugin/teleport.py - Session teleport (408 lines)
  • weave/integrations/claude_plugin/secret_scanner.py - Secret detection (294 lines)
  • Tests for teleport and secret scanner

Test plan

  • Run weave claude status to verify CLI works
  • Run weave claude enable / weave claude disable to test config commands
  • Test secret scanner with files containing API keys
  • Test teleport with a valid session ID from Weave

🤖 Generated with Claude Code

@vanpelt vanpelt requested a review from a team as a code owner December 20, 2025 20:12
@vanpelt vanpelt changed the base branch from master to feature/claude-plugin-clean December 20, 2025 20:14
@wandbot-3000
Copy link

wandbot-3000 bot commented Dec 20, 2025

Adds the following features to the clean plugin branch:
- weave CLI with `weave claude` subcommands (hook, enable, disable, status, import, teleport)
- Teleport feature for resuming sessions across machines
- Secret scanning and redaction using detect-secrets

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@vanpelt vanpelt force-pushed the feature/claude-plugin-cli branch from d96b55f to ed57f1f Compare December 20, 2025 20:26
@github-actions
Copy link
Contributor

❌ Documentation Reference Check Failed

No documentation reference found in the PR description. Please add either:

This check is required for all PRs except those that start with "chore(weave)" or explicitly state "docs are not required". Please update your PR description and this check will run again automatically.

@codecov
Copy link

codecov bot commented Dec 20, 2025

Codecov Report

❌ Patch coverage is 0% with 426 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
weave/integrations/claude_plugin/teleport.py 0.00% 155 Missing ⚠️
weave/cli.py 0.00% 145 Missing ⚠️
weave/integrations/claude_plugin/secret_scanner.py 0.00% 123 Missing ⚠️
weave/__main__.py 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants