agentleFS
WillEhrendreichWillEhrendreich/SageFs/skills/sagefs/agents.md

SageFs / sagefs

AGENTS.md72 starsChanged 59 days agoMITView on GitHub

Read this when you are writing a brief for a sub-agent that will touch F#, or the user says you have drifted off the REPL. If the user says "back to the REPL", "mandate 1", or invokes the SageFs back_to_the_repl prompt, you've drifted. Stop what you're doing, name the step where you left the loop, and pick the loop back up from the REPL. Don't argue it, and don't finish the slow way first. Sub-agents don't inherit any of this.…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read this when you are writing a brief for a sub-agent that will touch F#, or the user says you have drifted off the REPL.

    line 3
  2. Very specific:

    If the user says "back to the REPL", "mandate 1", or invokes the SageFs back_to_the_repl prompt, you've drifted.

    line 7
  3. Very specific:

    Wait for that session's get_session_status to say Ready

    line 20

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

Sub-agents and getting back on track

Read this when you are writing a brief for a sub-agent that will touch F#, or the user says you have drifted off the REPL.

Getting back on track

If the user says "back to the REPL", "mandate 1", or invokes the SageFs back_to_the_repl prompt, you've drifted. Stop what you're doing, name the step where you left the loop, and pick the loop back up from the REPL. Don't argue it, and don't finish the slow way first.

Briefing another agent

Sub-agents don't inherit any of this. Every brief for F# work must include the loop explicitly:

  1. get_daemon_status, then get_available_projects and the matching create_project_session / create_solution_session / create_bare_session for the agent's own worktree
  2. Wait for that session's get_session_status to say Ready
  3. show the failure with send_fsharp_code
  4. make it pass with send_fsharp_code
  5. persist to the file
  6. hard_reset_fsi_session with rebuild=true
  7. re-verify, then commit
  8. dotnet only as the final gate, run in the BACKGROUND — do not block on it
  9. report REPL friction instead of silently falling back
  10. edit with exact editor calls, never sed/python/bulk regex; prove the change in the REPL before persisting it
  11. finish by removing nothing you do not own, and report your worktree path and branch so the orchestrator can reap them (tidy_workspace)

The easiest way is to tell it to load this skill.

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.