agentleFS
Echo-ScionEcho-Scion/portable-brainvibing/AGENTS.md

portable-brainvibing

AGENTS.md2 starsChanged 5 days agoMITView on GitHub

These rules define non-negotiable operational boundaries and execution invariants for all turns:

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

22 rules. About 0 are common, 7 are distinctive, and 15 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 15

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Circuit Breaker: If a specific tool call or test fails 3 times consecutively, STOP calling tools.

    line 11
  2. Very specific:

    Anti-Hardcode Path: Do not write absolute paths or file:// schemes into source files.

    line 13
  3. Distinctive:

    AST Expansion Protocol: Before editing a function found through search, inspect its implementation block with an available file-reading …

    line 16
  4. Distinctive:

    Anti-Affirmation (Triad Threat Probe): When reviewing an architectural proposal, treat it as flawed.

    line 17
  5. Distinctive:

    Cross-Domain Synthesis: If a prompt triggers multiple conflicting skills, explicitly synthesize a bridging pattern in your thought process …

    line 18
  6. Very specific:

    Rule Precedence & Conflict Arbitration: When rules conflict: security-guardrails.md > Root Instruction (AGENTS.md) > …

    line 19
  7. Very specific:

    IDE-Native Interaction & Tools: Use native interactive tools (ask_question, or recommend /grill-me) instead of open-ended conversational …

    line 20
  8. Very specific:

    Vision Invariant Lock (context/VISION.md): If context/VISION.md exists, it is the immutable North Star of the application.

    line 22
  9. Very specific:

    Code Authenticity: Do not add empty catch blocks (catch (e) {}), simulated latency (setTimeout/sleep), or synthetic mock APIs to production …

    line 26
  10. Very specific:

    If .orion/working/ACTIVE_TASK.md exists, read it FIRST and execute ONLY that single atomic Bento task before running verification gate …

    line 34
  11. Very specific:

    If .orion/working/context.json exists, read it to load active_bento_task, recovery_instruction, and drift_warnings.

    line 35
  12. Distinctive:

    Code in English, Reply in User's Language: Write all code identifiers, comments, commit messages, and internal technical tags in English.

    line 41
  13. Very specific:

    Mandatory Orion Fetch (Anti-Amnesia): If you need information about project architecture, state, or past decisions, and .orion/ exists, …

    line 47
  14. Very specific:

    Cloud Handoff Resolution: When command output signals ⚡ PENDING CLOUD HANDOFFS, fulfill pending task, then execute python …

    line 49
  15. Distinctive:

    DO NOT rely on internal LLM memory for how to execute these tasks.

    line 57
  16. Very specific:

    CRITICAL DIRECTIVE: If user prompt matches a trigger below, your VERY FIRST action MUST be to execute read_file on target path IMMEDIATELY:

    line 58
  17. Very specific:

    Task Complete / Feature Done: If a manual process was executed >3 times or same error fixed twice, trigger …

    line 149
  18. Very specific:

    Session Offload Prompting: If task queue is empty AND you completed a major milestone, proactively add: *"Milestone reached.

    line 151
  19. Very specific:

    Session End: If user indicates they are done, execute .agents/skills/session-offload/SKILL.md.

    line 152
  20. Distinctive:

    Run scripts when condition is met.

    line 156
  21. Very specific:

    Every implementation plan (implementation_plan.md) MUST include in its top header:

    line 164
  22. Very specific:

    Path Portability (All Operating Systems): Always format file paths with forward slashes (/) in tool calls, imports, and markdown links.

    line 190

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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
AGENTS.md

Workspace Rules & Mandates: {{PROJECT_NAME}}

<!-- START FOUNDATION MANDATES (Version: 0.1.1 - English First & Built-In Lessword) -->

CRITICAL HABITAT NOTICE: Master BIOS & Active Router. Defines operational constraints and Auto-Pilot knowledge routing for {{PROJECT_NAME}}.

1. CORE GUARDRAILS (Always Active)

