Repository navigation
feat(opencode): split Work and Code agents - #184
Conversation
- Work is general-purpose workhorse, Code is software-engineering specialist - Work can delegate to Code, Code cannot delegate to Work via task permission deny - Code receives LSP tools, Work does not via lsp permission deny and tool filtering - Enforced at agent/tool configuration seam, not just prompts - Added minimal LSP and task tools in core and code prompt in opencode - Added focused regression tests for both runtimes Co-authored-by: arena-agent <[email protected]>
mdev34-lab
left a comment
There was a problem hiding this comment.
Follow-up implementation
Implemented the review findings in commit 3dafa7a1ac9cec47a91c2ff41520d249eda38172.
- Work explicitly denies
task: workat the Core permission seam. - TaskTool now rejects every
primaryagent target at runtime, closing Work→Work, Work→Plan, Code→Plan, Plan→Work, and other primary-agent cycle edges even when permission configuration is permissive. - Tool descriptions already exclude primary targets; regression coverage now verifies the runtime execution seam itself.
- Default-agent fallback explicitly preserves Work first, then Plan, so adding Code cannot change the existing Work-disabled fallback accidentally.
- Restored the unrelated builtins TODO wording.
- Added focused Core and opencode regression coverage.
The local container cannot reach GitHub, so tests cannot be executed locally here. The new PR has not reported CI runs/statuses yet; it must remain unapproved until the repository gates report green.
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
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. |
|
The checklist item |
Issue for this PR
Closes #99
Type of change
What does this PR do?
Implements Work (general-purpose workhorse) and Code (software-engineering specialist) as distinct agents.
Work:
Code:
Enforcement:
finish.Default agent behavior:
mode: allrather than becoming the default primary entry point.How did you verify your code works?
typecheckandunit (linux)are green;unit (windows)is still running andnix-evalis queued.Screenshots / recordings
Not applicable; this PR does not change a UI surface.
Checklist