Coding Loop

The loop is an agnostic coding cycle: free-text task, pinned inputs, exit conditions, and post-PASS actions.

Profiles

Defaults are per project under ~/.memgrep/loops/<name>/, copied from ~/.memgrep/loop.base/.

memgrep loop init launchpad --cwd ~/dev/project
memgrep loop use launchpad
memgrep loop status

Run

memgrep loop run --task "Ship the portal" --profile launchpad
# or via MCP: loop_run with optional profile

loop_run starts in the background. Telegram notifies on completion. Inspect with memgrep loop runs.

Upserts

memgrep loop input set --id outputDir --kind text --value examples/app --profile launchpad
memgrep loop exit set --id tests --kind text --value "All tests pass" --profile launchpad
memgrep loop action set --id github_pr --kind builtin --value github_pr --profile launchpad

Active profile: ~/.memgrep/loop.active or MEMGREP_LOOP_PROFILE.