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 skills add tamnguyendinh/Anvien --skill anvien-cligit clone --depth 1 https://github.com/tamnguyendinh/AnvienWrote 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/skills/tamnguyendinh/anvien/anvien-cli)<a href="https://agentmods.dev/skills/tamnguyendinh/anvien/anvien-cli"><img src="https://agentmods.dev/badge/skills/tamnguyendinh/anvien/anvien-cli/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/skills/tamnguyendinh/anvien/anvien-cli"><img src="https://agentmods.dev/badge/skills/tamnguyendinh/anvien/anvien-cli.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.00057 | $0.00695 |
| Opus 5.5 | $0.00023 | $0.00278 |
| Sonnet 5.5 | $0.00011 | $0.00139 |
| Haiku 4.5 | $0.00006 | $0.00069 |
Grade A, and why
anvien-cli 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 3mo 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.
This is a copy
81% identical to gitnexus-cli — 68 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Anvien CLI Commands
All commands work via npx — no global install required.
Commands
analyze — Build or refresh the index
anvien analyze
Run from the project root. This parses all source files, builds the knowledge graph, writes it to .anvien/, and generates CLAUDE.md / AGENTS.md context files.
| Flag | Effect |
|---|---|
--force |
Force full re-index even if up to date |
--embeddings |
Enable embedding generation for semantic search (off by default) |
When to run: First time in a project, after major code changes, or when anvien://repo/{name}/context reports the index is stale.
status — Check index freshness
anvien status
Shows whether the current repo has a Anvien index, when it was last updated, and symbol/relationship counts. Use this to check if re-indexing is needed.
clean — Delete the index
anvien clean
Deletes the .anvien/ directory and unregisters the repo from the global registry. Use before re-indexing if the index is corrupt or after removing Anvien from a project.
| Flag | Effect |
|---|---|
--force |
Skip confirmation prompt |
--all |
Clean all indexed repos, not just the current one |
wiki — Generate documentation from the graph
anvien wiki
Runs the local wiki capability for the current repository. Check the current wiki mode first; local-only mode must not fall back to remote providers.
| Flag | Effect |
|---|---|
--force |
Force full regeneration |
--model <model> |
LLM model (default: minimax/minimax-m2.5) |
--base-url <url> |
LLM API base URL |
--api-key <key> |
LLM API key |
--concurrency <n> |
Parallel LLM calls (default: 3) |
--gist |
Publish wiki as a public GitHub Gist |
list — Show all indexed repos
anvien list
Lists all repositories registered in ~/.anvien/registry.json. The MCP list_repos tool provides the same information.
After Indexing
- Read
anvien://repo/{name}/contextto verify the index loaded - Use the other Anvien skills (
exploring,debugging,impact-analysis,refactoring) for your task
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 83 lines · 57 tokens per session scan A 3e343e03c648
anvien-cli is a skill published in the GitHub repository tamnguyendinh/Anvien (12 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 695 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 81% identical to gitnexus-cli, differing in 68 lines, and is treated as a copy.
anvien-cli compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| anvien-clitamnguyendinh/Anvien | Skill | 12 | today | MIT | A | 57 | Claude Code, Codex |
| automemverygoodplugins/mcp-automem | Skill | 67 | 5d ago | MIT | A | 16 | Claude Code |
| automemverygoodplugins/mcp-automem | Skill | 67 | 5d ago | MIT | A | 16 | Claude Code |
| automemverygoodplugins/mcp-automem | Skill | 67 | 5d ago | MIT | A | 30 | Claude Code |
| github-multi-repoayushcodes10/echo-mem | Skill | 2 | 2mo ago | Apache-2.0 | A | 22 | Claude Code, Codex |
| source-command-github-release-managerayushcodes10/echo-mem | Skill | 2 | 2mo ago | Apache-2.0 | A | 16 | Claude Code, Codex |
| source-command-github-repo-architectayushcodes10/echo-mem | Skill | 2 | 2mo ago | Apache-2.0 | A | 20 | Claude Code, Codex |