SageFs: Instructions file for Codex

AGENTS.md

SageFs AGENTS.md is an instructions file for Codex, OpenCode from WillEhrendreich/SageFs. It costs 10,112 tokens per session, scanned A, original, MIT.

Project instructions for SageFs, a coding environment with a long-running background service, a code session, a tool server, and a dashboard.

In plain words
What is it for?
They are for guiding agents working on SageFs projects, especially when starting the service and verifying it with a screenshot or time-limited check.
Why use it?
They prevent an agent from waiting forever for a service that is designed to keep running and set rules for checking whether it is ready.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

This is WillEhrendreich/SageFs's own configuration. It tells Codex and OpenCode how to work on SageFs itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SageFs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to WillEhrendreich/SageFs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/WillEhrendreich/SageFs/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/WillEhrendreich/SageFs

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for SageFs AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/willehrendreich/sagefs/agents-md/github.svg)](https://agentmods.dev/instructions/willehrendreich/sagefs/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/willehrendreich/sagefs/agents-md"><img src="https://agentmods.dev/badge/instructions/willehrendreich/sagefs/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for SageFs AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/willehrendreich/sagefs/agents-md"><img src="https://agentmods.dev/badge/instructions/willehrendreich/sagefs/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10,112 This file is loaded in full into every session.
When invoked 10,112 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.10112 $0.10112
Opus 5.5 $0.04045 $0.04045
Sonnet 5.5 $0.02022 $0.02022
Haiku 4.5 $0.01011 $0.01011

Measured 7d ago against content hash 81a5aa5de58e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

SageFs AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 531 lines

How it starts

The opening of the file, as written. The whole thing — 531 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SageFs: Coding Agent Guidelines

STOP: Read This Before Anything Else

The SageFs daemon is a long-running process that never exits on its own. It hosts the FSI session, MCP server, and dashboard on ports 37749/37750. You will be tempted to wait for it. DO NOT.

The cardinal rule, stated three times because it is the only thing you keep getting wrong:

  1. NEVER narrate a wait to the user. After starting a daemon, do not write "verifying" or "checking" or "started" and then stop. The next thing you produce must be a tool result: specifically a screenshot, an HTTP probe with a hard timeout, or the next concrete step. A chat message that is not a result or a question is the failure mode.

  2. NEVER call a command that blocks on the daemon's lifetime. Wait-Process, Start-Process -Wait, waiting for a process to exit, taskkill /T /F on the daemon while also awaiting the result, all of these will hang forever because the daemon is not supposed to exit.

  3. NEVER treat Start-Sleep as "wait for the daemon to be ready" without a follow-up tool call in the same turn. Start-Sleep 3 followed by a chat message is the same hang, just shorter. Start-Sleep 3 followed by a screenshot is fine. The sleep is not the problem. The text after the sleep is the problem.

  4. NEVER re-derive an MCP connection from scratch. Run dotnet fsi scripts/reconnect-mcp.fsx. If every MCP tool answers 404 Session not found, the connection is LIVE and pointing at a session the daemon no longer has. The session lives in the daemon's MEMORY, and installing a build restarts the daemon on purpose, so the id a client holds dies. A client on Streamable HTTP sends initialize once and never again, so the failure repeats until someone reloads the client by hand. reconnect-mcp.fsx re-initializes and PROVES it (it first requires a never-minted id to be rejected, so a pass cannot mean "the endpoint merely answers"). If it prints OK, you are live; carry on. The durable fix is the stdio bridge, claude mcp add sagefs -- sagefs mcp, which owns the handshake itself, so the client never holds an id at all. scripts/probe-bridge-stdio.fsx drives that bridge from a script, which is how to dogfood it without a client. Full explanation: "404 Session not found" in docs/mcp-tools.md, and the same diagnosis in skills/sagefs/troubleshooting.md, which also says to check the daemon's version before believing anything else.

Read the full file on GitHub · 531 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · +14 lines · +317 tokens per session 81a5aa5de58e
  2. 9d ago Changed · +80 lines · +1,345 tokens per session 77d3f15778d8
  3. 11d ago Changed · +8 lines · +256 tokens per session a4c8e86e70c5
  4. 25d ago Changed · +95 lines · +2,033 tokens per session c34d2f7155b2
  5. 27d ago Changed · +37 lines · +1,310 tokens per session 0b1b56afdde6
  6. 28d ago Changed · +22 lines · +447 tokens per session 37f0f090ab56
  7. 29d ago Changed · +83 lines · +1,294 tokens per session 3f06847945db
  8. 1mo ago Changed · +21 lines · +397 tokens per session 10f13919d7c4
  9. 1mo ago Changed · +20 lines · +311 tokens per session f408ee2abbeb
  10. 1mo ago First seen · 151 lines · 2,402 tokens per session scan A bc363829b7ee

Subscribe to this mod's changes

SageFs AGENTS.md is an instructions file published in the GitHub repository WillEhrendreich/SageFs (84 stars, last pushed 5d ago), licensed MIT. It adds 10,112 tokens to every session, about $0.0404 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vibetags com-example-config-AsyncTestConfig.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for asynctestconfig and immutable type.

PIsberg/vibetags · 82 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens