agentleFS
FerroxLabsFerroxLabs/ijfw/pi/AGENTS.md

ijfw / pi

AGENTS.md210 starsChanged 7 months agoMITView on GitHub

Pi has no native MCP, so IJFW's memory + cross-audit tools aren't available inside Pi sessions out of the box. These conventions carry the IJFW spirit (disciplined workflow, terse output, no scope creep, no half-shipping) into Pi's terminal harness. Pi loads this file at startup from ~/.pi/agent/, parent directories, and the current working directory -- exactly where IJFW installs it. Pi sessions don't see IJFW's persistent memory by default. After significant work: Stay in the lane the user asked for.…

  • Deletes or force-pushes

The file

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

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    No speculative abstractions.

    line 26
  2. Distinctive:

    No error handling for impossible scenarios.

    line 27
  3. Distinctive:

    Default to writing no comments.

    line 28
  4. Distinctive:

    Never write multi-paragraph docstrings.

    line 29
  5. Very specific:

    Run ijfw cross audit <file> in a separate terminal to get a Trident review across two model families.

    line 35
  6. Very specific:

    Use ijfw_memory_store from a Claude/Codex/Gemini session (where MCP is native) to persist decisions Pi makes -- they won't survive …

    line 36
  7. Very specific:

    If the user asks for a design contract and no DESIGN.md exists in the project root, suggest one of the 12 IJFW curated templates …

    line 45
  8. Very specific:

    When you hit an obstacle, find the root cause rather than bypassing safety checks (no --no-verify, no force-push to main).

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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

IJFW Conventions for Pi

<!-- Pi MCP support last verified: 2026-05-28 against https://pi.dev/. Pi has no native MCP client (build as extension or skill). When Pi adds native MCP, regenerate this file and consider promoting Pi from rules-only to full-skill tier in installer/src/install-targets-8-14.js and add the MCP wiring path. -->

Pi has no native MCP, so IJFW's memory + cross-audit tools aren't available inside Pi sessions out of the box. These conventions carry the IJFW spirit (disciplined workflow, terse output, no scope creep, no half-shipping) into Pi's terminal harness. Pi loads this file at startup from ~/.pi/agent/, parent directories, and the current working directory -- exactly where IJFW installs it.

Workflow

  • One question at a time. Don't dump multi-step plans before the user signs off.
  • Lead with the answer. No restating the question.
  • For multi-file changes, propose the plan in chat FIRST. Wait for the user "go".
  • Terse output. The diff is the deliverable, not your prose about the diff.

Code

  • Match existing style. Don't refactor adjacent code that wasn't asked for.
  • No speculative abstractions. Three similar lines beats a premature helper.
  • No error handling for impossible scenarios. Trust internal code; validate only at system boundaries.
  • Default to writing no comments. Only add when the WHY is non-obvious (a hidden constraint, a subtle invariant, a workaround for a specific bug).
  • Never write multi-paragraph docstrings. One short line max.

Memory + cross-audit

Pi sessions don't see IJFW's persistent memory by default. After significant work:

  • Run ijfw cross audit <file> in a separate terminal to get a Trident review across two model families.
  • Use ijfw_memory_store from a Claude/Codex/Gemini session (where MCP is native) to persist decisions Pi makes -- they won't survive otherwise.
  • Or build a Pi extension that bridges to the IJFW MCP memory server (~/.ijfw/mcp-server/src/server.js). Pi's extension API supports tool registration; the bridge is the cleanest path to native parity.

Scope

Stay in the lane the user asked for. If you spot adjacent issues, mention them in chat -- don't fix them silently. No drive-by refactors. No backwards-compatibility shims for code that isn't shipped yet.

DESIGN picker

If the user asks for a design contract and no DESIGN.md exists in the project root, suggest one of the 12 IJFW curated templates (alphabetical):

apple-glass, anthropic, bauhaus, brutalist, calm, dark-mode, document, editorial, glassmorphism, minimal, neo-brutalist, terminal

Show 3 options matching the project's vibe; let the user pick. Then write DESIGN.md to project root. Every IJFW-connected agent reads the same visual contract -- you keep them consistent.

Executing actions with care

Carefully consider blast radius before destructive ops. Local edits and tests are safe; check with the user before rm -rf, force pushes, dropping tables, sending messages, or anything visible to others or hard to reverse.

When you hit an obstacle, find the root cause rather than bypassing safety checks (no --no-verify, no force-push to main). If you encounter unfamiliar state, investigate before deleting -- it may be the user's in-progress work.

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.