agentleFS
simpletibrsimpletibr/simplicio-loop/.cursor/rules/simplicio-loop-operator-flow.md

simplicio-loop / rules

Cursor rule2 starsChanged 47 days agoMITView on GitHub

Applies to: Claude Code, Codex, Grok, Cursor, VS Code / Copilot, Antigravity, Kiro, Hermes / Simplicio Agent, OpenCode, Gemini, Aider, and any host that loads Simplicio skills. Orca is not default — enable only when the client requests it (docs/CLIENT_INTEGRATIONS.md). Installers copy this file into each host's always-on surface via python3 scripts/host_rule_sync.py --global. 0. /simplicio-loop is the entrypoint. There is no Runtime/MCP backend in this stack. - Start the loop directly: /simplicio-loop <body of work>. - Bound operators (required): simplicio-mapper…

The file

We split this simplicio-loop-operator-flow.md into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Start the loop directly: /simplicio-loop <body of work>.

    line 14
  2. Very specific:

    Metrics mandatory: every run writes simplicio.execution-report/v1 (per task/issue + consolidated: speed, latency, CPU/RAM when MEASURED, …

    line 17
  3. Distinctive:

    Economy-parallel env: before autonomous work (fastest tokens + parallel):

    line 22
  4. Very specific:

    Parallelism: only with lease/claim + isolation + reducer — no double-writers without coordination.

    line 62
  5. Distinctive:

    Delete diretamente o obsoleto.

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
simplicio-loop-operator-flow.md

Simplicio loop — mandatory operator flow (all hosts)

Applies to: Claude Code, Codex, Grok, Cursor, VS Code / Copilot, Antigravity, Kiro, Hermes / Simplicio Agent, OpenCode, Gemini, Aider, and any host that loads Simplicio skills. Orca is not default — enable only when the client requests it (docs/CLIENT_INTEGRATIONS.md).

Installers copy this file into each host's always-on surface via python3 scripts/host_rule_sync.py --global.

MUST

  1. /simplicio-loop is the entrypoint. There is no Runtime/MCP backend in this stack.
    • Start the loop directly: /simplicio-loop <body of work>.
    • Bound operators (required): simplicio-mapper (survey) + simplicio-dev-cli (mutate). They are the whole operator stack.
    • Metrics mandatory: every run writes simplicio.execution-report/v1 (per task/issue + consolidated: speed, latency, CPU/RAM when MEASURED, tokens in/out). CLI: python -m simplicio_loop.execution_report …. Never invent numbers.
    • ADR: loop docs/adr/0009, 0010.
  2. Economy-parallel env before autonomous work (fastest tokens + parallel):
    simplicio-loop economy apply --json   # or: source ~/.simplicio-loop/economy-parallel-env.sh
    • SIMPLICIO_LOOP=1 · SIMPLICIO_LOOP_STRICT=1
    • SIMPLICIO_EXECUTION_PROFILE=standalone (the only execution profile)
    • SIMPLICIO_LOOP_AUTO_FAN_OUT=1 (parallel worktrees on batch)
    • SIMPLICIO_LOOP_OPERATOR_WORKERS / SIMPLICIO_PRISM_SLOTS / SIMPLICIO_ASYNC_IO_MAX_CONCURRENCY (CPU-bounded)
    • SIMPLICIO_OPERATOR_ALWAYS_LATEST=1
    • Safety: mutation authority + planning receipt + forbid hand-edit
    • Opt out of economy defaults: SIMPLICIO_ECONOMY_PARALLEL=0
  3. Preflight (blocking): simplicio-loop preflight --strict --json
    Core operators = mapper + dev-cli. Terminal-first: prefer real shell/CLI commands (simplicio-orient) over host bulk Read/Grep/cat.
  4. Survey: simplicio-mapper (scan / inspect / handoff) — not ad-hoc full-tree LLM walks.
  5. Hot path: simplicio-loop "<task>" [--verify "<tests>"] (short for simplicio-loop turbo --repo . --task "<task>"). Mapper surveys and the command prints a needs_plan request holding the text of the files it names; no key, no provider. You are the model: run the printed apply command once with your JSON plan as its heredoc body (simplicio-loop turbo --repo . --apply - --verify "<tests>" <<'PLAN', the plan, PLAN; Dev CLI applies it and runs --verify), and on failed fix the plan once from the reported reason. Exactly two commands: do not explore, list or read files, and do not run the tests yourself. Queue goals: the same two commands per item, in order.
  6. Mutate: through simplicio-loop turbo --apply - under STRICT (Dev CLI makes every edit).
    Host Write / Edit / StrReplace / ApplyPatch are forbidden as the primary mutation path when STRICT is on (hooks/action_gate.py PreToolUse on Claude/Cursor; instruction law on self-paced hosts).
  7. GitHub = default coordination SoT for Issues/PRs when the remote is GitHub.
  8. Drain: claim → real ACs → PR to main with Parte de #N → merge. Prefer Prism waves (python3 scripts/arm_drain_prism.py --repo . --slots 0 --batch-size N --json; slots 0 = machine physical max; batch default/min 10, larger explicit OK). A closing word in a PR closes the issue on merge, even a quoted one: the issue is closed by hand, after a comment with the evidence.
  9. Evidence-gated exit: MEASURED tags; no theater AC stubs; no false completion.
  10. Parallelism only with lease/claim + isolation + reducer — no double-writers without coordination. 1–3 tasks = direct parallelism; >3 = Prism. Layers: Prism · operator workers · asyncio I/O · writes serialized. See docs/LLM_MAX_SPEED_ORIENTATION.md.
  11. Integrations (Orca, Linear, …) only if the client requested them (SIMPLICIO_LOOP_CLIENT_INTEGRATIONS or .simplicio-loop/client-integrations.json).
  12. Max-speed orientation (always): act > narrate; Mapper→dev-cli hot path; smallest gate that proves the AC; no full-repo residual thrash; no 3-reviewer panels on metadata-only diffs; end each message with DONE | NEXT | BLOCKED. Canonical: docs/LLM_MAX_SPEED_ORIENTATION.md (re-feed block in SKILL.md).

MUST NOT

  • Mass-close issues with hardcoded status=implemented stubs
  • Invent open=0 without live issue re-query
  • Reinstall operators every turn (TTL pin + operator_check maybe-upgrade)
  • Hand-edit under STRICT to "go faster"
  • Auto-enable Orca or other host side-channels
  • Force physical Prism thrash above machine auto (--slots 0 / economy recommend)

Loop drive by host

HostDriveHand-edit gate
Claude CodeStop + PreToolUseaction_gate under STRICT
Cursorstop + afterAgentResponsehooks + this rule
Codex / Grok / VS Code / Antigravity / Kiro / Hermesself-pacedthis rule + env STRICT as hard law
Simplicio Agentnative ticknative + this rule

Self-paced: re-read .simplicio-loop/orchestrator/loop/scratchpad.md every turn; triage → decide → operate → verify → journal.

Invoke

/simplicio-loop <body of work>
python3 scripts/arm_drain_prism.py --repo . --slots 4 --json

Protocol: .claude/skills/simplicio-loop/SKILL.md
Contract: docs/MULTI_LLM_CONTRACT.md

<!-- simplicio-global-llm-architecture-rules:start -->

Regras arquiteturais globais (obrigatórias)

  • Delete diretamente o obsoleto; não preserve compatibilidade retroativa, não crie migrações e não deixe fallbacks.
  • Escolha a solução mais simples para a necessidade atual, sem abstrações preventivas ou configuração desnecessária.
  • Faça o mínimo end-to-end funcionar primeiro e evolua por camadas longas, sem desmontar o que funciona por complexidade inacabada.
  • Mantenha modularidade e separação de responsabilidades.
  • Prefira bibliotecas maduras e mantidas; reescreva do zero apenas com motivo técnico explícito.
  • Inspecione dependências existentes antes de adicionar pacotes ou reimplementar.
  • Tome decisões para o longo prazo; não deixe soluções temporárias.
  • Reutilize padrões validados por produtos maduros; não reinvente a roda.
<!-- simplicio-global-llm-architecture-rules:end -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.