Skip to content

docs(specs): document tool.execute.after subagent behavior and propose bus delivery - #41305

Closed
semanticRig wants to merge 1 commit into
anomalyco:devfrom
semanticRig:subagent-messaging-spec
Closed

docs(specs): document tool.execute.after subagent behavior and propose bus delivery#41305
semanticRig wants to merge 1 commit into
anomalyco:devfrom
semanticRig:subagent-messaging-spec

Conversation

@semanticRig

@semanticRig semanticRig commented Aug 8, 2026

Copy link
Copy Markdown

Issue for this PR

See #41304

Type of change

  • Documentation

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

…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
@github-actions github-actions Bot added needs:title needs:compliance This means the issue will auto-close after 2 hours. labels Aug 8, 2026
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

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.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

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.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

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.

@semanticRig 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
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Aug 8, 2026
@github-actions github-actions Bot closed this Aug 8, 2026
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.

2 participants