Skip to content
SATANG.B
All workProduct
v1.9 · shippedAI agent ruleset

Sage

Make your AI code like your most senior dev — four questions before every change.

A plain-Markdown protocol coding agents read before they act: is it needed, will it last, is it safe, did we already agree? One-command install, works across agents.

Sage website
  • AGENTS.md
  • Claude · Codex · Cursor
  • v1.9
questions before every change
4
agents supported
6+
install command
1
runtimes to run
0
Why I built it

AI writes code fast but skips the team’s context, reinvents what exists and claims “done” without evidence. Sage makes the agent think like a senior before it types.

Results

May → Oct 2026 · 231 commits · v1.1 → v1.9
  • One-command installers for Bash and PowerShell
  • Works with Claude Code, Codex, Cursor, Copilot, Gemini and Windsurf
  • Used daily, including on client and day-job repos

What it does

  • Reads the team’s context first

    The agent reads existing decisions and patterns before proposing anything new.

  • Names the risk before acting

    Work touching money, permissions, data or public APIs stops for a decision first.

  • “Done” needs evidence

    It has to run real builds, tests or checks and report the risk that’s left.

Screens

6 screens · click to enlarge

What went wrong — and how I fixed it

Real problems from the commit history, not a highlight reel.

  1. 01
    Problem

    The first version was too heavy: a CLI, an MCP server, stores, Docker and CI.

    How I fixed it

    Collapsed it to one AGENTS.md protocol plus conflict-free Markdown knowledge files, and removed the Python code.

  2. 02
    Problem

    The interactive installer failed in some shells (when piped, and in PowerShell).

    How I fixed it

    Read answers from /dev/tty and Read-Host, and fetch the latest version via a CDN.

  3. 03
    Problem

    Agents asked too many unnecessary questions.

    How I fixed it

    Added a pre-action clarification pass and made test writing opt-in.

Under the hood

One Markdown file. No runtime.

  1. 01Install with one command and pick your agents
  2. 02The agent reads AGENTS.md before every task
  3. 03It asks the four questions and picks the smallest path
  4. 04It validates for real and records what it learned
Role
Solo
Stack
Markdown · Bash · PowerShell · jsDelivr