Skip to content

[FEATURE]: opencode run A flag for removing the preamble. #18257

@Blankeos

Description

@Blankeos

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 is pretty useful for small stdin piping stuff i.e. jesseduffield/lazygit#5389

But I dont know if there's a way to remove the preamble

❯ opencode run "Write me a sample commit message, w/ a message / body format"

> build · qwen3.5:397b

'''
feat: add user authentication system

Implement JWT-based authentication with refresh tokens.
Adds login, logout, and token refresh endpoints.

Closes #123
'''

**Format:**
- **Line 1:** `<type>: <subject>` (max 50 chars, imperative mood)
- **Line 2:** Blank
- **Line 3+:** Body (wrap at 72 chars, explain what/why)
- **Footer:** Optional (issue links, breaking changes)

**Common types:** `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`

btw I replaced the backticks with ''' so it formats well here

If we can remove this line more easily without any special parsing.


> build • <model>

Maybe like opencode run --no-preamble "Write me a commit message" ?

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions