tws: Instructions file for Claude Code

AGENTS.md

tws AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from ytaskiran/tws. It costs 10,261 tokens per session, scanned B, original, MIT.

Repository instructions for tws, a Rust project. They define the required build, test, formatting, linting, security-check, and agent-hook commands.

In plain words
What is it for?
Use them when an agent changes tws code and needs to run the same checks as its continuous-integration system, which automatically tests proposed changes.
Why use it?
They make the expected checks and workflow explicit before changes are committed or submitted for review.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: UserPromptSubmit hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is ytaskiran/tws's own configuration. It tells Claude Code, Codex and OpenCode how to work on tws 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 tws configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../tws-<slug> -b <branch> origin/main.

Reuse

Borrowing it

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

Made for: Claude Code, 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 tws AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ytaskiran/tws/agents-md"><img src="https://agentmods.dev/badge/instructions/ytaskiran/tws/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10,261 This file is loaded in full into every session.
When invoked 10,261 The same file — it is already loaded in full.
Security scan B 1 finding. 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.10261 $0.10261
Opus 5.5 $0.04104 $0.04104
Sonnet 5.5 $0.02052 $0.02052
Haiku 4.5 $0.01026 $0.01026

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

Security

Grade B, and why

tws AGENTS.md scanned grade B with 1 finding 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 8d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Devin CLI.** `configure_devin_hooks` writes the `hooks` key of `~/.config/devin/config.json` (`devin_config`). The file is JSON with comments, and jq reads no comments, so `strip_jsonc` removes comments and trailing co
AGENTS.md · 189 lines

How it starts

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

AGENTS.md

This file provides guidance to agents working in this repository.

Build & Test

cargo build                    # compile
cargo test                     # run the full test suite
cargo test state::tests        # run tests in a specific module
cargo test resolve_selection   # run tests matching a name pattern

CI

.github/workflows/ci.yml runs on every PR and every push to main. Five jobs, all required to pass:

cargo test   --all-targets --locked                   # Test
cargo fmt    --all --check                            # Rustfmt — formatting
cargo clippy --all-targets --locked -- -D warnings    # Clippy — lints as errors
cargo audit                                           # Security audit — RustSec advisories
bash scripts/verify-agent-hooks.sh                    # Agent hook protocol — see below

Run cargo fmt --all and cargo clippy --all-targets -- -D warnings before pushing. CI pins the toolchain to Rust 1.96.1 (see RUST_VERSION in ci.yml); rustfmt reflows and clippy lints shift between releases, so format/lint with a matching toolchain to avoid CI turning red on formatting alone.

Workflow

Every change — even a tiny one — happens in a fresh git worktree on a new branch, then goes out as a PR. Never edit and commit directly on main in the primary checkout.

git worktree add ../tws-<slug> -b <branch> origin/main
cd ../tws-<slug>
# ...edit, commit, push, gh pr create

This keeps in-flight work isolated from main, and ensures every change is reviewable on GitHub before it lands.

Release

Patch/minor/major bumps follow semver.

  1. Land fix/feature commits on main (merge any feature worktrees in first — do not bump versions inside a feature branch/worktree, it causes Cargo.lock conflicts on merge).
  2. In the primary main checkout, bump version in both Cargo.toml and Cargo.lock (the [[package]] name = "tws" entry) in a separate commit titled version bump to vX.Y.Z.
  3. Lightweight tag at the bump commit: git tag vX.Y.Z. Push both: git push origin main && git push origin vX.Y.Z.

Read the full file on GitHub · 189 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. 8d ago Changed · +565 tokens per session 17fd56c5dff5
  2. 9d ago Changed · +8 tokens per session bb4f83539940
  3. 10d ago Changed · +1 lines · +89 tokens per session 4aac1d025e2c
  4. 18d ago Changed · +2 lines · +788 tokens per session d8a2cdd4b961
  5. 19d ago Changed · +2 lines · +824 tokens per session 2a1942ff71fa
  6. 27d ago Changed · +281 tokens per session 6a1279905f04
  7. 1mo ago Changed · +2 lines · +213 tokens per session 4dafd4e451cb
  8. 1mo ago Changed · +411 tokens per session c01d3a2766cf
  9. 1mo ago Changed · +30 lines · +4,141 tokens per session 6b8aea4f1fa7
  10. 1mo ago First seen · 152 lines · 2,941 tokens per session scan B 8129000ac42b

Subscribe to this mod's changes

tws AGENTS.md is an instructions file published in the GitHub repository ytaskiran/tws (59 stars, last pushed 6d ago), licensed MIT. It adds 10,261 tokens to every session, about $0.0410 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

tws AGENTS.md compared with instructions from other repositories

tws AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tws AGENTS.mdytaskiran/twsInstructions file596d agoMITB10,261Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode