Repository navigation
Conversation
Add a provider that uses the goose CLI agent for inference. goose
owns the model backend, so one provider covers every backend goose
supports, including local and self-hosted servers such as vLLM and
Ollama, without commit-classifier talking to them directly.
The provider runs
goose run --no-session --quiet --output-format json --instructions -
feeds the prompt on stdin and collects the assistant text from the
JSON transcript goose prints:
- Text parts of all assistant messages are joined in order, so an
agent that talks between tool calls still ends with its verdict.
- Thinking parts are kept as <think> blocks ahead of the text of
their message. Reasoning models such as Qwen3 put the whole
analysis there and leave only the verdict in the text part;
verdict parsers already skip <think> blocks and saved
explanations stay useful. A thinking-only reply is an error.
- goose error parts and status=error become LlmError::Api.
- A missing binary is LlmError::Config and is not retried.
Timeouts and retries follow the kiro provider: each run is bounded
by timeout_secs (default 600, agent runs with tools can be slow) and
retried with exponential backoff from BaseLlmConfig.
All JSON config keys are optional: binary/executable_path, provider,
model, builtins (--with-builtin), no_profile (default true, so the
user's default goose extensions do not leak into classification),
max_turns, cwd, mode (GOOSE_MODE), env and timeout_secs. temperature
and max_tokens are forwarded as GOOSE_TEMPERATURE/GOOSE_MAX_TOKENS
only when set explicitly, otherwise goose's own settings apply.
cargo test: 74 passed. cargo clippy --all-targets -- -D warnings is
clean for the new code; the remaining error is the existing
ollama_rs::Ollama::new deprecation.
Assisted-by: claude-opus-5.5
Signed-off-by: Yunseong Kim <yunseong.kim@est.tech>
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.
Add a provider that uses the goose CLI agent for inference. goose owns the model backend, so one provider covers every backend goose supports, including local and self-hosted servers such as vLLM and Ollama, without commit-classifier talking to them directly.
The provider runs
goose run --no-session --quiet --output-format json --instructions -feeds the prompt on stdin and collects the assistant text from the JSON transcript goose prints:
Timeouts and retries follow the kiro provider: each run is bounded by timeout_secs (default 600, agent runs with tools can be slow) and retried with exponential backoff from BaseLlmConfig.
All JSON config keys are optional: binary/executable_path, provider, model, builtins (--with-builtin), no_profile (default true, so the user's default goose extensions do not leak into classification), max_turns, cwd, mode (GOOSE_MODE), env and timeout_secs. temperature and max_tokens are forwarded as GOOSE_TEMPERATURE/GOOSE_MAX_TOKENS only when set explicitly, otherwise goose's own settings apply.
cargo test: 74 passed. cargo clippy --all-targets -- -D warnings is clean for the new code; the remaining error is the existing ollama_rs::Ollama::new deprecation.