-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add planbridge-last skill to open the last agent message #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
harnessIntegrations/claude/skills/planbridge-last/SKILL.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| --- | ||
| name: planbridge-last | ||
| description: Open your most recent assistant message in the PlanBridge browser UI for human annotation. Use when the user wants to annotate or give feedback on the wall of text you just wrote. | ||
| --- | ||
|
|
||
| # Annotate your most recent message in PlanBridge | ||
|
|
||
| Opens your most recent assistant message in the PlanBridge browser UI, where the user can leave inline annotations and general comments. Their feedback is returned on stdout. | ||
|
|
||
| ## When to use | ||
|
|
||
| Use this skill when the user wants to mark up something you just said. Typical triggers: | ||
|
|
||
| - "Let me annotate that" | ||
| - "Open the last thing you said in PlanBridge" | ||
| - "I want to mark up what you just wrote" | ||
| - You just produced a long block of prose, such as a spec, architecture explanation, migration plan, code-review summary, draft commit message, or brainstorming section, and the user wants to give targeted feedback. | ||
|
|
||
| ## How to invoke | ||
|
|
||
| **Do not send any commentary or status message before running the command.** The command targets your most recent rendered message, so a preamble like "Sure, opening that now" can mistakenly become the thing being annotated. Run the command first; speak after. | ||
|
|
||
| Copy the immediately previous assistant response from the conversation context and pipe it verbatim into `contextbridge open` via stdin. Preserve all markdown formatting and code blocks. Do not paraphrase, summarize, or rewrite. The user wants to annotate the exact text you produced, not a cleaned-up version. | ||
|
|
||
| ```sh | ||
| contextbridge open <<'PLANBRIDGE_LAST_MESSAGE' | ||
| <your immediately previous assistant response, verbatim> | ||
| PLANBRIDGE_LAST_MESSAGE | ||
| ``` | ||
|
|
||
| Run the command yourself rather than telling the user to invoke shell syntax manually. | ||
|
|
||
| If the previous assistant response is no longer available in conversation context, say so and ask the user to provide the content or use `planbridge-open` for a file or specific document. | ||
|
|
||
| If `contextbridge` is not available on PATH, report that the PlanBridge CLI is unavailable in the current user environment. | ||
|
|
||
| ## What happens | ||
|
|
||
| 1. PlanBridge starts a local browser session and prints the URL. | ||
| 2. The user annotates in the browser. Block on the CLI until they submit. | ||
| 3. The CLI prints a markdown summary of the user's feedback to stdout. | ||
|
|
||
| ## What to do with the output | ||
|
|
||
| Treat the comments the way you would treat a colleague's review notes: context for the next step, not a checklist to silently execute. | ||
|
|
||
| - If the user left no annotations, acknowledge briefly and continue. | ||
| - If the user left annotations, respond conversationally. They may want edits, may want discussion, or may be flagging things for later. When in doubt, ask what they want to do next. | ||
|
|
||
| ## Limitations | ||
|
|
||
| Only your immediately previous assistant response is opened. To annotate a file on disk, an earlier message, or a specific section that is not your prior message, use `planbridge-open` instead. | ||
|
|
||
| Very long messages, around 5k+ words, may drift or truncate during verbatim reproduction. For specs and other content of that size, save the content to a file first and use `planbridge-open` against the path. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| --- | ||
| name: planbridge-last | ||
| description: Open your most recent assistant message in the PlanBridge browser UI for human annotation. Use when the user wants to annotate or give feedback on the wall of text you just wrote. | ||
| --- | ||
|
|
||
| # Annotate your most recent message in PlanBridge | ||
|
|
||
| Opens your most recent assistant message in the PlanBridge browser UI, where the user can leave inline annotations and general comments. Their feedback is returned on stdout. | ||
|
|
||
| ## When to use | ||
|
|
||
| Use this skill when the user wants to mark up something you just said. Typical triggers: | ||
|
|
||
| - "Let me annotate that" | ||
| - "Open the last thing you said in PlanBridge" | ||
| - "I want to mark up what you just wrote" | ||
| - You just produced a long block of prose, such as a spec, architecture explanation, migration plan, code-review summary, draft commit message, or brainstorming section, and the user wants to give targeted feedback. | ||
|
|
||
| ## How to invoke | ||
|
|
||
| **Do not send any commentary or status message before running the command.** The command targets your most recent rendered message, so a preamble like "Sure, opening that now" can mistakenly become the thing being annotated. Run the command first; speak after. | ||
|
|
||
| Copy the immediately previous assistant response from the conversation context and pipe it verbatim into `contextbridge open` via stdin. Preserve all markdown formatting and code blocks. Do not paraphrase, summarize, or rewrite. The user wants to annotate the exact text you produced, not a cleaned-up version. | ||
|
|
||
| ```sh | ||
| contextbridge open <<'PLANBRIDGE_LAST_MESSAGE' | ||
| <your immediately previous assistant response, verbatim> | ||
| PLANBRIDGE_LAST_MESSAGE | ||
| ``` | ||
|
|
||
| ## Running this from Codex | ||
|
|
||
| In sandboxed Codex environments, this skill usually requires resources outside the default sandbox. When invoking the command, set `sandbox_permissions: "require_escalated"` and supply a brief `justification` describing what the command does. If the user runs the command regularly, suggest a matching `prefix_rule` (e.g., `["contextbridge", "open"]`) so future invocations don't require re-approval. | ||
|
|
||
| Run the command yourself rather than telling the user to invoke shell syntax manually. | ||
|
|
||
| If the previous assistant response is no longer available in conversation context, say so and ask the user to provide the content or use `planbridge-open` for a file or specific document. | ||
|
|
||
| If `contextbridge` is not available on PATH, report that the PlanBridge CLI is unavailable in the current user environment. | ||
|
|
||
| ## What happens | ||
|
|
||
| 1. PlanBridge starts a local browser session and prints the URL. | ||
| 2. The user annotates in the browser. Block on the CLI until they submit. | ||
| 3. The CLI prints a markdown summary of the user's feedback to stdout. | ||
|
|
||
| ## What to do with the output | ||
|
|
||
| Treat the comments the way you would treat a colleague's review notes: context for the next step, not a checklist to silently execute. | ||
|
|
||
| - If the user left no annotations, acknowledge briefly and continue. | ||
| - If the user left annotations, respond conversationally. They may want edits, may want discussion, or may be flagging things for later. When in doubt, ask what they want to do next. | ||
|
|
||
| ## Limitations | ||
|
|
||
| Only your immediately previous assistant response is opened. To annotate a file on disk, an earlier message, or a specific section that is not your prior message, use `planbridge-open` instead. | ||
|
|
||
| Very long messages, around 5k+ words, may drift or truncate during verbatim reproduction. For specs and other content of that size, save the content to a file first and use `planbridge-open` against the path. |
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| ## Running this from Codex | ||
|
|
||
| This skill runs commands that require resources outside Codex's default sandbox. When invoking them, set `sandbox_permissions: "require_escalated"` and supply a brief `justification` describing what the command does. If the user runs the command regularly, suggest a matching `prefix_rule` (e.g., `["contextbridge", "<subcommand>"]`) so future invocations don't require re-approval. | ||
| In sandboxed Codex environments, this skill usually requires resources outside the default sandbox. When invoking the command, set `sandbox_permissions: "require_escalated"` and supply a brief `justification` describing what the command does. If the user runs the command regularly, suggest a matching `prefix_rule` (e.g., `["contextbridge", "open"]`) so future invocations don't require re-approval. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| --- | ||
| name: planbridge-last | ||
| description: Open your most recent assistant message in the PlanBridge browser UI for human annotation. Use when the user wants to annotate or give feedback on the wall of text you just wrote. | ||
| --- | ||
|
|
||
| # Annotate your most recent message in PlanBridge | ||
|
|
||
| Opens your most recent assistant message in the PlanBridge browser UI, where the user can leave inline annotations and general comments. Their feedback is returned on stdout. | ||
|
|
||
| ## When to use | ||
|
|
||
| Use this skill when the user wants to mark up something you just said. Typical triggers: | ||
|
|
||
| - "Let me annotate that" | ||
| - "Open the last thing you said in PlanBridge" | ||
| - "I want to mark up what you just wrote" | ||
| - You just produced a long block of prose, such as a spec, architecture explanation, migration plan, code-review summary, draft commit message, or brainstorming section, and the user wants to give targeted feedback. | ||
|
|
||
| ## How to invoke | ||
|
|
||
| **Do not send any commentary or status message before running the command.** The command targets your most recent rendered message, so a preamble like "Sure, opening that now" can mistakenly become the thing being annotated. Run the command first; speak after. | ||
|
|
||
| Copy the immediately previous assistant response from the conversation context and pipe it verbatim into `contextbridge open` via stdin. Preserve all markdown formatting and code blocks. Do not paraphrase, summarize, or rewrite. The user wants to annotate the exact text you produced, not a cleaned-up version. | ||
|
|
||
| ```sh | ||
| contextbridge open <<'PLANBRIDGE_LAST_MESSAGE' | ||
| <your immediately previous assistant response, verbatim> | ||
| PLANBRIDGE_LAST_MESSAGE | ||
| ``` | ||
|
|
||
| {{#if (eq harness.id "codex")}} | ||
| {{> codex/sandbox-escalation}} | ||
| {{/if}} | ||
|
|
||
| Run the command yourself rather than telling the user to invoke shell syntax manually. | ||
|
|
||
| If the previous assistant response is no longer available in conversation context, say so and ask the user to provide the content or use `planbridge-open` for a file or specific document. | ||
|
|
||
| If `contextbridge` is not available on PATH, report that the PlanBridge CLI is unavailable in the current user environment. | ||
|
|
||
| ## What happens | ||
|
|
||
| 1. PlanBridge starts a local browser session and prints the URL. | ||
| 2. The user annotates in the browser. Block on the CLI until they submit. | ||
| 3. The CLI prints a markdown summary of the user's feedback to stdout. | ||
|
|
||
| ## What to do with the output | ||
|
|
||
| Treat the comments the way you would treat a colleague's review notes: context for the next step, not a checklist to silently execute. | ||
|
|
||
| - If the user left no annotations, acknowledge briefly and continue. | ||
| - If the user left annotations, respond conversationally. They may want edits, may want discussion, or may be flagging things for later. When in doubt, ask what they want to do next. | ||
|
|
||
| ## Limitations | ||
|
|
||
| Only your immediately previous assistant response is opened. To annotate a file on disk, an earlier message, or a specific section that is not your prior message, use `planbridge-open` instead. | ||
|
|
||
| Very long messages, around 5k+ words, may drift or truncate during verbatim reproduction. For specs and other content of that size, save the content to a file first and use `planbridge-open` against the path. | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback welcome on the phrasing here!