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.
npx agentmods add instructions/rusiaaman/chat.md/claude-mdgit clone --depth 1 https://github.com/rusiaaman/chat.mdWrote 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/rusiaaman/chat.md/claude-md)<a href="https://agentmods.dev/instructions/rusiaaman/chat.md/claude-md"><img src="https://agentmods.dev/badge/instructions/rusiaaman/chat.md/claude-md.svg" alt="Measured on agentmods" 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.00561 | $0.00561 |
| Opus 5 | $0.00280 | $0.00280 |
| Sonnet 5 | $0.00112 | $0.00112 |
| Haiku 4.5 | $0.00056 | $0.00056 |
Grade A, and why
chat.md CLAUDE.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 6d 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 — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
I want you to plan a vscode extension.
What is the extension about?
Any file with extension .chat.md
is used as chat interface with an LLM
Theory
The file is a view of MessageParam data structure which is the chat conversation history with role user or assistant and content a list of text type or image type.
States
The extension doesn't have any long term state, it only has configuration which is part of vscode settings
At any given point of time there's a listener running that listens to keystrokes, and decides to call an LLM for streaming or not.
At any given of point of time there are one or more streamers running.
A "streamer" is a thread that's streaming from LLM a set of tokens at a time.
.chat.md parsing
%% system
Respond succinctly.
%% user
Hi
%% assistant
Hello
%% line is treated as describing a role and starting a text block.
In user block a md like relative url is resolved for text or image file.
All text and image files are parsed as attachment of user message at the beginning of the user turn with file paths introduced in one of two formats:
- Using the "Attached file at" syntax: Attached file at /Users/arusia/test.ts
// content
Attached file at /Users/arusia/image.png [image content]
Both relative and absolute paths are supported in either format. Home directory paths using tilde (~) are also supported.
When to trigger streaming
If the file ends with an empty assistant block # %% assistant\s* without case match the streaming starts
How to stream idempotentically
At each loop step of the streamer there are a list of tokens received.
The history of tokens of current streamer (a single turn) is also saved in the streamer.
The past text is searched for in the last non-empty assistant block and if found the new tokens are appended regardless of presence of any subsequent text.
If no such text is found (say user deleted), the streamer should abort and cancelled. The streamer's data deleted.
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.
- 6d ago First seen · 89 lines · 561 tokens per session scan A 0ac381551996
chat.md CLAUDE.md is an instructions file published in the GitHub repository rusiaaman/chat.md (151 stars, last pushed 14d ago), licensed MIT. It adds 561 tokens to every session, about $0.0028 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.
Other instructions, from other repositories
WuKongIM AGENTS.md
AGENTS.md instructions for WuKongIM/WuKongIM, covering agents.md, project and rule levels, core runtime semantics, before you work and design and implementation.
agent-skills AGENTS.md
AGENTS.md instructions for GetStream/agent-skills, covering agents.md - codex entrypoint for the stream skill pack, sub-skills, codex-specific and install.
obsidian-agentic-chat AGENTS.md
AGENTS.md instructions for tardigrde/obsidian-agentic-chat, covering agents.md and fast feedback loop.
compare-mcp CLAUDE.md
Claude Code instructions for Cristophereasygoing927/compare-mcp, covering compare-mcp, architecture, running and key decisions.
Arkloop AGENTS.md
AGENTS.md instructions for qqqqqf-q/Arkloop, covering arkloop, architecture, backend services, backend workflow and 构建与测试(单一构建模式,无 build tag).
Arkloop CLAUDE.md
Claude Code instructions for qqqqqf-q/Arkloop, a project described as: 干净、强大、属于你的 AI Agent 平台 --AI agents, without the clutter.