feat: add agentic-cli-runner composite action (SC-18802)#13
Closed
richard-webb-dev wants to merge 1 commit intomainfrom
Closed
feat: add agentic-cli-runner composite action (SC-18802)#13richard-webb-dev wants to merge 1 commit intomainfrom
richard-webb-dev wants to merge 1 commit intomainfrom
Conversation
Adds a provider-agnostic composite action that runs OpenCode (opencode.ai) in non-interactive headless mode for use in AI-powered CI workflows. - Supports any provider/model string (Google, Anthropic, OpenAI, OpenRouter, etc.) - Single agent_api_key input applied to all common provider env vars - Retry logic with configurable max_attempts - Metadata collection from .ai-metadata/ directory (JSON + Markdown) - Artifacts: metadata files, conversation history, error reports on failure - CI-optimised: disables autoupdate, LSP download, terminal title Tested with google/gemini-2.5-flash via nektos/act.
Author
|
Closing in favour of simpleclub/.github-private — action will be hosted there instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new reusable composite action
agentic-cli-runnerthat runs OpenCode in non-interactive headless mode. This is a provider-agnostic action for AI-powered CI workflows, available to all repos in the simpleclub org.Usage
This supersedes the PR in backend implementing it:
https://github.com/simpleclub/backend/pull/5534
I will close that one, and instead reference this repo instead.
Key Features
provider/modelstringagent_api_keyis applied to all common provider env vars; only the active provider uses itmax_attempts.ai-metadata/*.jsonand*.mdfiles created by the agent into a consolidatedmetadataoutputTesting
Tested locally with nektos/act using
google/gemini-2.5-flash. OpenCode successfully answered a codebase question, created both expected metadata files, and the metadata was correctly extracted into the output.example run:
https://github.com/simpleclub-extended/backend/actions/runs/22202068524
Files