Label agents by project/branch instead of pane id #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mail-agent-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #7.
The problem
A status report from an agent read:
Useless to the human it was written for. They think in projects and branches; a
pane id tells them neither, and decoding it means running
herdr agent listandmatching by hand.
Why the skills couldn't fix this alone
The obvious move is "tell agents to use branch names." That fails, because an
agent's only handle on a peer is whatever the doorbell showed it. The doorbell
said
w2E:p1. You cannot instruct an agent to use a name it was never given.So the label is derived at send time from the sender's checkout and stored on the
message:
A claimed
mail namestill wins. Derived fromcwdrather than the herdr agentname because
cwdis always present — several live agents have no name at all,and nobody remembers to run
mail name.Verified against all 10 live agents at the time:
End to end: a message sent after this stores
from="herdrmastr"where one sentminutes earlier stored
from="w2A:p1".The pane id is not lost — it moves to
mail read'sFrom:line in brackets,which is the one place you need it (addressing a new message).
mail reply <id>needs neither. Inbox column widened to fit the longer names.Messages sent before this keep their stored pane id. The label is captured at
send time; re-deriving on display would gain nothing for senders since reaped,
and would cost a live lookup per row.
Skills updated with the concrete bad/good example, in both
herdr-spawn(whichknows
<project>and<slug>at spawn time) andherdr-mail.Also: corrects an overstatement from #7
#7 documented "a
※ recap:pane swallows Enter, so doorbells never land."False.
herdr agent promptsubmits fine there — confirmed by delivering intoa pane displaying one. What actually fails is
send-keys enterflushing inputalready parked in the line, which is a different (real) bug affecting typed
text, not mail. Narrowed here and in #6.
As filed, that wording would have sent someone hunting a mail-delivery bug that
does not exist.
Testing
agent_labelexercised against all 10 live agents (table above).from_panestill carries the id.mail selftest— passes.python3 -m py_compile herdr-mail/bin/mail— clean.No CI in this repo, so none of this is machine-gated.
🤖 Generated with Claude Code