Merged
Conversation
Add ClaudeCliProvider that executes the local CLI as a subprocess, enabling PicoClaw to leverage advanced capabilities (MCP tools, workspace awareness, session management) through any messaging channel. - Implement LLMProvider interface via subprocess execution - Support --system-prompt, --model, --output-format json flags - Parse real v2.x JSON response format including usage tokens - Handle error responses, stderr, context cancellation - Register "claude-cli", "claude-code", "claudecode" aliases in CreateProvider - 56 unit tests with mock scripts + 3 integration tests against real binary - 100% coverage on all functions except stripToolCallsJSON (85.7%)
8388d42 to
f6362ce
Compare
Collaborator
|
Thanks for the pr. |
Collaborator
Author
|
@lxowalle do you have plans to centralize the communication and community like discord or something like that? |
Contributor
|
Thanks for your contribution! We are forming the PicoClaw Dev Group to accelerate the evolution of the project. Any developer with more than one merged PR is invited to join. Would you like to join the PicoClaw Dev Group? If so, please send an email to |
emadomedher
pushed a commit
to emadomedher/picoclaw
that referenced
this pull request
Feb 17, 2026
feat: add cli-based LLM provider
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
ClaudeCliProviderthat executes the local CLI (claude) as a subprocess, implementing theLLMProviderinterface"claude-cli","claude-code","claudecode"provider aliases in theCreateProviderfactoryWhat this enables
Users can configure
provider: "claude-cli"in PicoClaw config to route messages through the local CLI binary, gaining access to MCP tools, workspace awareness, and session management from any messaging channel (Telegram, Discord, WhatsApp, etc.).Files changed
pkg/providers/claude_cli_provider.gopkg/providers/claude_cli_provider_test.gopkg/providers/http_provider.goKey implementation details
exec.CommandContextwith context cancellation support-p --output-format json --dangerously-skip-permissions --no-chrome--system-promptfor system messagesis_errorfield handling for CLI error responsesTest plan
go vet,go fmt,go build ./...all clean*ClaudeCliProviderfor all 3 aliasesis_error: true