feat(handoff): embed calling task ID for back-channel communication#322
Merged
Conversation
Capture ARGUS_TASK_ID in the Context block and include it in the created Argus task's prompt, telling the receiving agent how to reach the originating task via task_message_send. Omitted when run outside an Argus task session. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Address review findings on the calling-task back-reference: - Clarify the receiving agent substitutes its own $ARGUS_TASK_ID at call time for the `id` arg, while <calling-task-id> is filled in statically now - Define empty as blank/whitespace-only so an unset ARGUS_TASK_ID never emits a placeholder back-reference - Tell the receiving agent to log-and-continue if the send fails (stale or archived originating task) - Pipe the Calling task ID context entry through `2>/dev/null | head -1` for consistency with the rest of the Context block, and fix indentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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.
The handoff skill now captures the calling task's ARGUS_TASK_ID and embeds
it in the created Argus task's prompt, so the receiving agent can message
the originating task back via task_message_send (ask a question, report a
result, signal completion).
Calling task IDto the Context block (piped through head -1 forconsistency with other entries)
task ID is non-empty (blank/whitespace-only treated as empty); clarify the
receiving agent supplies its own ARGUS_TASK_ID at call time while the
calling task ID is substituted statically; log-and-continue if the send
fails (stale/archived originating task)
All skill tests and the skill linter pass.
Co-Authored-By: Claude noreply@anthropic.com