-
Notifications
You must be signed in to change notification settings - Fork 0
CLI Tooling Suite
Loop Engineering provides a modular suite of local-first CLI utilities designed to audit, scaffold, monitor, and govern autonomous agent loops.
βββββββββββββββββ
β loop-init β Scaffolds contracts & starters
βββββββββ¬ββββββββ
β
βΌ
βββββββββββββββββ
β loop-cost β Estimates token spend & budget
βββββββββ¬ββββββββ
β
βΌ
βββββββββββββββββ
β loop-audit β Computes Loop Readiness Score (0β100)
βββββββββ¬ββββββββ
β
βΌ
βββββββββββββββββ
β loop-sync β Detects drift between STATE.md and LOOP.md
βββββββββ¬ββββββββ
β
βΌ
βββββββββββββββββ
β loop-context β Memory ledger & circuit breaker for long runs
βββββββββββββββββ
Evaluates the architectural hygiene of any repository containing agent loops. Checks for budget caps, path denylists, maker/checker split, and verification steps.
# Basic score evaluation
npx @cobusgreyling/loop-audit .
# Actionable improvement recommendations
npx @cobusgreyling/loop-audit . --suggest
# Generate markdown shield badge for README
npx @cobusgreyling/loop-audit . --badge
# JSON output for CI pipelines
npx @cobusgreyling/loop-audit . --jsonCreates a production-ready loop structure with pre-configured state files, budget limits, constraints, and tool integrations.
# Scaffold daily triage for Grok
npx @cobusgreyling/loop-init . --pattern daily-triage --tool grok
# Scaffold CI sweeper for Claude Code
npx @cobusgreyling/loop-init . --pattern ci-sweeper --tool claude
# Scaffold dependency sweeper for Opencode / local CLI
npx @cobusgreyling/loop-init . --pattern dependency-sweeper --tool opencodeCalculates projected token spend across iterations based on prompt length, model tier, and frequency.
# Estimate cost for current loop directory
npx @cobusgreyling/loop-cost
# Estimate with specific model pricing
npx @cobusgreyling/loop-cost --model claude-3-5-sonnet --runs-per-day 24Analyzes divergence between the declared operational contract (LOOP.md) and the dynamic execution record (STATE.md).
# Run drift check
npx @cobusgreyling/loop-sync .
# Strict mode: fail CI if drift exceeds threshold
npx @cobusgreyling/loop-sync . --strictManages persistent state across multi-turn agent runs, truncating obsolete history while preserving critical decision context. Acts as an emergency circuit breaker if iterations spiral.
# Check ledger integrity
npx @cobusgreyling/loop-context --check --ledger run.json
# Enforce max step limit (e.g. 15 iterations)
npx @cobusgreyling/loop-context --step 15 --max-steps 20Exposes loop patterns, skills, state files, and verification tools directly to MCP-compatible clients (e.g., Claude Code, Cursor, Grok, Windsurf).
# Launch local stdio MCP server
npx @cobusgreyling/loop-mcp-server
STOP PROMPTING / DESIGN THE LOOP / GET A SCORE
Loop Engineering Β· Autonomous Code Agent Tooling, Strict Eval Frameworks & Local-First CLI Utilities
Sololys Systems & Engineering Β· sololys/loop-engineering