Borrowing it
Nothing to install: this file belongs to tashian/tsm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tashian/tsm/main/AGENTS.mdgit clone --depth 1 https://github.com/tashian/tsmWrote 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.
[](https://agentmods.dev/instructions/tashian/tsm/agents-md)<a href="https://agentmods.dev/instructions/tashian/tsm/agents-md"><img src="https://agentmods.dev/badge/instructions/tashian/tsm/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.
<a href="https://agentmods.dev/instructions/tashian/tsm/agents-md"><img src="https://agentmods.dev/badge/instructions/tashian/tsm/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02122 | $0.02122 |
| Opus 5.5 | $0.00849 | $0.00849 |
| Sonnet 5.5 | $0.00424 | $0.00424 |
| Haiku 4.5 | $0.00212 | $0.00212 |
Grade A, and why
tsm 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 29d 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.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
tsm — Notes for Claude
tsm is a Touch-ID-gated secrets manager for macOS. Two halves in one repo:
- Go CLI (
tsm) at the repo root — user-facing commands and agent integration. - Swift daemon (
tsmd) intsmd/— owns the encrypted vault, Keychain, Touch ID, audit log.
They communicate via newline-delimited JSON-RPC 2.0 over a Unix socket. The CLI auto-spawns the daemon on first use.
Layout
go.mod, main.go # Go CLI entry
cmd/ # cobra subcommands (one file per command)
internal/
client/ # JSON-RPC Unix socket client + Caller interface
daemon/ # tsmd lifecycle (spawn, wait-for-socket)
jsonrpc/ # JSON-RPC 2.0 types
normalize/ # Kebab() — derives ids from display names
paths/ # XDG path resolution
tsmd/ # SwiftPM package (the daemon)
Sources/tsmd/ # one .swift file per concern
Tests/tsmdTests/ # XCTest, ~83 tests
Build & test
just test # go test ./... + swift test (tsmd/)
just build # both binaries → dist/bin/
cp dist/bin/tsm dist/bin/tsmd ~/.local/bin/
pgrep -fl "/.local/bin/tsmd" | awk '{print $1}' | xargs -r kill # stop the old daemon before reinstalling
The daemon must be ad-hoc signed (Apple Silicon requirement). swift build does this automatically. Do not run codesign --remove-signature on the binary.
Releasing
Tag-driven: git tag -a vX.Y.Z && git push origin vX.Y.Z triggers .github/workflows/release.yml. Full procedure and one-time setup are in RELEASING.md — read it before cutting a release. Rules that are easy to get wrong:
- Tag the merge commit on
main, never a feature branch. Expect onegithub-actions[bot]commit onmainafter every release (plugin version bump); pull before branching. - Don't hand-edit versions.
npm/*/package.jsonstay0.0.0(workflow rewrites from the tag at publish time).plugin/.claude-plugin/plugin.jsonand.claude-plugin/marketplace.jsonare bumped and committed by the workflow — that one has to land in git becauseclaude plugin updateonly refreshes when the manifest version changes. - Publish order is load-bearing.
@tashian/tsm-darwin-arm64publishes before the wrapper@tashian/tsmsooptionalDependenciesresolve. Don't reorder. - npm Trusted Publishing needs Node 24 / npm 11. Node 22's npm 10 silently publishes unauthenticated and 404s — don't downgrade
setup-node. - Irreversible. A published npm version can't be re-published. Confirm the version before pushing the tag.
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.
- 29d ago Changed · +1 lines · +132 tokens per session c2d8b5f7bab9
- 1mo ago First seen · 87 lines · 1,990 tokens per session scan A f38326c9676a
tsm AGENTS.md is an instructions file published in the GitHub repository tashian/tsm (10 stars, last pushed 10d ago), licensed MIT. It adds 2,122 tokens to every session, about $0.0085 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-09-22.
tsm AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tsm AGENTS.mdtashian/tsm | Instructions file | 10 | 10d ago | MIT | A | 2,122 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |