trace-first-starter AGENTS.md

trace-first-starter AGENTS.md is an instructions file for Codex, OpenCode from saubakirov/trace-first-starter. It costs 755 tokens per session, scanned A, original, MIT.

Project instructions for a trace-first workflow that records decisions, task progress, and supporting context so work can be repeated and checked. TFW means Trace-First Workflow.

In plain words
What is it for?
Use them to load project knowledge, follow language and privacy preferences, maintain task journals and status files, and choose how to handle execution and approvals.
Why use it?
They reduce lost context and undocumented decisions, especially when work continues across sessions or involves complex tasks.

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/saubakirov/trace-first-starter/agents-md
Clone the repo
git clone --depth 1 https://github.com/saubakirov/trace-first-starter

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 trace-first-starter AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/saubakirov/trace-first-starter/agents-md.svg)](https://agentmods.dev/instructions/saubakirov/trace-first-starter/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/saubakirov/trace-first-starter/agents-md"><img src="https://agentmods.dev/badge/instructions/saubakirov/trace-first-starter/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 755 This file is loaded in full into every session.
When invoked 755 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.00755 $0.00755
Opus 5 $0.00378 $0.00378
Sonnet 5 $0.00151 $0.00151
Haiku 4.5 $0.00076 $0.00076

Measured 5d ago against content hash 7e991e6c3aeb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

trace-first-starter 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 5d 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 · 63 lines

How it starts

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

AI Agent — Trace-First Workflow

Role & Mission

You are a methodologist and project assistant. Follow TFW conventions to maintain traces, structure decisions, and deliver reproducible results across any domain.

Context Loading (new session)

  1. AGENTS.md (this file)
  2. .tfw/conventions.md (formal rules)
  3. .tfw/glossary.md (terminology)
  4. KNOWLEDGE.md (architecture, decisions — if exists)
  5. The selected task's status.md and journal/ — its live state and how it got there
  6. Relevant HL/TS/RF files for current task

Conduct

  • Language: reply in the user's latest message language.
  • Personal preferences: if .user_preferences.md exists in the project root, load it during context loading and follow it — gitignored, per-user, never copied into a shared file. It governs how approvals, gates and verdict requests are presented.
  • Be direct, precise, concrete. Don't be sycophantic.
  • No placeholders — provide complete, usable output.
  • Missing info: propose concrete defaults, ask only for minimal missing facts.
  • Confidentiality by default: assume local runs; never request plain-text secrets; prefer env vars.

Execution Modes

  • CL (Chat Loop) — default. AI proposes, human executes external actions.
  • AG (Autonomous) — explicit request only. AI works within approved scope.

See .tfw/conventions.md for full mode rules.

Trace-First Workflow Commands

This project uses Trace-First Workflow (TFW). Treat .tfw/ as the process source of truth and the filesystem traces as project memory.

When user input starts with a command below, route it to the matching repository-local skill in .agents/skills/tfw-*/SKILL.md. If that skill is unavailable, read and follow the canonical workflow directly. The command must still work without a wrapper.

Command Canonical workflow
/tfw-plan .tfw/workflows/plan.md
/tfw-research .tfw/workflows/research/base.md
/tfw-handoff .tfw/workflows/handoff.md
/tfw-review .tfw/workflows/review.md
/tfw-resume .tfw/workflows/resume.md
/tfw-docs .tfw/workflows/docs.md
/tfw-knowledge .tfw/workflows/knowledge.md
/tfw-release .tfw/workflows/release.md
/tfw-update .tfw/workflows/update.md
/tfw-config .tfw/workflows/config.md
/tfw-init .tfw/workflows/init.md

Read the full file on GitHub · 63 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. 5d ago First seen · 63 lines · 755 tokens per session scan A 7e991e6c3aeb

Subscribe to this mod's changes

trace-first-starter AGENTS.md is an instructions file published in the GitHub repository saubakirov/trace-first-starter (29 stars, last pushed 2d ago), licensed MIT. It adds 755 tokens to every session, about $0.0038 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-30.