[FEATURE]: Run with prompt #3543

Closed
opened 2026-02-16 17:40:35 -05:00 by yindo · 2 comments
Owner

Originally created by @JosXa on GitHub (Dec 14, 2025).

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

opencode run "command" is nice.
But what if I want a TUI?

opencode -p "command" doesn't actually execute anything.

So what I need is opencode -p "command" --run (or similar) to put the prompt into the input and send it automatically.

Ideas:

  • -i, --immediate
  • -r, --run
  • opencode run "command" --tui
Originally created by @JosXa on GitHub (Dec 14, 2025). ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request `opencode run "command"` is nice. But what if I want a TUI? `opencode -p "command"` doesn't actually execute anything. So what I need is `opencode -p "command" --run` (or similar) to put the prompt into the input and send it automatically. Ideas: - `-i`, `--immediate` - `-r`, `--run` - `opencode run "command" --tui`
yindo added the discussion label 2026-02-16 17:40:35 -05:00
yindo closed this issue 2026-02-16 17:40:35 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 14, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3937: [FEATURE]: Add a TUI flag/endpoint that auto-submits the initial prompt - This is very similar, as it requests a way to auto-submit the initial prompt when launching the TUI, which is essentially what you're asking for with the --run flag
  • #4355: [FEATURE]: OpenCode REPL mode, a simpler alternative to the TUI - Related feature request that proposes a REPL-like interface using opencode run and opencode run --continue, which aligns with your workflow

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 14, 2025): This issue might be a duplicate of existing issues. Please check: - #3937: [FEATURE]: Add a TUI flag/endpoint that auto-submits the initial prompt - This is very similar, as it requests a way to auto-submit the initial prompt when launching the TUI, which is essentially what you're asking for with the --run flag - #4355: [FEATURE]: OpenCode REPL mode, a simpler alternative to the TUI - Related feature request that proposes a REPL-like interface using `opencode run` and `opencode run --continue`, which aligns with your workflow Feel free to ignore if none of these address your specific case.
Author
Owner

@JosXa commented on GitHub (Dec 14, 2025):

Duplicaste of #3937

@JosXa commented on GitHub (Dec 14, 2025): Duplicaste of #3937
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3543