These rules define non-negotiable operational boundaries and execution invariants for all turns:

  • Evidence Mandate: Require Exit Code 0, stdout/stderr assertions, test counts, and state changes. Skipped checks or masked exceptions are failures. Functional test success is necessary but INSUFFICIENT; DNA architectural audit (python .agents/scripts/orion.py dna audit) must pass with 0 violations and score >= 90 before declaring task completion on application code features and structural refactors (verify --fast for lightweight config and documentation).
  • Circuit Breaker: If a specific tool call or test fails 3 times consecutively, STOP calling tools. Output error analysis and wait for human intervention.
  • Native IDE Edit First & Scratch Power-Tool Policy: The Agent MUST always use native file-editing tools (edit_file, write_file) as the primary default. Do not modify source files with raw shell string replacement (python -c, sed, awk). Temporary scripts in .scratch/ are strictly for read-only diagnostics, complex programmatic/regex transformations, or unblocked fallbacks if a native tool encounters environment errors.
  • Anti-Hardcode Path: Do not write absolute paths or file:// schemes into source files. Use relative paths or [[wikilinks]]. Use file:// links only in chat responses.
  • Code Skeleton First (Zero Contiguous Paging): The Agent MUST NEVER read files in contiguous sequential chunks (e.g., 1–60, 61–120). Files <=800 lines may be read directly with read_file. Before reading any file >800 lines: (1) Run python .agents/scripts/orion.py scan map <target> for exact symbol spans; (2) Call read_file with exact StartLine/EndLine parameters.
  • Direct Action Mandate (Antigravity Progressive Disclosure): Skills are concise procedural runbooks. When loading a skill via JIT routing, immediately execute its core instructions. Do NOT recursively load secondary references or canons upfront; reference files are strictly on-demand for specific edge cases.
  • AST Expansion Protocol: Before editing a function found through search, inspect its implementation block with an available file-reading tool. Do not infer logic from a skeleton.
  • Anti-Affirmation (Triad Threat Probe): When reviewing an architectural proposal, treat it as flawed. Find up to 3 concrete gaps across the Triad (Boundary / Malformed Input, Resource / Concurrency, Silent Failure / Masked Fallback) and propose solutions. If 0 gaps exist, proceed.
  • Cross-Domain Synthesis: If a prompt triggers multiple conflicting skills, explicitly synthesize a bridging pattern in your thought process before executing.
  • Rule Precedence & Conflict Arbitration: When rules conflict: security-guardrails.md > Root Instruction (AGENTS.md) > tier-execution-protocol.md > Domain rules > Skills/Workflows. If conflict remains unresolved: arbitrate internally before writing code (choose least privilege + minimal side effects).
  • IDE-Native Interaction & Tools: Use native interactive tools (ask_question, or recommend /grill-me) instead of open-ended conversational stalls. For plans and persistent reports, emit Markdown Artifacts via write_file with ArtifactMetadata to avoid workspace root clutter. Use native schedule for autonomous timed checks.
  • Surgical Diff Mandate: Touch only what you must. NEVER alter adjacent code, comments, or formatting unrelated to the prompt. Match existing project style. Remove only imports/variables orphaned by your own changes. Never delete pre-existing dead code unless explicitly requested. Every changed line must trace directly to user intent.
  • Vision Invariant Lock (context/VISION.md): If context/VISION.md exists, it is the immutable North Star of the application. NEVER modify context/VISION.md without explicit human instruction, and NEVER propose or implement "improvements", refactors, or features that contradict its Core Essence, Invariants, or Anti-Vision.
  • Universal Agnostic Invariant: .agents is strictly multi-platform, multi-project, multi-OS (Windows, macOS, Linux), and multi-IDE (Antigravity, Cursor, Claude Code, VS Code, Android Studio). Guarantees 100% Zero-Pip Floor Sovereignty on Python 3.10+ stdlib with opt-in native accelerators (Rust, Ollama, Bun). NEVER assume a single OS (no bash-only syntax or unescaped && on Windows PowerShell), never hardcode environment assumptions, and never introduce mandatory external dependencies.
  • Simplicity First (YAGNI): Minimum code to solve the problem. Zero speculative abstractions, single-use helpers, unrequested flexibility, or error handling for impossible scenarios. If 50 lines suffice, 200 lines is a failure.
  • Ambiguity Halt & Zero-Debt Decision Mandate: Plans MUST tag preferred options with (Recommended). On plan approval ("Proceed"), execute the (Recommended) path to 100% completion (Exit Code 0 + verified tests) without stalling, and record the choice in .agents/DECISIONS.md (orion decisions record). Ambiguity Halt (asking via ask_question) is strictly for 50/50 forks with no recommendation. Never pick silently.
  • Code Authenticity: Do not add empty catch blocks (catch (e) {}), simulated latency (setTimeout/sleep), or synthetic mock APIs to production code. Annotate non-obvious intentional bypasses, conditional early exits, or OS workarounds with INVARIANT [<TAG>]: <WHY> (# or //) so static auditors preserve them.
  • Domain Truth & Authenticity: Deep domain mandates for copywriting and UI visual craft are maintained in canonical references: writing follows .agents/rules/prose-authenticity.md; UI layout follows .agents/skills/ui-finish/references/craft_floor.md.

1.5. SESSION BOOTSTRAP (Tier-Aware)

Sequence adapts to task complexity; do not run full sequence for simple tasks: 0. Universal Agnostic Grounding (Cold-Start Anchor): Internalize from Turn 1 that .agents is multi-platform, multi-project, multi-OS, and universal agnostic. Ground all code generation in active OS environment (PowerShell vs POSIX) and 4-Pillar sovereign architecture.

  1. Perform Internal Routing Analysis against JIT table in §4. If a match is found, load target file with read_file in first turn.
  2. If .orion/working/ACTIVE_TASK.md exists, read it FIRST and execute ONLY that single atomic Bento task before running verification gate (python .agents/scripts/orion.py bento next --verify).
  3. If .orion/working/context.json exists, read it to load active_bento_task, recovery_instruction, and drift_warnings. If .orion/working/handoff.md exists and resuming a session, inspect Resume Point.
  4. For PREMIUM tasks only: Execute python .agents/scripts/orion.py brain sync "<intent> <synonym1> <synonym2>" to inject dynamic knowledge graph context. Default Python execution: Use python (fallback to python3).

2. LANGUAGE ALIGNMENT & LESSWORD PROTOCOL (BUILT-IN / ALWAYS ACTIVE)

  • Code in English, Reply in User's Language: Write all code identifiers, comments, commit messages, and internal technical tags in English. Write user-facing explanations and plans in the same language as the user's prompt (unless explicitly asked otherwise).
  • Lessword Mode (Always Active by Default): Respond terse like a pragmatic staff engineer. Technical substance stays; conversational fluff dies. Plain verbs (use, fix, check) beat bureaucratic jargon. ASD-STE100 (<=20 words/sentence). Drop filler, pleasantries, and hedging. Keep exact code blocks, diffs, exact error messages, file links, and verification commands. Strictly forbids lossy summarization of operational invariants. Reverts only if user commands "normal mode" or "stop lessword".
  • Execution Output Contract: On tool/execution turns that mutate code or run verification gates, include a concise EVIDENCE line (exact command + exit code + test/assertion count) and RECOMMENDED TIER only when handing off a multi-step plan or escalating tiers. Omit boilerplate footers on pure Q&A or conversational turns.

3. INLINE MICRO-RULES (Always Enforced)

  • Mandatory Orion Fetch (Anti-Amnesia): If you need information about project architecture, state, or past decisions, and .orion/ exists, execute python .agents/scripts/orion.py brain sync "<keywords>" to query knowledge graph. Fallback to rtk grep "<keywords>" via terminal if brain sync fails or .orion/ doesn't exist.
  • Ingest Triplet Duty: Handled on-demand via /brain-graph. During routine turns, brain ingest extracts symbols and FTS5 automatically without blocking turn on manual JSON drafting.
  • Cloud Handoff Resolution: When command output signals ⚡ PENDING CLOUD HANDOFFS, fulfill pending task, then execute python .agents/scripts/orion.py brain handoff clear to clear queue.

3.5. INTERNAL ROUTING ANALYSIS (ANTI-TUNNEL VISION)

Before answering ANY user prompt, perform routing analysis internally. If a JIT Match is found based on table below, call read_file on Target in exact same turn before continuing, UNLESS target file has already been read and remains active in current session context (JIT Deduplication). DO NOT output any <route> XML blocks to chat.

4. JIT (JUST-IN-TIME) KNOWLEDGE ROUTING (THE AUTO-PILOT)

DO NOT rely on internal LLM memory for how to execute these tasks. CRITICAL DIRECTIVE: If user prompt matches a trigger below, your VERY FIRST action MUST be to execute read_file on target path IMMEDIATELY:

If User Prompt Relates To...Immediately Load (read_file)
Foundation Rules, Rules Catalog, Rule Index, Policy Lookup, /rules.agents/rules/RULES_INDEX.md
Model Tiers, Tier Routing, Bento Box Sizing, Task Slicing, Budget/Standard/Premium Execution.agents/rules/tier-execution-protocol.md
Security Guardrails, Absolute Constraints, Exploit Prevention, Injection Defense.agents/rules/security-guardrails.md & .agents/skills/integrity-sentinel/SKILL.md
Git Workflows, Branching, Worktrees, Commit Hygiene, PR Reviews, Dual-Loop Git.agents/rules/development-operations.md & .agents/skills/code-review/SKILL.md
Prompting Patterns, Sub-Agent Prompting, Anti-Drift Conditioning, Few-Shot Prompts.agents/rules/prompting-patterns.md & .agents/skills/worker-delegate/SKILL.md
RTK Rules, Token Proxy, rtk gain, Command Rewriting, Token Optimization.agents/rules/antigravity-rtk-rules.md & .agents/skills/cost-optimizer/SKILL.md
Performance, Latency, Speed, Optimization, Algorithmic Complexity.agents/rules/performance-optimization.md & .agents/skills/cost-optimizer/SKILL.md
Contradiction Resolution, Colliding Rules, Ambiguous Requirements, Rule Arbitration.agents/rules/contradiction-protocol.md
Memory Hygiene, GraphRAG Eviction, Episodic Memory GC, Context Cleanup.agents/rules/memory-hygiene.md & .agents/skills/session-offload/SKILL.md
Formal State Machine, FSM Crash Recovery, State Resumption, Task Interruption.agents/rules/fsm-protocol.md & .agents/skills/app-lifecycle/SKILL.md
Documentation, Copywriting, Readme, PR Description, Anti-Slop, Prose Authenticity.agents/rules/prose-authenticity.md
Four Pillars Architecture, Zero-Pip Sovereignty, Python Floor, Ollama, Rust, Bun.agents/rules/four-pillars-architecture.md
Obsidian Interoperability, Vault Export, Wikilinks, Second Brain Graph.agents/rules/obsidian-interop.md & .agents/skills/brain-graph/SKILL.md
Environment Prerequisites, Toolchain Setup, Doctor Check, Binary Verification.agents/rules/prerequisites.md & .agents/DEPLOY_ME.md
Setup .agents, Onboard Workspace, Doctor Check, Install Pillars, Activate Obsidian Vault / Second Brain.agents/DEPLOY_ME.md
Cold Start, Session Start, Bootstrap Session, Resume Session, Project Orientation, Where Were We, /cold-startcontext/VISION.md & .agents/skills/app-lifecycle/references/session-bootstrap.md
New Project, Init, Scaffold, Start from Scratch.agents/canons/ecosystems/{{FRAMEWORK}}/{{FRAMEWORK}}-init.md & .agents/skills/app-lifecycle/references/project-init.md
Legacy Migration, Brownfield, Onboard Existing, Migrate Project.agents/skills/app-lifecycle/references/project-migrate.md
Feature Scaffold, App Builder, New Model, Repository, Screen, End-to-End Feature Creation.agents/canons/ecosystems/{{FRAMEWORK}}/{{FRAMEWORK}}-feature-recipe.md & .agents/skills/app-lifecycle/references/app-builder.md
Business Strategy, Growth, Idea Viability, Planning.agents/skills/saas-strategist/SKILL.md
Feature Discovery, Socratic Elicitation, Requirements Intake, Zero-Trust Discovery.agents/skills/feature-discovery/SKILL.md
System Architecture, Database Schema, Blueprint, Spec, RFC, Design Review, Backend Logic, API, Server, Cache.agents/skills/project-architect/SKILL.md
Frontend UI, Layout, Aesthetics, Visual Craft, Animations, Code Comment Hygiene.agents/skills/ui-finish/SKILL.md & .agents/canons/ecosystems/{{FRAMEWORK}}/{{FRAMEWORK}}-ui-patterns.md
Security Audit, QA, Testing, Bugs, Validation (App Code), AI/LLM Attacks.agents/skills/integrity-sentinel/SKILL.md & .agents/skills/integrity-sentinel/references/ai_llm_attacks.md
Data Immutability, State Management, Transformers.agents/skills/data-logic/SKILL.md
API Contracts, Zod, Schemas, Request Validation.agents/skills/api-contract/SKILL.md
Orion, Knowledge Base, Ingest, Lint, Cross-reference.agents/skills/brain-graph/SKILL.md
Debugging, Errors, Crashes, Runtime Issues.agents/skills/systematic-debugging/SKILL.md (load .agents/skills/frontend-experience/SKILL.md ONLY for UI/widget state bugs)
Deployment, Build, Release, CI/CD, DevOps.agents/canons/ecosystems/{{FRAMEWORK}}/{{FRAMEWORK}}-release.md & .agents/skills/project-operator/SKILL.md
Cost Analysis, Token Budget, LLM Costspython .agents/scripts/orion.py scan tokens (Run it!) & .agents/skills/cost-optimizer/SKILL.md
meta-agent-admin, /meta-agent-admin, Audit .agents, Ecosystem Audit, Foundation Review, Template Health, System Mod, Rules.agents/AGENTS_INDEX.md & .agents/skills/meta-agent-admin/SKILL.md
Code Review, PR Review (App Code).agents/skills/code-review/SKILL.md
Token Reduction, Compression, Lessword Mode.agents/skills/cost-optimizer/SKILL.md & .agents/skills/cost-optimizer/references/lessword-compress.md
Accessibility, A11y, Micro-interactions, Web UX.agents/skills/palette/SKILL.md
Session End, Handoff, Context Eviction.agents/skills/session-offload/SKILL.md
Test-Driven Development (TDD), Writing Tests.agents/skills/strict-tdd/SKILL.md
Full Lifecycle Pipeline, State Machine.agents/skills/app-lifecycle/SKILL.md
Feature Deprecation, Sunset Code, Dead Code Purge.agents/skills/app-lifecycle/references/feature-sunset.md
Agent Self-Learning, Reflection, Pattern Synthesis, Harness, Autoharness, /learn.agents/skills/self-evolve/SKILL.md
Agent Identity, Onboarding, Personality, Bootstrapcontext/AGENT_IDENTITY.md (or .agents/templates/agent-identity-template.md if uninitialized)
Temporal Pulse, Daily Summary, Weekly Synthesis.agents/skills/self-evolve/references/temporal-pulse.md
Worker Delegation, Sub-agent, Task Splitting.agents/skills/worker-delegate/SKILL.md
AI Engineering, Model Drift, Probabilistic Traits, AI Hallucination, AI Attacks, MCP Vulnerabilities.agents/skills/ai-engineer/SKILL.md & .agents/skills/integrity-sentinel/references/ai_llm_attacks.md
Codebase Audit, Audit Ledger, Multi-Session Audit.agents/skills/integrity-sentinel/references/audit-ledger.md
Audit Vectors, Deep Diagnostic Matrix, Logic/Fail-Fast/Bloat/DRY.agents/skills/integrity-sentinel/references/audit_vectors.md
Business Rule Extraction, Conversational Context.agents/skills/session-offload/references/auto-context.md
Knowledge Extraction, Graph Triplet Ingestion.agents/skills/brain-graph/references/knowledge-extraction.md
Spec Drift, Documentation Drift, Blueprint-to-AST Parity.agents/skills/integrity-sentinel/references/audit_vectors.md
Platform Capabilities, Environment Scan, Native Slash Commands, orion env, /envpython .agents/scripts/orion.py env --platform (Run it!) & .agents/skills/app-lifecycle/references/platform-superpowers.md

Note: Once you load the file, you MUST physically execute any scripts or commands it asks you to run via your CLI/terminal tool. If a referenced canon file is missing (ghost routing), skip it and rely on generic protocols.

5. UNIFIED RESPONSE FOOTER & MANUAL MODEL ROUTING

Remind user which Cloud Model Tier to select in IDE dropdown for upcoming NEXT TASK:

  • BUDGET [Low/High Effort] (Flash / Haiku): 1 file, docs, config, or active Bento Action Cards ($\le 2$ files).
  • STANDARD [Med/High Effort] (Pro / Sonnet): 2–5 files, 1 domain boundary, standard features, UI polish, or unit tests (/strict-tdd).
  • PREMIUM [High Effort] (Thinking / Opus): >5 files, 2+ boundaries, system architecture (BLUEPRINT), deep audit, or Strike-3 escalation.

Recommend slash commands in NEXT TASK when relevant (/plan, /strict-tdd, /integrity-sentinel). When diagnosing an error or debt, NEXT TASK MUST NOT be "None".

Footer Contracts (Clean Lines — No placeholders or multi-line logs):

  • Conversational / Q&A Turn:
    🚦 **CHECKPOINT**: [Brief summary of answer]
    ⚡ **RECOMMENDED TIER**: [BUDGET | STANDARD | PREMIUM] — [1-phrase rationale]
    🔮 **NEXT TASK**: [Immediate next step or "None"]
  • Execution / Tool Turn:
    🚦 **CHECKPOINT**: [Brief summary of what was accomplished]
    📋 **EVIDENCE**: [Exit Code X, test status, or verified mechanical state]
    ⚡ **RECOMMENDED TIER**: [BUDGET | STANDARD | PREMIUM] — [1-phrase rationale]
    🔮 **NEXT TASK**: [Immediate next workflow step or /slash-command]
  • Premium / Deep Architectural Turn:
    🚦 **CHECKPOINT**: [Brief summary of what was accomplished]
    📋 **EVIDENCE**: [State EXACT Exit Code or output status]
    🧠 **EVALUATION**: [Execution smooth | Execution rough: root-cause / error analysis]
    ⚡ **RECOMMENDED TIER**: [BUDGET | STANDARD | PREMIUM] — [1-phrase rationale]
    🔮 **NEXT TASK**: [Next workflow step with /slash-command recommendation]

6. END-OF-TASK PROTOCOL (AUTO-EVOLVE)

You MUST NOT wait for user to ask you to learn from mistakes:

  • Task Complete / Feature Done: If a manual process was executed >3 times or same error fixed twice, trigger .agents/skills/self-evolve/SKILL.md silently to extract pattern.
  • Errors / Exit Code > 0: On systemic failure, extract learning to .agents/LEARNINGS.md.
  • Session Offload Prompting: If task queue is empty AND you completed a major milestone, proactively add: "Milestone reached. Recommend /session-offload to save context."
  • Session End: If user indicates they are done, execute .agents/skills/session-offload/SKILL.md.

7. AUTOMATION HOOKS (Advisory)

Run scripts when condition is met. If script is not installed in target project, skip it:

  1. System Mod/Scaffold: Modifying .agents/ or finishing scaffold? Run python .agents/scripts/orion.py verify_agents (Skip for pure root docs like README.md or CHANGELOG.md).
  2. UI Modification: Finishing UI task? Run python .agents/evals/audit_aesthetics.py --dir <path> (if available).
  3. High Context Load: User asks about context/tokens? Run python .agents/scripts/orion.py scan tokens.
  4. Anti-Latency Execution: Exclude .scratch, scratch, .git, .orion, .worktrees, node_modules from scans; set WaitMsBeforeAsync=10000 on synchronous CLI calls; batch file edits and run git diff at most once after edits finish.

8. INTEGRITY FLAG & PRE-IMPLEMENTATION TIER GATE

Every implementation plan (implementation_plan.md) MUST include in its top header:

  1. Integrity Quote: Literal quote from Section 1 (Core Guardrails) verifying context is loaded.
  2. Pre-Implementation Model Recommendation: Banner advising user which model tier to select before executing: > ⚡ **EXECUTION TIER RECOMMENDATION**: [BUDGET [Low/High Effort] | STANDARD [Med/High Effort] | PREMIUM [High Effort]] — [Impact: N files, M domains. Switch model in IDE dropdown before executing if needed.]
  3. Bento Task Structure: For BUDGET and STANDARD tiers, format execution steps as atomic Bento Action Cards organized by Dual-Regime Phasing:
    • Topological Blast-Radius Ordering: Central primitives (T0/T1) to leaf orchestrations (T3/T4).
    • Disjoint Parallel Partitioning: Zero dependency overlap ($J \le 0.20$) tagged with [PARALLEL-TRACK-N].
    • Bottom-Up Same-File Ordering: Highest line number to lowest line number for same-file edits.

Mandate Version: 0.1.1 (English First & Built-In Lessword)

<!-- END FOUNDATION MANDATES -->

PROJECT-SPECIFIC MANDATES

Cross-Platform Shell & Execution Invariants

  • Windows / PowerShell Invariants:
    • No Complex Inline Python (python -c): Avoid inline python -c snippets with quotes/regex. Use temporary scratch files or native file tools to prevent PowerShell quote stripping and syntax errors.
    • Mandatory UTF-8 Mode (python -X utf8): Terminal commands running Python on Windows must include -X utf8 (or PYTHONUTF8=1) to prevent CP-1252 UnicodeEncodeError.
    • CRLF / LF Exact Matching in edit_file: Windows Git checkouts may use CRLF. Antigravity's edit_file requires exact byte matching. When edits fail with "Target was not found", normalize files to LF via .gitattributes (* text=auto eol=lf).
    • RTK Hook-First & Transparent Optimization: The official Antigravity RTK plugin (rtk init -g --agent antigravity) intercepts and token-optimizes commands automatically via PreToolUse hook. Use manual rtk prefixing for meta-commands (rtk gain), in subshell scripts, or use rtk proxy <cmd> when bypass is needed.
    • PowerShell Command Separators: Never use && in Windows PowerShell 5.1; use ; or dispatch commands separately.
  • POSIX / Linux / macOS (bash/zsh) Invariants:
    • Native Quoting & Chaining: Use standard single-quoted arguments and shell separators (&& / ;).
    • Native UTF-8: Rely on POSIX UTF-8 locale environment (LANG=C.UTF-8 or en_US.UTF-8).
    • LF Line Endings: Maintain standard LF (\n) line endings.
  • Path Portability (All Operating Systems): Always format file paths with forward slashes (/) in tool calls, imports, and markdown links. Never commit hardcoded Windows drive letters (C:) or backslashes (\) into repository source code.

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.