rexyMCP
Let Claude be the Architect. Let a local, or any openAI API compatable
model do the execution.
rexyMCP is named after Rexy, my cattle dog. Rexy lives to herd — to keep the
flock moving in one direction, to circle back the stragglers, to never let the
work wander off. rexyMCP herds your local LLM the same way. Claude Code is
the Architect: it decomposes your idea into a product plan with milestones and
spec'd phases, then reviews every result. A local model is the Executor: it
writes the code, one bounded phase at a time, on an OpenAI-compatible endpoint
(vLLM, LM Studio, Ollama). And in between — keeping the Executor on task,
in-bounds, and honest, turn after turn — runs rexyMCP: parsing its messy tool
calls, catching its loops before they spiral out of control, feeding compiler
errors straight back into the next turn, and refusing to let the LLM touch anything
outside the repo. The Architect designs; the Executor codes; rexyMCP keeps the
herd together and moving toward the goal.
Your Architect runs in Claude Code or any harness that supports MCP and skills.
rexyMCP ships skills and MCP tools so the workflow is identical regardless of which
harness you use.
News
A bunch of recent change that need to be called out because they change some core mechanics:
- Governor repetition nudges, read-only cycle detection, async
continue_phase & process-group hygiene (M51).
- Batching + recoverable repeat nudges: the embedded executor contract now
teaches batching repeated shell work (
xargs -P, for loops), and a shared
bash output-plumbing / output-timing normalizer (| tail, | head,
| wc -l, 2>&1, > /tmp/x && cat /tmp/x, simple quotes, wall-clock
durations) powers a recoverable repeat nudge
([governor] repeat_nudge_threshold, default 3, 0 disables) ahead of
IdenticalToolCallRepetition, emitting SessionEvent::NudgeInjected and
recording nudges_injected / nudges_heeded in PhaseRun telemetry.
- Plumbing-normalized
ReadOnlyCycle detector: catches cyclic read-only /
bash loops (such as alternating grep … | wc -l and grep … | head -2)
without collapsing distinct read_file line ranges or search patterns
(read_only_cycle_window = 16, read_only_cycle_distinct_max = 4; nudges
once, then terminates if unchanged; replayed by rexymcp calibrate-governor
as read_only_cycle_min_distinct). LowNoveltyStall stays advisory by
default.
- Per-task no-edit cap & opt-in soft checkpoint:
[governor] task_no_edit_threshold (default 40, 0 disables) bounds edit-free turns
while a tracked task stays active (TaskNoEditStall, ignoring redundant
re-activations), and [budget] checkpoint_turns (default 0, opt-in)
pauses cleanly at a turn checkpoint as a resumable BudgetExceeded
preserving partial work on disk and recommending continue_phase.
- Async
continue_phase & process-group cleanup: continue_phase now
spawns asynchronously via JobRegistry and returns { run_id } (polled
with get_run_status, stoppable via stop_phase / .rexymcp/stop),
matching execute_phase. On Unix, bash tool commands and final-gate
commands run in their own process group behind an RAII guard so timeouts and
cancellations signal -pgid and never orphan test children.
- The verifier-persistence detector stops killing wiring sweeps (M47).
VerifierFailurePersistent used to fire on N consecutive post-edit verifies
with a non-decreasing error count — a notion of progress that a legitimate
sweep (add a field or variant, then fix one consumer file per turn) can never
satisfy, because the tree cannot compile until the last site lands. A replay
of 436 real session logs found 7 of its 8 fires were exactly that, all of
them completing on the very next dispatch. The streak is now keyed on
re-editing a file already in the streak while the count does not fall;
first-touching a new file restarts it. Same threshold, no new knob, and the
briefing now names the file being hit. rexymcp calibrate-governor reports
the new verifier_refile_run beside the old verifier_persistence_run so
you can see the two rules disagree on your own corpus.
- Server bookkeeping hygiene, finished (M42 follow-through). The
server-authored completion entry now heads itself
YYYY-MM-DD HH:MM (UTC)
like every other Update Log entry, instead of a raw ts=<epoch-ms> nobody
could place in time. The stamp comes from the same formatter that grounds
the executor's system-prompt date, so the two writers can't drift apart.
- Token-first accounting (M46). Dollar cost accounting is gone; token
counts are the accounting currency. The dashboard's Budget panel and the
rexymcp costs CLI render a token ledger — Architect / Executor /
Cache across Session / Milestone / Project — where the Cache row is