Skip to content

Conversation

@mpazik
Copy link

@mpazik mpazik commented Jul 25, 2025

Thank you @thdxr for prompt implementation of agents. I love them.

Added support to execute agents via run command. It is something I use quite frequently in my personal fork.
Personally, I find agents more fitting in run the command than modes.

Here is an example of how to use it:
bun dev run --agent example-driven-docs-writer "update /Users/marekpazik/src/opencode/packages/web/src/content/docs/docs/cli.mdx. Agents can now be executed using the run command. See /Users/marekpazik/src/opencode/packages/opencode/src/cli/cmd/run.ts"

Feel free to give suggestions or rewrite the code if needed.

@mpazik mpazik changed the title Aagent execution trough CLI "run" command Agent execution trough CLI "run" command Jul 25, 2025
teamgroove pushed a commit to teamgroove/opencode that referenced this pull request Aug 3, 2025
Merged from: anomalyco#1303
Author: @mpazik
Auto-merged by opencode-fork integration system
@mpazik mpazik closed this Aug 8, 2025
@mpazik
Copy link
Author

mpazik commented Aug 8, 2025

No longer relevant after mergeting Agents and Modes together.
Great to see that refactoring!

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.

1 participant