plugins/cli-agents/skills/local-llm-bridge/SKILL.md
Local Gemma 4 12B sub-agent. Routes bounded tasks directly to the optimized llama-server at localhost:8089 — no routing proxy, no cloud API, 2–5s typical response. Use for fast, private, cost-free subtask delegation from any cloud primary agent. Part of the run_agent.py multi-LLM task router — cli=llama target.
npx skillsauth add richfrem/agent-plugins-skills local-llm-bridgeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Dispatches bounded tasks directly to the optimized local Gemma 4 12B server at http://localhost:8089/v1/chat/completions. No routing proxy involved. Uses the run_agent.py task router with cli=llama.
[!IMPORTANT] Requires llama-server running on port 8089. Check:
curl http://localhost:8089/healthStart:./run_server.shin the local-llm-bench workspace. Thinking is disabled server-side (--reasoning off) — no special flags needed.
The routing proxy (Mode A) carries ~29K tokens of Claude Code system prompt — at ~30 tok/s prefill that costs 60+ seconds per context boundary crossing.
This skill (Mode B) sends only the task prompt — typically 50–500 tokens. At 7+ tok/s generation on M1 Metal with a small context:
| Output length | Typical response time | |---------------|-----------------------| | 50 tokens | ~7s | | 100 tokens | ~14s | | 200 tokens | ~28s |
Default max_tokens=120 keeps responses terse. Override via code if needed.
run_agent.pypython ./scripts/run_agent.py \
<PERSONA_FILE> <INPUT_FILE> <OUTPUT_FILE> "<INSTRUCTION>" \
--cli llama --max-tokens 120
python ./scripts/run_agent.py \
agents/refactor-expert.md \
target.py \
review.md \
"List the top 3 issues in this code. Be terse." \
--cli llama
python ./scripts/run_agent.py \
/dev/null \
changes.diff \
summary.md \
"Summarize this diff in 2 sentences. Focus on risk." \
--cli llama --max-tokens 200
python ./scripts/run_agent.py \
/dev/null /dev/null \
answer.md \
"What is the capital of France? One word." \
--cli llama --max-tokens 10
Keep prompts lean — this is the primary performance lever:
Avoid: pasting full file trees, long conversation histories, or open-ended "analyze everything" instructions.
| Parameter | Value |
|-----------|-------|
| Server | llama-server :8089 |
| Model | Gemma 4 12B UD-Q4_K_XL |
| GPU offload | -ngl 99 (full Metal) |
| Flash Attention | -fa on |
| Batch sizes | -b 2048 -ub 512 |
| KV cache quant | -ctk q8_0 -ctv q8_0 |
| Thinking | disabled (--reasoning off) |
| Context | 32768 tokens (1 slot) |
agents/)| Persona | Use For |
|---------|---------|
| security-auditor.md | Vulnerability review, risk assessment |
| refactor-expert.md | Code cleanup, readability, DRY |
| architect-review.md | Design review, modularity check |
scripts/)All scripts are symlinked from the canonical plugins/cli-agents/scripts/ so the skill is self-contained when installed in isolation.
| Script | Purpose |
|--------|---------|
| run_agent.py | Task router — cli=llama dispatches here |
| kv_cache_orchestrator.py | KV slot save/restore for repeated persona calls |
| run_server.py | Start llama-server with authoritative parameters |
| test_run_agent.py | 37 tests: command builders, isolated-flag security contract, llama payload |
routing_proxy.pyis NOT included — it is the Mode A API compatibility shim and is not part of this skill's execution path.
curl http://localhost:8089/health
python ./scripts/run_agent.py /dev/null /dev/null /tmp/test.md "Say hello in one word." --cli llama
cat /tmp/test.md
curl http://localhost:8089/health # must return {"status":"ok"}
# If down: python ./scripts/run_server.py
testing
Skill for creating and managing isolated git worktrees (`.worktrees/issue-NNN`) for issue execution branches. USE ONLY when setting up or cleaning up isolated git worktrees for specific issue execution. DO NOT USE for managing local task files (use `task-agent`) or escalating tasks to issues (use `github-issue-backlog-agent`).
data-ai
Skill for orchestrating the end-to-end GitHub issue lifecycle flow: Issue -> Worktree -> Implementation -> PR Creation -> Resolution Closure. USE ONLY when running or dry-running full lifecycle orchestration for resolving an issue with a PR. DO NOT USE for isolated worktree management only (use `issue-worktree-agent`) or logging issues (use `github-issue-agent`).
tools
Automatically ranks GitHub issues (P0-P3) based on friction tier, frequency, and blockages, synchronizing priority labels and GitHub Projects v2 custom fields.
testing
Bridge skill for escalating ephemeral local task scratchpad items (`tasks/*.md`) into durable, taxonomy-validated, evidence-rich GitHub Issues. USE ONLY when promoting a single-session local task into durable repository backlog. DO NOT USE for managing local kanban boards (use `task-agent` instead) or directly querying/commenting on issues (use `github-issue-agent` instead).