GeezerVison is showing github.com — docs(specs): document tool.execute.after subagent behavior and propose bus delivery by semanticRig · Pull Request #41305 · anomalyco/opencode
Conversation
semanticRig
commented
Aug 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
See #41304
Type of change
What does this PR do?
One spec file at specs/subagent-messaging.md.
Documents that tool.execute.after fires for subagent sessions, proposes a typed hook contract, and suggests adding bus to the SessionDelivery types alongside steer and queue.
No code changes. The hook behavior already exists. The maildir transport (reference impl at semanticRig/cross-session-agent-messaging) stays external.
Related to the session messaging PRs #38944 and #38943.
How did you verify?
Tested on OpenCode 1.18.15 with a probe plugin confirming tool.execute.after fires for subagents. Reference implementation handles 10 parallel subagents. Spec change is docs-only, matches specs/project.md format.
Checklist
- Tested locally
- No unrelated changes
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ivery
the hook already fires for subagents but the contract is undocumented
and the payload shape is not versioned. this spec documents what exists,
proposes a typed contract, and extends session-delivery with a bus variant
so cross-session messaging can build on a stable interface.
the reference implementation at semanticRig/cross-session-agent-messaging
proves the mechanism works. the maildir transport stays external. the core
change is making the hook contract explicit.
see anomalyco#41304
|
Hey! Your PR title document the tool.execute.after subagent behavior and propose bus delivery doesn't follow conventional commit format.
Please update it to start with one of:
feat: or feat(scope): new feature
fix: or fix(scope): bug fix
docs: or docs(scope): documentation changes
chore: or chore(scope): maintenance tasks
refactor: or refactor(scope): code refactoring
test: or test(scope): adding or updating tests
Where scope is the package name (e.g., app, desktop, opencode).
See CONTRIBUTING.md for details.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR doesn't fully meet our contributing guidelines and PR template.
What needs to be fixed:
- PR description is missing required template sections. Please use the PR template.
Please edit this PR description to address the above within 2 hours, or it will be automatically closed.
If you believe this was flagged incorrectly, please let a maintainer know.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
The following comment was made by an LLM, it may be inaccurate:
I found 2 potentially related PRs:
1. feat(opencode): session-to-session messaging — communicate between two running sessions
#38944
This PR directly addresses cross-session messaging, which is closely related to the subagent messaging behavior being documented in PR #41305.
2. feat(opencode): coordinator-messaging — sibling/coordinator subagent communication
#38943
This PR focuses on coordinator and sibling subagent communication, which overlaps with the subagent session messaging proposed in PR #41305.
Both of these PRs appear to be addressing similar use cases around subagent and cross-session communication, though PR #41305 is primarily a documentation/spec PR that documents and versions existing behavior while proposing a new bus delivery variant.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
semanticRig
changed the title
document the tool.execute.after subagent behavior and propose bus delivery
docs(specs): document tool.execute.after subagent behavior and propose bus delivery
Aug 8, 2026
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.
Feel free to open a new pull request that follows our guidelines.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|