Borrowing it
Nothing to install: this file belongs to spuentesp/lain. 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/spuentesp/lain/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/spuentesp/lainWrote 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/spuentesp/lain/copilot-instructions)<a href="https://agentmods.dev/instructions/spuentesp/lain/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/spuentesp/lain/copilot-instructions/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/spuentesp/lain/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/spuentesp/lain/copilot-instructions.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.00960 | $0.00960 |
| Opus 5.5 | $0.00384 | $0.00384 |
| Sonnet 5.5 | $0.00192 | $0.00192 |
| Haiku 4.5 | $0.00096 | $0.00096 |
Grade A, and why
lain copilot-instructions.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 2mo 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 — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LAIN — Codebase Intelligence
You have access to the Lain MCP server (tool prefix mcp__lain__). Lain indexes
the current workspace and exposes tools for structural queries, semantic
search, and code navigation.
When to use lain
Reach for lain when the question is about structure, not single lines:
- "Where should I start reading this codebase?"
- "What does X depend on?" / "Who calls X?"
- "If I change X, what else breaks?"
- "Where do we do X?" (semantic search by meaning)
- "What is this function/class doing?"
- "Is there unused code?"
- "What files change together?"
- "Which test covers X?" / "What's untested?"
Skip lain for simple file reads, single-line grep, or trivial edits.
The most useful tools
| Tool | When to use it |
|---|---|
get_health |
First call in any session. Returns the resolved workspace, node counts, and status. |
find_anchors |
"Where should I start reading?" — most-called, most-stable symbols. |
list_entry_points |
Find main()s and entry points. |
explore_architecture |
High-level module/file tree. |
get_blast_radius |
"If I change X, what breaks?" — transitive callers. |
trace_dependency |
"What does X depend on?" — callees + imports. |
get_call_chain |
Specific call path between two symbols. |
semantic_search |
Find code by meaning (e.g. "rate limiting", "retry logic"). Body excerpts included. |
explain_symbol |
"What is this symbol?" — source + callers + callees + anchor. |
get_code_snippet |
Read the exact source of a symbol by id. |
find_dead_code |
Unused definitions (filters false positives). |
get_coupling_radar |
"What files change with X?" (co-change history). |
get_cross_runtime_callers |
Cross-language callers (e.g. Python → Rust FFI). |
find_test_file / find_untested_functions / get_coverage_summary |
Test discovery and coverage. |
get_file_diff / get_commit_history |
Git operations on the workspace. |
Workflows
"I'm new here, where do I start?"
get_health— confirm the workspace resolved correctly.find_anchors limit=5— top entry points.explain_symbol <top anchor>— understand it.get_blast_radius <top anchor>— see what depends on it.
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.
- 2mo ago First seen · 77 lines · 960 tokens per session scan A 81466c81c20e
lain copilot-instructions.md is an instructions file published in the GitHub repository spuentesp/lain (9 stars, last pushed today), licensed MIT. It adds 960 tokens to every session, about $0.0038 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.
lain copilot-instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lain copilot-instructions.mdspuentesp/lain | Instructions file | 9 | today | MIT | A | 960 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | 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 |