Skip to content

feat(warp): allow registering alternate CLI agents via WARP_CLI_AGENT_NAME - #76

Open
aovestdipaperino wants to merge 1 commit into
warpdotdev:mainfrom
aovestdipaperino:register-plank-agent
Open

feat(warp): allow registering alternate CLI agents via WARP_CLI_AGENT_NAME#76
aovestdipaperino wants to merge 1 commit into
warpdotdev:mainfrom
aovestdipaperino:register-plank-agent

Conversation

@aovestdipaperino

Copy link
Copy Markdown

Summary

build-payload.sh hard-codes the payload's agent slug to "claude", so any harness that reuses these hook scripts is mislabeled in Warp's session UI and notifications.

This PR reads the slug from WARP_CLI_AGENT_NAME (defaulting to claude, so existing behavior is unchanged) so agents that speak the same warp://cli-agent OSC 777 protocol — e.g. plank — can register under their own identity.

Changes

  • plugins/warp/scripts/build-payload.sh: agent slug from WARP_CLI_AGENT_NAME, default claude
  • plugins/warp/tests/test-hooks.sh: assert the override works and that an empty value falls back to claude

Testing

./plugins/warp/tests/test-hooks.sh — 59 passed, 0 failed.

🤖 Generated with Claude Code

…_NAME

build-payload.sh hard-coded the payload's agent slug to "claude", so any
harness reusing these hook scripts was mislabeled in Warp's session UI and
notifications. Read the slug from WARP_CLI_AGENT_NAME (default "claude")
so agents like plank, which speak the same warp://cli-agent OSC 777
protocol, register under their own identity.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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