Skip to content

claude -p --output-format json-like functionality #278

Closed

Description

@maschwenk

We use Claude Code heavily in CI (similar to Cursor Background Agents) and opencode appears to have a lot of improvements over Claude Code that would be helpful even in a headless environment (for example connection to the LSP).

Are there plans to implement something similar to this?

We essentially fire prompts off into Github Actions Jobs and then do some steering to ensure multi-turn conversations follow some guardrails and then do multiple --resume's to ensure there is good adherence.

Activity

  1. thdxr commented on Jun 21, 2025

    @thdxr
    Member

    yes this should be pretty easy i'll implement

    i am curious about this use case though - can you give me some examples of what you use it for?

  2. self-assigned this
    on Jun 21, 2025
  3. maschwenk commented on Jun 21, 2025

    @maschwenk
    Author

    @thdxr we basically allow developers to send one shot prompts out to CI e.g.

    oh I'm implementing this new product feature but I see this feature flag that is globally enabled is still in the code, i'll run claude-code-ci 'Delete usages of FEATURE_FLAG_A from app B' and now I don't need to stop my current chain of thought and can continue what I'm working on

    and then 5-10 minutes later you get a draft PR that is assigned to you implementing the changes. Really similar to Cursor Background Agents but just invocable with a really simple CLI. We've jazzed it up with a few tricks but yeah.

  4. added a commit that references this issue on Jun 29, 2025
    1f7e9ed
  5. monotykamary commented on Jul 1, 2025

    @monotykamary
    Contributor

    #533 I have added the print flag, but I think I'm just missing a resume flag.

  6. n-asuy commented on Aug 30, 2025

    @n-asuy

    Curious about the current status.
    We can integrate stuffs to GitHub Actions just parsing simple json format. Or should we use server mode instead?

  7. added a commit that references this issue on Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions