Skip to content

Agent execution trough CLI "run" command #1303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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
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