sutras AGENTS.md

sutras AGENTS.md is an instructions file for Codex, OpenCode from anistark/sutras. It costs 3,279 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/anistark/sutras/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,279 This file is loaded in full into every session.
When invoked 3,279 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.03279 $0.03279
Opus 5 $0.01639 $0.01639
Sonnet 5 $0.00656 $0.00656
Haiku 4.5 $0.00328 $0.00328

Measured 3d ago against content hash b8887051ccb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 310 lines

How it starts

The opening of the file, as written. The whole thing — 310 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
updater.py Self-update logic — checks PyPI, upgrades CLI, refreshes pi extension

Read the full file on GitHub · 310 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. 3d 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 4mo ago), licensed MIT. It adds 3,279 tokens to every session, about $0.0164 per session on Opus 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.