AgentStack Kit

workflow-agent-loop

Plan → act → observe → tape → decide. A budgeted loop for shipping work with MCP tools in Cursor.

Files

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

  1. Plan — paste 01-mission-brief + 12-credit-budget
  2. Act — smallest tool; cheap routes for classify, strong for multi-file edits
  3. Observe — validate with ask-json.mjs; never invent success
  4. Tapesession-tape.mjs record every tool call
  5. Decide — success → stop; budget hit → postmortem

Hard stops

← Playbook · cheaperllm-attach · MCP tool picker · OneAIPass credits