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.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- sagefsSkill
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
- Distinctive: line 3
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.
- Very specific: line 7
If the user says "back to the REPL", "mandate 1", or invokes the SageFs back_to_the_repl prompt, you've drifted.
- Very specific: line 20
Wait for that session's get_session_status to say Ready
≈ “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.
Files
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:
get_daemon_status, thenget_available_projectsand the matchingcreate_project_session/create_solution_session/create_bare_sessionfor the agent's own worktree- Wait for that session's
get_session_statusto say Ready - show the failure with
send_fsharp_code - make it pass with
send_fsharp_code - persist to the file
hard_reset_fsi_sessionwithrebuild=true- re-verify, then commit
dotnetonly as the final gate, run in the BACKGROUND — do not block on it- report REPL friction instead of silently falling back
- edit with exact editor calls, never
sed/python/bulk regex; prove the change in the REPL before persisting it - 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.
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
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.

