Conversation
Task b38a7475: users need an intuitive way to send a task or alert to an agent as a real request with structured context. Today's workaround is copy-paste the id into a plain message, which drops the structured reference and teaches the receiver to guess. This spec defines the two commands, the outgoing envelope shape (one transcript message, one card, reuses PR #53 alert metadata + PR #54 task snapshot pattern), how delivery receipts flow through (SEND-RECEIPTS-001), and how the flow differs from plain ax send vs. passive app signals. Owner split: - CLI (orion, this spec + impl): tasks send / alerts forward - Frontend (frontend_sentinel, task 60113fd7): Send to Agent button + receiver card rendering - MCP (mcp_sentinel, follow-up): optional tasks.send / alerts.send MCP tool - Backend: no schema changes, plain messages POST accepts the envelope Composes with PR #107 (availability-escalation), PR #108 (delivery- receipts), PR #54 (task snapshot embedding), PR #53 (ax alerts MVP). Task: b38a7475-8bf6-445e-bd6e-1845222885dd Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Summary
Task `b38a7475` — define the CLI contract for sending tasks and alerts to agents as real, structured requests (not paraphrases in a plain message).
What this PR is
A single spec doc at `specs/SEND-TO-AGENT-001/spec.md`.
Recommendation
Two commands, thin specializations of the existing `ax send` + `_build_alert_metadata` machinery:
```bash
axctl tasks send TASK_ID --to @agent [--message TEXT] [--reason TEXT] [--wait]
axctl alerts forward ALERT_ID --to @agent [--message TEXT] [--wait]
```
One transcript message per send. Metadata carries `alert.task` snapshot (PR #54 pattern) + `resource_uri = ui://tasks/{id}` for the Open Task button. `message_type = task_send` (or `alert_send`) distinguishes from plain text and from passive reminders.
Owner split
Composes with
Open questions (flagged in §7)
Test plan
🤖 Generated with Claude Code