clawdline: Instructions file for Codex

AGENTS.md

clawdline AGENTS.md is an instructions file for Codex, OpenCode from sainteye/clawdline. It costs 3,969 tokens per session, scanned A, original, MIT.

A set of AGENTS.md instructions for working safely in the sainteye/clawdline repository, including shared files, task handoffs, reviews, and completion reporting. AGENTS.md is a project instruction file that tells coding agents how to make changes.

In plain words
What is it for?
Use it when changing repository code, managing shared work, preparing commits, completing tasks, or coordinating root and child agent sessions.
Why use it?
It reduces the risk of overwriting another agent’s work, editing the wrong files, or declaring a task complete before the required checks and notifications are done.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions Codex.

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ( cd web && npm run check && ../tools/heavy.sh npm run build && ../tools/heavy.sh npm test ) # when anything under web/ changed.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sainteye/clawdline/agents-md"><img src="https://agentmods.dev/badge/instructions/sainteye/clawdline/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,969 This file is loaded in full into every session.
When invoked 3,969 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.03969 $0.03969
Opus 5.5 $0.01588 $0.01588
Sonnet 5.5 $0.00794 $0.00794
Haiku 4.5 $0.00397 $0.00397

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

Security

Grade A, and why

clawdline 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 9d 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 · 256 lines

How it starts

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

Working in this repository

This is the product. Clawdline is a Go daemon plus a React console, built for macOS, Linux and Windows. The daemon owns port 7727 on this machine. README.md says what it is for; docs/ says how each part was decided. This page holds the rules; docs/working-rules.md holds the incidents and procedures behind them — read its section when you reach the thing it covers.

The retired Swift app

The Swift app stopped on 2026-09-19 and was archived on 2026-09-22; keep its archive read-only and its file-and-line citations intact (see docs/working-rules.md), and let TestNothingSaysTheRetiredAppIsStillRunning guard against claims that it still runs.

Where work happens

The branch is main (it was master until 2026-09-22). Work lands through a disposable worktree, never in the shared checkout:

git worktree add -f <scratch>/<name> HEAD
  • A root integrates by merging the child's branch, not by applying its patch, and records the landing as soon as it lands. A branch cut before 2026-09-22 can only be cherry-picked (docs/working-rules.md).
  • After recording a landing, run tools/check-worktrees.sh (a dry run: 0 nothing owed, 1 landed residue, 2 could not check, 3 unknown). Inspect it, then run --apply for every proved landed_clean checkout. Remove a root-owned task worktree after its commit is on main, its checkout is clean, and no owner is using it. Never use age or ancestry alone to delete an unknown, active, dirty, or unlanded checkout. In every delivery, tell the person how many worktrees were removed and which candidates were kept, with their reasons. For a read-only throwaway checkout use tools/check-worktrees.sh --ephemeral -- <command>. docs/worktrees.md.
  • A dispatched child's worktree path comes from the task record (GET /v1/orchestrator/tasks/<id> → .task.worktree.path), never composed. cd "$W" || exit 1 — a failed cd runs everything else somewhere else.

Before anything is committed

Read the full file on GitHub · 256 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. 9d ago Changed · +4 lines · +104 tokens per session 56bc638c7494
  2. 11d ago Changed · +1 lines · +34 tokens per session 1d5784ebda66
  3. 12d ago Changed · +25 lines · +445 tokens per session ddb050bc7c25
  4. 13d ago Changed · +22 lines · +531 tokens per session 06de5f35cd5f
  5. 15d ago Changed · +3 lines · +49 tokens per session 8e8fee4a6d17
  6. 16d ago Changed · +17 lines · +325 tokens per session 5661c5d4e6f7
  7. 19d ago Changed · +1 lines · +21 tokens per session 67df18299f94
  8. 20d ago Changed · +3 lines · +70 tokens per session d5c9fa257fbb
  9. 23d ago Changed · +8 lines · -33 tokens per session dc0c1aa7745f
  10. 27d ago First seen · 172 lines · 2,423 tokens per session scan A 1bc3f9f0dd82

Subscribe to this mod's changes

clawdline AGENTS.md is an instructions file published in the GitHub repository sainteye/clawdline (1 stars, last pushed today), licensed MIT. It adds 3,969 tokens to every session, about $0.0159 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens