Skip to content

feat: add Amp and Cline CLI agent support#31

Open
Xytronix wants to merge 1 commit into
warpdotdev:mainfrom
Xytronix:feat/amp-cline-support
Open

feat: add Amp and Cline CLI agent support#31
Xytronix wants to merge 1 commit into
warpdotdev:mainfrom
Xytronix:feat/amp-cline-support

Conversation

@Xytronix
Copy link
Copy Markdown

Summary

Adds Warp notification support for two additional CLI coding agents, extending the existing Claude Code plugin to work across more tools.

Amp (ampcode.com)

TypeScript plugin using Amp's native plugin API (amp.on(...) event handlers). Located at plugins/amp/warp-notify.ts.

Events covered:

Amp Event Warp Notification
session.start session_start
agent.start prompt_submit
tool.call permission_request
tool.result tool_complete
agent.end stop

Install: Copy to ~/.config/amp/plugins/ and run with PLUGINS=all amp.

Cline CLI (cline.bot)

File-based shell hook scripts for Cline's ~/Documents/Cline/Hooks/ directory. Self-contained bash scripts, no dependencies beyond jq.

Hooks provided:

  • TaskStart.shsession_start
  • TaskComplete.shstop
  • TaskError.shstop (error)
  • PreToolUse.shpermission_request
  • PostToolUse.shtool_complete
  • UserPromptSubmit.shprompt_submit

Install: Copy hooks to ~/Documents/Cline/Hooks/ and chmod +x.

Design

Both plugins emit identical warp://cli-agent OSC 777 structured notifications with the same JSON schema as the existing Claude Code plugin. They include the same Warp client version checks (shouldUseStructured) to handle legacy builds gracefully.

Each plugin identifies itself via the agent field in the payload (\"amp\" or \"cline\" instead of \"claude\"), allowing Warp to distinguish which agent is running.

Testing

  • Amp: Verified plugin loads and registers all 5 events via PLUGINS=all amp plugins list
  • Cline: Hook files placed in ~/Documents/Cline/Hooks/, auto-discovered by Cline CLI
  • Both tested in Warp terminal with WARP_CLI_AGENT_PROTOCOL_VERSION=1

Add Warp notification plugins for two additional CLI coding agents:

- **Amp** (ampcode.com): TypeScript plugin using Amp's plugin API
  (`amp.on(...)` event handlers). Hooks into session.start, agent.start,
  tool.call, tool.result, and agent.end events.

- **Cline CLI** (cline.bot): File-based shell hook scripts placed in
  ~/Documents/Cline/Hooks/. Covers TaskStart, TaskComplete, TaskError,
  PreToolUse, PostToolUse, and UserPromptSubmit events.

Both emit identical warp://cli-agent OSC 777 structured notifications
with the same JSON schema as the existing Claude Code plugin.
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.

1 participant