Add Windsurf Cascade external agent (preview)#28
Open
gabrielekarra wants to merge 1 commit into
Open
Conversation
Implements the Entire external agent protocol for Windsurf Cascade IDE sessions: - Hook installation/uninstall in .windsurf/hooks.json (preserves existing user-defined hooks; uninstall removes only Entire entries) - Lifecycle mapping: pre_user_prompt → TurnStart, post_write_code records file paths, post_cascade_response → TurnEnd - Incremental JSONL transcript written during the session - transcript_analyzer: get-transcript-position, extract-modified-files, extract-prompts, extract-summary - compact_transcript: base64-encoded user/assistant JSONL - Cross-platform hook commands (command on Unix, powershell on Windows) - Scanner buffer raised to 16 MiB to handle large LLM responses - 47 unit tests; all external-agents-tests compliance checks pass - E2E adapter registered only under E2E_AGENT=windsurf; IDEOnly interface added so prompt-based lifecycle tests skip gracefully for IDE agents Entire-Checkpoint: a2bf39ddba1c
Contributor
|
hmm @gabrielekarra looks like you have a few failing lint checks! |
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.
Closes #17
Summary
entire-agent-windsurf, a standalone Go binary implementing the Entire external agent protocol for Windsurf Cascade IDE sessions.windsurf/hooks.json, preserving any existing user-defined hooks; uninstall removes only Entire entries and deletes the file only when it becomes emptypre_user_prompt→ TurnStart,post_write_coderecords file paths to transcript,post_cascade_response→ TurnEndhooks,transcript_analyzer, andcompact_transcriptcapabilities"command"field on Unix/macOS,"powershell"field on Windowstoken too longfailuresexternal-agents-tests verifycompliance checks passE2E_AGENT=windsurf; addsIDEOnlyoptional interface so prompt-based lifecycle tests skip gracefully for IDE agents rather than failingTest plan
go test ./...passes inagents/entire-agent-windsurf/external-agents-tests verify ./entire-agent-windsurfpasses all mandatory, hooks, and transcript suitesENTIRE_REPO_ROOT=$PWD entire-agent-windsurf install-hooks→.windsurf/hooks.jsoncreated with three Entire entries, existing hooks preserved