config: llama.cpp local profile for the pipeline - #19
Conversation
JustAi's defaults + .env.example pointed every stage at a LiteLLM proxy on :4000 (not running) with cloud model names. The live local stack is llama.cpp (llama-server @ 127.0.0.1:8085, Qwen3-VL-8B, OpenAI-compatible). Adds .env.llamacpp: a ready profile (cp .env.llamacpp .env) pointing the judging/planning stages (intent/planner/reviewer/fidelity/analysis) at 8085 with a clean model alias. .env.example annotated: llama.cpp is the current stack, :4000 marked legacy; documents JUSTAI_FIDELITY_MODEL. Verified live on 8085: intent+plan+review produce a real plan; the intent- fidelity gate discriminates (aligned 100/met vs drifted 0/missed), source=llm. Config-only, no logic change. HYBRID note: the executor (mini-swe-agent) shares LITELLM_BASE_URL so it currently also uses 8085 (Qwen 8B) -- weak for coding. Completing the hybrid (stronger executor on its own endpoint) needs a small agent_dispatch addition (JUSTAI_EXECUTOR_BASE_URL) + a coder server; deferred. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VPortjb8U5oteKxppGuVDQ
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
Adds a llama.cpp-focused local environment profile and updates the sample environment file to document local-vs-legacy routing so the pipeline can be pointed at a running local OpenAI-compatible server (127.0.0.1:8085) instead of the legacy :4000 proxy defaults.
Changes:
- Adds a new
.env.llamacppprofile targetinghttp://127.0.0.1:8085with local model aliases for planning/judging (and currently also executor variables). - Updates
.env.examplecomments to describe the llama.cpp profile as the current local stack and mark:4000LiteLLM values as legacy. - Adds
JUSTAI_FIDELITY_MODELto.env.example(and sets it in.env.llamacpp).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| .env.llamacpp | New local llama.cpp environment profile (8085) with model aliases and pipeline-stage env vars. |
| .env.example | Clarifies local llama.cpp vs legacy LiteLLM routing; documents stage model env vars including fidelity model. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| JUSTAI_INTENT_MODEL=openai/claude-opus-4-6 | ||
| JUSTAI_PLANNER_MODEL=openai/claude-opus-4-6 | ||
| JUSTAI_REVIEWER_MODEL=openai/claude-opus-4-6 | ||
| JUSTAI_FIDELITY_MODEL=openai/claude-opus-4-6 |
| JUSTAI_INTENT_MODEL=qwen3-vl-8b | ||
| JUSTAI_PLANNER_MODEL=qwen3-vl-8b | ||
| JUSTAI_REVIEWER_MODEL=qwen3-vl-8b | ||
| JUSTAI_FIDELITY_MODEL=qwen3-vl-8b |
| # Under this config-only profile the executor shares LITELLM_BASE_URL, so today | ||
| # it also hits 8085 (Qwen 8B) -- fine to smoke the pipeline, weak for real | ||
| # coding. To COMPLETE the hybrid, give the executor its own endpoint/model: |
| JUSTAI_REVIEWER_MODEL=qwen3-vl-8b | ||
| JUSTAI_FIDELITY_MODEL=qwen3-vl-8b | ||
| JUSTAI_ANALYSIS_MODEL=qwen3-vl-8b | ||
| JUSTAI_INTENT_BAR=90 # intent-fidelity "A" bar |
|
Desktop Codex exact-head review at
The exact-head suite is not clean (394 passed, 8 failed; focused profile set 29 passed, 1 failed), and there is no Python CI check. This profile is also correctly disclosed as smoke-only, not the requested hybrid coder path. Source merge, profile adoption, installation, and live acceptance remain separate gates. |
The .env loader keeps text after '=', so inline comments became part of the value (JUSTAI_INTENT_BAR='90 # ...' -> float() crash on import). Move both comments to their own lines. Config-only; #19 stays the config lineage. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VPortjb8U5oteKxppGuVDQ
What
JustAi pointed every pipeline stage at a LiteLLM proxy on
:4000that isn'trunning, with cloud model names (
claude-opus-4-6,gpt-5.3-codex). The livelocal stack is llama.cpp —
llama-server @ 127.0.0.1:8085(Qwen3-VL-8B,OpenAI-compatible). That mismatch is why the pipeline silently fell back to
heuristics ("backend down" was a wrong read on my part — it was never pointed at
the real server).
Adds a config-only local profile (no logic change):
.env.llamacpp—cp .env.llamacpp .envand the judging/planning stages(intent, planner, reviewer, intent-fidelity, trajectory analysis) run on 8085
with a clean model alias. Cloud stays override-able.
.env.example— annotated: llama.cpp is the current stack,:4000markedlegacy; documents the new
JUSTAI_FIDELITY_MODEL.Verified live on 8085
justai plan "Add a /health endpoint…"→ real 2-task plan (explore → add,R0/R1, real bash verify) — LLM-generated, not the heuristic template.
outcome (tasks "done" but wrong file/content) 0/F/missed,
source=llm.Hybrid — one open piece
You chose hybrid (local judge + stronger executor). Config-only, the
executor (
mini-swe-agent) sharesLITELLM_BASE_URL, so today it also hits 8085(Qwen 8B) — fine to smoke the pipeline, weak for real coding. Completing the
hybrid needs a small
agent_dispatchaddition (JUSTAI_EXECUTOR_BASE_URL+JUSTAI_MINI_MODEL) pointed at a stronger coder (a second llama-server, e.g.Qwen-Coder, or a cloud route). Happy to ship that next on your word.
Base
demo-build. Config-only; safe to merge.