main-rule-3-code-interaction-and-rule-interaction-rules

main-rule-3-code-interaction-and-rule-interaction-rules is a cursor rule for Cursor from Intrafere/MOTO-Autonomous-ASI. It costs 4,653 tokens per session, scanned A, original, MIT.

A set of rules governing how code changes, rule updates, workflow modes, and long-running proof or research processes must interact.

In plain words
What is it for?
It is for guiding safe code maintenance, keeping written rules aligned with implementation, and preserving deliberate long-running loops and user-controlled stopping behavior.
Why use it?
It prevents code edits from silently changing workflow behavior, leaving obsolete code behind, or stopping an intentionally continuing process without permission.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for guiding safe code maintenance, keeping written rules aligned with implementation, and preserving deliberate long-running loops and user-controlled stopping behavior.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/intrafere/moto-autonomous-asi/main-rule-3-code-interaction-and-rule-interaction-rules
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Intrafere/MOTO-Autonomous-ASI

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for main-rule-3-code-interaction-and-rule-interaction-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/intrafere/moto-autonomous-asi/main-rule-3-code-interaction-and-rule-interaction-rules/github.svg)](https://agentmods.dev/rules/intrafere/moto-autonomous-asi/main-rule-3-code-interaction-and-rule-interaction-rules)
Your own site
<a href="https://agentmods.dev/rules/intrafere/moto-autonomous-asi/main-rule-3-code-interaction-and-rule-interaction-rules"><img src="https://agentmods.dev/badge/rules/intrafere/moto-autonomous-asi/main-rule-3-code-interaction-and-rule-interaction-rules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for main-rule-3-code-interaction-and-rule-interaction-rules

Your own site · 80×15
<a href="https://agentmods.dev/rules/intrafere/moto-autonomous-asi/main-rule-3-code-interaction-and-rule-interaction-rules"><img src="https://agentmods.dev/badge/rules/intrafere/moto-autonomous-asi/main-rule-3-code-interaction-and-rule-interaction-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,653 This file is loaded in full into every session.
When invoked 4,653 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.04653 $0.04653
Opus 5 $0.02327 $0.02327
Sonnet 5 $0.00931 $0.00931
Haiku 4.5 $0.00465 $0.00465

Measured 6d ago against content hash 97d2cb7127db, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

main-rule-3-code-interaction-and-rule-interaction-rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/main-rule-3-code-interaction-and-rule-interaction-rules.mdc · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code and Rule Interaction Rules

1.) Never introduce a new hidden wait/halt, automatic stop, or loop-disabling cap unless specifically directed by the user or already defined by these rules as an explicit safety valve/user-configurable checkpoint. RALPH/MOTO is designed to run until goal completion or until the operator presses stop; infinite loops are intentional and are probabilistically steered by feedback mechanics, not disabled by agent edits.

2.) Always remove and cleanup old code, do not comment out code or leave broken/unused code in this program unless specifically directed by the user.

3.) Always obey the rules in regards to how the code should work. The only time you should deviate from the rules is if there is a fix required in the code or the user is requesting an edit that should change the code and any accompanying rules. The rules should always be brought back in line with the code however the rules should guide the code development and navigation.

4.) The rule(s) should always be updated if any code changes reflect on the rule(s).

5.) Any rule addition(s) and rule content addition(s) should be clear, very concise, very high level overview only. The rules are extensive and we must conserve token-count to maintain efficient direct injection usage.

6.) For config/preset files with repeated literal values, never patch by replacing a shared literal alone. Anchor edits to the exact object/block being changed and verify the diff only touches the intended target.

6b.) Production prompt-engineering wording must not be edited, rewritten, shortened, generalized, reformatted, or “improved” without explicit user consent and direction for that prompt-language change. Permission to change adjacent code, schemas, models, validators, workflows, documentation, or rules is not implicit permission to alter prompts. When explicitly authorized, change only the requested minimum production wording and keep rule files limited to high-level, non-verbatim invariants.

7.) Any REST shape, auth contract, /api/features capability, or web-consumed WebSocket contract change must update code, the relevant rule(s), and api_contract_version in /api/features in the same approved merge. The live backend's GET /openapi.json is the machine-readable REST schema contract.

7b.) SyntheticLib4 / unified proof-history search rule updates should stay high-level until the specific build phase lands. Exact production prompt schemas or wording may change only under rule 6b; planning documents must not duplicate production prompt text and alone do not require an API contract bump.

7c.) Desktop launcher frontend installs must follow the committed frontend/package-lock.json: use npm ci for fresh installs, non-destructive locked reconciliation for existing node_modules, read-only high/critical npm audit warnings, and never npm audit fix / --force on user machines. Dependency remediation belongs in the tested maintainer/CI release flow with an updated lockfile; if this invariant is broken, restore it before continuing launcher/updater work.

7d.) Active/archive proof list, detail, and certificate REST records expose consistently normalized stable run_id, canonical user_prompt, independent novelty judgment, silent duplicate provenance, and versioned canonical artifact identity. Private-history duplication never enters the novelty prompt or suppresses current-run storage/context; prompt-novel external matches use the searchable duplicate_novel overlay and remain excluded from highest-priority current-run injection. SyntheticLib4 integrity hashes remain distinct from MOTO's canonical search hashes.

7e.) Ordinary research, brainstorming, validation, and writing must pursue the user's exact objective with domain- and claim-appropriate rigor. Mathematics and formal proof remain first-class when relevant, but ordinary non-mathematical work must not be rejected merely for lacking mathematical form; explicit proof, Rigor & Proofs, and LeanOJ paths remain mathematical.

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +1 lines · +273 tokens per session 97d2cb7127db
  2. 10d ago First seen · 76 lines · 4,380 tokens per session scan A 6b3794ffa8bf

Subscribe to this mod's changes

main-rule-3-code-interaction-and-rule-interaction-rules is a cursor rule published in the GitHub repository Intrafere/MOTO-Autonomous-ASI (83 stars, last pushed 6d ago), licensed MIT. It adds 4,653 tokens to every session, about $0.0233 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.