ds-spec-loop: Instructions file for Codex

AGENTS.md

ds-spec-loop AGENTS.md is an instructions file for Codex, OpenCode from songyang0603/ds-spec-loop. It costs 281 tokens per session, scanned A, original, MIT.

Repository instructions for a coding agent working on a portable Spec programming skill. They define which files own decisions, procedures, documentation, and attribution.

In plain words
What is it for?
Following repository-specific rules, finding the correct source of truth, and documenting non-mechanical changes in decision records.
Why use it?
They prevent conflicting rules and duplicate systems by giving each kind of information one authoritative place. They also require important changes to record their reasoning.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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 ds-spec-loop AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/songyang0603/ds-spec-loop/agents-md"><img src="https://agentmods.dev/badge/instructions/songyang0603/ds-spec-loop/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 281 This file is loaded in full into every session.
When invoked 281 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.00281 $0.00281
Opus 5.5 $0.00112 $0.00112
Sonnet 5.5 $0.00056 $0.00056
Haiku 4.5 $0.00028 $0.00028

Measured 1mo ago against content hash 6cfc66e9489f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ds-spec-loop 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 1mo 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 · 22 lines

What it actually says

Repository instructions

This repository publishes one portable, repository-native Spec programming Skill.

Authority

  • skills/ds-spec-loop/SKILL.md owns the agent-facing core loop.
  • skills/ds-spec-loop/references/ owns detailed protocols and templates.
  • README.md and README.zh-CN.md own public installation and usage guidance and remain equivalent in meaning.
  • docs/decisions/ owns this repository's working proposals and accepted decision rationale.
  • NOTICE owns method attribution and independence from upstream projects.

Working rules

  • Every non-mechanical change adds or updates one owning decision record in the same bounded change. Search for an existing owner before creating another.
  • Reuse the repository's current terminology and tools. Do not create a second Spec, ADR, documentation, test, or CI system when an existing one owns the responsibility.
  • A working proposal may change before delivery. A stable accepted decision is replaced by a new cross-linked decision record rather than rewritten as though it never existed.
  • Supersession is a relationship, not a lifecycle status or required directory.
  • Keep one canonical home per fact. Other files may summarize or link to the owner.
  • Use the smallest direct checks that cover the changed claims. Development-only evaluation artifacts stay outside the repository.
  • Do not modify ../deepseek-harness while maintaining this project.
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. 1mo ago First seen · 22 lines · 281 tokens per session scan A 6cfc66e9489f

Subscribe to this mod's changes

ds-spec-loop AGENTS.md is an instructions file published in the GitHub repository songyang0603/ds-spec-loop (39 stars, last pushed 2mo ago), licensed MIT. It adds 281 tokens to every session, about $0.0011 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