Skip to content

feat(handoff): embed calling task ID for back-channel communication#322

Merged
drn merged 2 commits into
masterfrom
argus/The-handoff-skill-should
Jun 24, 2026
Merged

feat(handoff): embed calling task ID for back-channel communication#322
drn merged 2 commits into
masterfrom
argus/The-handoff-skill-should

Conversation

@drn

@drn drn commented Jun 24, 2026

Copy link
Copy Markdown
Owner

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).

  • Add Calling task ID to the Context block (piped through head -1 for
    consistency with other entries)
  • Step 8 prompt guidance: include the back-reference only when the calling
    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)
  • Report the back-channel in the success message

All skill tests and the skill linter pass.

Co-Authored-By: Claude noreply@anthropic.com

drn and others added 2 commits June 24, 2026 00:04
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>
@drn drn merged commit c5255ec into master Jun 24, 2026
@drn drn deleted the argus/The-handoff-skill-should branch June 25, 2026 00:50
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