agentleFS
Ai-assistant-KIRAAi-assistant-KIRA/antigravity-harness/rules/AGENTS.md

antigravity-harness / rules

AGENTS.md1 starsChanged 17 days agoApache-2.0View on GitHub

The file

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

9 rules. About 1 is common, 7 are distinctive, and 1 is very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use existing learned skills before re-deriving a known multi-step procedure.

    line 7
  2. Very specific:

    Use the harness CLI (bin/harness.cmd on Windows, bin/harness elsewhere) to inspect memory and validate skills.

    line 8
  3. Distinctive:

    Keep the Harness-managed AGENTS.md block below 20 KB.

    line 9
  4. Common:

    Never persist credentials, tokens, private keys, or connection strings in rules, skills, or memory exports.

    line 10
  5. Distinctive:

    When a command fails, capture the full stderr and the first actionable error line.

    line 16
  6. Distinctive:

    Write and read text files as UTF-8 to avoid cp1252 corruption on Windows.

    line 19
  7. Distinctive:

    Do not copy project-specific commands or paths into the global rules file.

    line 20
  8. Distinctive:

    Only promote a lesson after observing a successful recovery.

    line 21
  9. Distinctive:

    Before overwriting a skill, check whether it is manually authored.

    line 22

≈ “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
<!-- HARNESS:AUTONOMOUS_RULES_START -->

Harness Evolved Directives (Global Environment)

Maintained automatically by Harness². User content outside this block is preserved. Verified failure/recovery lessons only; no transcript timestamps or exit-code noise.

Standing Project Directives

  • Use existing learned skills before re-deriving a known multi-step procedure.
  • Use the harness CLI (bin/harness.cmd on Windows, bin/harness elsewhere) to inspect memory and validate skills.
  • Keep the Harness-managed AGENTS.md block below 20 KB; Antigravity caps each rules file at 24 KB.
  • Never persist credentials, tokens, private keys, or connection strings in rules, skills, or memory exports.

Environment & Tooling Quirks

  • PowerShell: quote paths containing spaces and avoid multi-line inline commands; write complex logic to a temporary script.
  • Python on Windows: run with -X utf8 when output contains non-ASCII, and prefer python -m module over bare entry points.
  • Antigravity hooks run with the plugin directory as the working directory; resolve project paths from the hook payload instead of the process cwd.
  • When a command fails, capture the full stderr and the first actionable error line; an exit code alone is not a diagnosis.

Learned Pitfalls & Recovery Invariants

  • Write and read text files as UTF-8 to avoid cp1252 corruption on Windows.
  • Do not copy project-specific commands or paths into the global rules file; put them in the workspace rules instead.
  • Only promote a lesson after observing a successful recovery; unresolved failures remain candidates.
  • Before overwriting a skill, check whether it is manually authored; Harness must never replace user content.
<!-- HARNESS:AUTONOMOUS_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.