Skip to content

Add Agent() translation rule for OpenCode compatibility (v1.33.2)#103

Merged
rokicool merged 3 commits intomainfrom
dev
Apr 13, 2026
Merged

Add Agent() translation rule for OpenCode compatibility (v1.33.2)#103
rokicool merged 3 commits intomainfrom
dev

Conversation

@rokicool
Copy link
Copy Markdown
Owner

Summary

Added support for translating Claude Code-style Agent() background task calls to OpenCode-compatible @gsd-<agent> shorthand syntax.

Changes

Added

  • Translation rule 21 in assets/configs/remove-task.json for converting Agent(description=..., run_in_background=true, prompt=...) calls to @gsd-<agent> shorthand
  • Dynamic extraction of agent names from skill="gsd:<agent>" patterns

Changed

  • Converted 2 Agent() background task dispatch calls in autonomous.md to @gsd-plan-phase and @gsd-execute-phase shorthand
  • Updated skill invocation syntax from skill="gsd:plan-phase" to skill="gsd-plan-phase" (colon to dash)

Documentation

  • Updated CHANGELOG.md with v1.33.2 release notes
  • Updated README.md with v1.33.2 overview

Testing

  • Verified translation rule matches Agent() calls with skill="gsd:xxx" patterns
  • Confirmed output produces valid OpenCode @gsd-<agent> shorthand
  • Validated no forbidden strings remain after translation

Related

  • Fixes OpenCode incompatibility with Agent() function calls
  • Maintains consistency with existing task()@subagent translation approach

rokicool added 3 commits April 7, 2026 20:07
- Add rule 21 in remove-task.json to convert Agent(description=..., run_in_background=true, prompt=...) calls to @gsd-<agent> shorthand
- Extract agent name dynamically from skill="gsd:<agent>" patterns
- Convert Agent() calls in autonomous.md to @gsd-plan-phase and @gsd-execute-phase
- Update CHANGELOG.md with v1.33.2 release notes
- Update README.md with v1.33.2 overview
@rokicool
Copy link
Copy Markdown
Owner Author

@copilot mark this PR as a solution for #96

Copy link
Copy Markdown

Copilot AI commented Apr 13, 2026

@copilot mark this PR as a solution for #96

Added "Closes #96" to the PR description to link it to the issue. When this PR is merged, issue #96 will be automatically closed.

@rokicool rokicool merged commit 699eb76 into main Apr 13, 2026
6 checks passed
@rokicool rokicool deleted the dev branch April 13, 2026 01:05
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