Recipes

LoopX durable goal control plane for long-running coding agents

From README links · today

Software & DevOpsWork & Operations

Keep agent goals, decisions, and verified results durable across sessions.

What they did

They installed LoopX once (Python 3.11+, Node 22.22.3+), ran `loopx workflow-skills --install`, and restarted their agent host so the `$loopx` / `/loopx` entry point was available. Then, instead of hand-writing a multi-step plan, they sent a single natural-language goal against their own repo: speed up the project's slowest workflow, compare approaches, and verify the gains. LoopX turned that into a visible plan with explicit decision points that needed a human, and kept the goal, work log, decisions, and verification artifacts durable in local-first state (SQLite) so a later session could resume without re-explaining context. They paired it with codebase-memory-mcp so the agent could query structural memory of the repo rather than re-reading files each wake, and pointed the runtime at a self-hosted vLLM endpoint for the model calls, keeping inference local alongside the local-first control-plane state.

How it went

The workflow produced a plan-first run with human decision gates and a verification step rather than a single unverified patch, and the durable state meant a follow-up session picked up mid-task. Polish level is moderate: the control plane is real and documented, but the speed-up result depends heavily on which workflow you target and how you define the gain. Progressive context delivery is claimed to cut control-plane bytes meaningfully, which matters for long runs but is not a substitute for measuring your own task.

Worth knowing

Requires both Python 3.11+ and Node 22.22.3+ (24 LTS recommended), so environment setup is non-trivial. The README is marketing-heavy with benchmark claims from the project's own blog; treat percentages as unverified until reproduced. Harness-neutrality means host setup differs per runtime (Claude Code uses `/loopx`), and the vLLM endpoint config is not spelled out in the excerpt. Local-first state is a strength but also means backups and multi-machine sync are your problem.

Wiring

Order: (1) install LoopX via pip and run `loopx workflow-skills --install`; (2) restart the agent host and open the project so the `$loopx` or `/loopx` command is registered; (3) start codebase-memory-mcp as an MCP server and let it index the repo so structural queries are available to the agent; (4) configure the runtime to call a self-hosted vLLM OpenAI-compatible endpoint (base URL plus model name) instead of a hosted provider; (5) issue the goal as a single natural-language prompt. LoopX owns the durable goal/decision/verification state in local SQLite; codebase-memory-mcp supplies repo structure on demand; vLLM serves inference. Keep the vLLM base URL and model id in environment variables, and confirm the MCP server is reachable before the first `$loopx` call, since the plan step will try to use it.

Try it yourself

Install LoopX in this repo and set up the workflow skills. Then take this goal: identify the slowest end-to-end workflow in this project (build, test, or a hot code path), propose two or three concrete optimization approaches with tradeoffs, and stop for my decision before implementing. After I pick one, implement it, then verify the gain with a before/after measurement I can re-run. Use codebase-memory-mcp to index the repo structure first so you are not re-reading files blindly, and keep the goal, decisions, and verification results durable so a new session can resume without me re-explaining.

Source

Tools in this stack

Run this stack

Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.

npx runchr install runchr/stack-codebase-memory-mcp-and-loopx-and-vllm
No CLI?curl -s https://api.runchr.com/api/recipes/runchr/stack-codebase-memory-mcp-and-loopx-and-vllm/manifest

This stack has no prompt yet. You get the tools and the wiring, not the prompt.

The manifest is also at api.runchr.com/api/recipes/runchr/stack-codebase-memory-mcp-and-loopx-and-vllm/manifest.