workflow-agent-loop
Plan → act → observe → tape → decide. A budgeted loop for shipping work with MCP tools in Cursor.
Files
- README.md — full loop, stop conditions, domain extension
Setup
node tools/bin/env-gate.mjs CHEAPERLLM_API_KEY node tools/bin/mcp-probe.mjs https://mcp.cheaperllm.com/mcp --key CHEAPERLLM_API_KEY node tools/bin/mcp-probe.mjs https://mcp.anymodl.com/mcp --key ANYMODL_API_KEY node tools/bin/session-tape.mjs init --out ./tapes/run.jsonl
Loop steps
- Plan — paste 01-mission-brief + 12-credit-budget
- Act — smallest tool; cheap routes for classify, strong for multi-file edits
- Observe — validate with ask-json.mjs; never invent success
- Tape —
session-tape.mjs recordevery tool call - Decide — success → stop; budget hit → postmortem
Hard stops
- Missing env secrets
- Write outside allowed paths
- Spend exceeds mission brief cap
- Two consecutive schema validation failures
← Playbook · cheaperllm-attach · MCP tool picker · OneAIPass credits