Repository navigation
Conversation
Runs the Amp CLI in execute mode and maps its stream JSON to box-sse-v1. Box sessions map to Amp threads; supports MCP servers, prompt files, and mode changes on follow-ups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 1, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CahidArda
approved these changes
Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
packages/sdk/examples/custom-amp-agent.ts, a custom harness that runs Amp inside a box.amp -x --stream-jsonand maps Amp's stream JSON (Claude Code format) tobox-sse-v1events: text, tool calls, tool results, token usageamp threads continue); threads are created with--no-archive-after-executeso they can be continuedmodelis an Amp mode (low,medium,high,ultra) and is applied on follow-ups too--mcp-config/workspace/home/.box-attachments/<uuid>/<name>JSON_SCHEMAandAGENT_OPTIONSlog a warning (no Amp equivalent)AMP_API_KEY; cost is reported as 0 since Amp doesn't expose $ usageTesting
Run live against Box and Amp:
@modelcontextprotocol/server-everything(npm) and context7 (URL)lowmode, switching mode withconfigureModel("high")before a follow-upAMP_API_KEYfails the run with Amp's error messageDocs: upstash/docs PR to follow (adds the Amp page under Custom Harness).
🤖 Generated with Claude Code