Repository navigation
Conversation
A zero-dependency Bun CLI that turns a short wizard (or flags) into one or more Claude Code agents running against a local Ollama model. It is a dispatcher, not an agent runtime: each agent is a real `claude -p` process spawned through `ollama launch claude`, so tool use comes from that harness. This package owns the wizard, the per-agent prompts, the concurrency pool, output multiplexing and the final report. - src/ollama.ts probes the local install at startup (`--version`, `launch --help`, `list`) and only passes `--model`/`--yes` when the help text advertises them, so a changed Ollama CLI degrades with a note instead of a spawn failure. `--direct` skips `ollama launch` and runs `claude` against $OLLAMA_HOST with the Anthropic-compatible env vars set locally. - src/plan.ts builds the prompts. Multi-agent prompts list the sibling tasks and tell each agent to stay in its lane, not to commit, push, or run repo-wide destructive commands. Splitting a goal into N tasks is one throwaway model call, not a planner. - src/runner.ts runs the pool: bounded concurrency, per-agent line prefixes, per-agent timeouts, SIGINT teardown, and a summary/JSON report. Ollama could not be installed in the development environment (no binary, and the outbound proxy blocks ollama.com), so no flag was verified against a real install and no end-to-end run against a real model was performed. That is called out in the README. The 42 tests run the CLI end to end against a stub `ollama` that records the argv it was launched with; the concurrency tests use a rendezvous in the stub so they assert parallelism without depending on timing. Runs on the system bun - this package is plain TypeScript and never calls into Bun's native code, so no debug build is involved.
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
Disabled knowledge base sources:
WalkthroughChangesThis PR adds the private Agentic Bun dispatcher
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
A zero-dependency Bun CLI that turns a short wizard (or flags) into one or more Claude Code agents running against a local Ollama model.
It is a dispatcher, not an agent runtime: each agent is a real
claude -pprocess spawned throughollama launch claude, so tool use comes from that harness. This package owns the wizard, the per-agent prompts, the concurrency pool, output multiplexing and the final report.--version,launch --help,list) and only passes--model/--yeswhen the help text advertises them, so a changed Ollama CLI degrades with a note instead of a spawn failure.--directskipsollama launchand runsclaudeagainst $OLLAMA_HOST with the Anthropic-compatible env vars set locally.Ollama could not be installed in the development environment (no binary, and the outbound proxy blocks ollama.com), so no flag was verified against a real install and no end-to-end run against a real model was performed. That is called out in the README. The 42 tests run the CLI end to end against a stub
ollamathat records the argv it was launched with; the concurrency tests use a rendezvous in the stub so they assert parallelism without depending on timing.Runs on the system bun - this package is plain TypeScript and never calls into Bun's native code, so no debug build is involved.
What does this PR do?
How did you verify your code works?