sutras: Instructions file for Codex

AGENTS.md

sutras AGENTS.md is an instructions file for Codex, OpenCode from anistark/sutras. It costs 3,648 tokens per session, scanned A, original, MIT.

Repository instructions for Sutras, a Python tool for creating, testing, reviewing, sharing, and finding skills used by AI coding agents. They describe the project and its core library and command-line interface.

In plain words
What is it for?
Use them when working on Sutras, especially its skill-loading, testing, evaluation, configuration, and command-line code.
Why use it?
They give coding agents a shared map of the project before they change code, reducing guesswork about where features and rules belong.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions Claude Code.

This is anistark/sutras's own configuration. It tells Codex and OpenCode how to work on sutras 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 sutras configures →

Reuse

Borrowing it

Nothing to install: this file belongs to anistark/sutras. 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/anistark/sutras/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/anistark/sutras

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 sutras AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/anistark/sutras/agents-md/github.svg)](https://agentmods.dev/instructions/anistark/sutras/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/anistark/sutras/agents-md"><img src="https://agentmods.dev/badge/instructions/anistark/sutras/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 sutras AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/anistark/sutras/agents-md"><img src="https://agentmods.dev/badge/instructions/anistark/sutras/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,648 This file is loaded in full into every session.
When invoked 3,648 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.03648 $0.03648
Opus 5.5 $0.01459 $0.01459
Sonnet 5.5 $0.00730 $0.00730
Haiku 4.5 $0.00365 $0.00365

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

Security

Grade A, and why

sutras 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 26d 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 · 322 lines

How it starts

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

AGENTS.md — AI Coding Agent Instructions for Sutras

Instructions for Claude Code, Cursor, Copilot, pi, opencode and other AI coding agents working on this project.


Project Overview

Sutras is the universal devtool for agent skills — create, test, evaluate, distribute, and discover skills for AI coding agents (Claude Code, Cursor, Windsurf, Copilot, and more).


Architecture

Sutras is a Python CLI built with Click. It has two layers:

1. Core Library (src/sutras/core/)

The engine — models, loaders, runners, and managers. All business logic lives here.

File Purpose
abi.py Pydantic models for sutras.yaml (SutrasABI, TestConfig, EvalConfig, etc.)
skill.py Skill model — combines SKILL.md frontmatter with ABI metadata
loader.py SkillLoader — discovers and loads skills from ~/.claude/skills/ and .claude/skills/
config.py SutrasConfig — global config from ~/.sutras/config.yaml, registry entries
templates.py Built-in skill templates for sutras new --template
test_runner.py TestRunner — executes test cases defined in sutras.yaml
evaluator.py Evaluator — Ragas-based evaluation framework
builder.py SkillBuilder — packages skills into tarballs for distribution
naming.py SkillName parser — handles @namespace/skill and bare names
semver.py Semver constraint parsing (npm-style: ^1.0.0, ~1.2.3, ranges)
registry.py RegistryManager — federated git-based registry system
installer.py SkillInstaller — installs skills to ~/.claude/installed/ with symlinks
publisher.py SkillPublisher — publishes skills to registries (direct push or PR)
resolver.py DependencyResolver — recursive dependency resolution with conflict detection
lockfile.py .sutras.lock format — lock file for reproducible installs
docgen.py Documentation generation from skill metadata
validation.py Limits, known tool names, and link extraction used by sutras validate
bench.py BenchPlan, BenchRunner (matrix runs, spend cap), BenchReport, history, --record compatibility
runtime/ RuntimeExecutor protocol and ClaudeCodeExecutor (headless claude -p, stream-json parsing, model discovery)
sandbox.py Temp workspaces with the skill installed at project level; workspace diffs
assertions.py Deterministic bench assertions
judge.py Rubric grading with a fixed judge model
pricing.py Price table, model aliases, model@effort parsing
estimator.py Pre-run bench cost estimates (history, pilot, heuristic)
updater.py Self-update logic — checks PyPI, upgrades CLI, refreshes pi extension

Read the full file on GitHub · 322 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. 26d ago Changed · +1 lines · +44 tokens per session b875d535d22e
  2. 1mo ago Changed · +10 lines · +302 tokens per session e8e6f37ac112
  3. 1mo ago Changed · +1 lines · +23 tokens per session 7335ed6faceb
  4. 2mo ago First seen · 310 lines · 3,279 tokens per session scan A b8887051ccb1

Subscribe to this mod's changes

sutras AGENTS.md is an instructions file published in the GitHub repository anistark/sutras (5 stars, last pushed 17d ago), licensed MIT. It adds 3,648 tokens to every session, about $0.0146 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-31.

Related

sutras AGENTS.md compared with instructions from other repositories

sutras AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sutras AGENTS.mdanistark/sutrasInstructions file517d agoMITA3,648Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode