Skip to content

Polish desktop loop: premium review gate and MCP bring-up - #12

Open
jmjava wants to merge 1 commit into
mainfrom
cursor/polish-review-loop-937a
Open

Polish desktop loop: premium review gate and MCP bring-up#12
jmjava wants to merge 1 commit into
mainfrom
cursor/polish-review-loop-937a

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Polish the desktop product loop before live GPU measurement. Local still only proposes. The premium agent is the apply gate (accept / rewrite / reject).

Bring-up

  • Cursor, Copilot, and Claude MCP configs now start scripts/run_mcp.sh (loads .env, no blank ${env:NAME} clobber, clear miss if .venv is missing).
  • OllamaSettings.from_env and getenv_nonempty treat empty interpolations as unset (also avoids int("") on OLLAMA_NUM_CTX).
  • Server _load_dotenv uses the same merge_dotenv helper as the safety checker.

Review loop (no GPU required)

Client instructions now match the eval apply gate:

  • Cursor: .cursor/rules/local-coding-slm.mdc
  • Claude: CLAUDE.md
  • Copilot: .github/copilot-instructions.md

They say: attach {path, content} files, fast then one format/structure repair then strong, fences not diffs, local_review is notes only, apply the full set or none, ERROR: means Ollama/tunnel is down, Cloud Agent without local_* tools does the work itself.

Generation system prompts prefer fenced files. local_review prompt says notes cannot approve.

Local checks: 110 tests passed, plus fixture eval, scripted orchestration, and stub --orchestrate.

Not in this PR

Open in Web Open in Cursor 

Point Cursor/Copilot/Claude MCP at run_mcp.sh so empty interpolations
cannot hide .env. Treat blank OLLAMA_* as unset. Spell out accept /
rewrite / reject in client instructions, tool docs, and system prompts
before live GPU use. Local still does not apply.

Co-authored-by: jmjava <jmjava@gmail.com>
@jmjava
jmjava marked this pull request as ready for review September 7, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants