anvien-cli

anvien-cli is a skill for Claude Code, Codex from tamnguyendinh/Anvien. It costs 57 tokens per session (695 once invoked), scanned A, a copy of gitnexus-cli, MIT.

A command-line tool for creating and maintaining an index of a software project’s files, symbols, and relationships.

In plain words
What is it for?
Use it to analyze a repository, check index status, remove an index, generate a project wiki, or refresh the analysis after major changes.
Why use it?
It gives the other Anvien tools an up-to-date map of the codebase and lets you check or repair that map when it becomes outdated.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Use it to analyze a repository, check index status, remove an index, generate a project wiki, or refresh the analysis after major changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tamnguyendinh/anvien/anvien-cli
Install

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.

Any agent
npx skills add tamnguyendinh/Anvien --skill anvien-cli
Clone the repo
git clone --depth 1 https://github.com/tamnguyendinh/Anvien

Made for: Claude Code, Codex.

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 anvien-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/tamnguyendinh/anvien/anvien-cli/github.svg)](https://agentmods.dev/skills/tamnguyendinh/anvien/anvien-cli)
Your own site
<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.

agentmods 80×15 button for anvien-cli

Your own site · 80×15
<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>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 695 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 81% copy Near-identical to another mod 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.00057 $0.00695
Opus 5 $0.00028 $0.00347
Sonnet 5 $0.00011 $0.00139
Haiku 4.5 $0.00006 $0.00069

Measured 10d ago against content hash 3e343e03c648, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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 10d 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.

Origin

This is a copy

81% identical to gitnexus-cli — 63 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.

anvien-claude-plugin/skills/anvien-cli/SKILL.md · 83 lines

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

  1. Read anvien://repo/{name}/context to verify the index loaded
  2. Use the other Anvien skills (exploring, debugging, impact-analysis, refactoring) for your task

Read the full file on GitHub · 83 lines

Files

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.

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. 10d ago First seen · 83 lines · 57 tokens per session scan A 3e343e03c648

Subscribe to this mod's changes

anvien-cli is a skill published in the GitHub repository tamnguyendinh/Anvien (9 stars, last pushed 2d ago), licensed MIT. It adds 57 tokens to every session and 695 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 81% identical to gitnexus-cli, differing in 63 lines, and is treated as a copy.

Related

Other skills, from other repositories

booboo

Build, query, deploy and debug a Booboo brain — one graph fusing structure, knowledge, memory, agents and automations, queryable by REST or MCP and viewable in 3D. Use when the user mentions Booboo, booboo.config.yaml, brain.json, org.booboo.json, an organigram of agents, "boot my agent from the org", a 3D system…

jessymariau/booboo · 121 tokens

booboo-query

Query a Booboo brain well over MCP or REST — boot from the org first, search before fetching a node, choose neighbors versus path, and write back durable memories and reports. Use when an agent has a Booboo MCP server connected and needs to orient, find facts, trace how two things connect, or record what it learned.

jessymariau/booboo · 74 tokens

booboo-vault

Emit a Booboo brain as a wiki-linked markdown vault for Obsidian, author authored edges with double-bracket links, and read the ingestion quality gate. Use when someone wants their system as plain files, an Obsidian second brain generated from real data, a portable insurance copy, or wants to know why their orphan…

jessymariau/booboo · 76 tokens

agent-carnet

Use this skill when the user asks to save, recall, find, or organize notes. Triggers on: 'remember this', 'save this', 'note this', 'what did we discuss about...', 'check the notebook', 'find in carnet'. Also use proactively when discovering findings worth preserving across sessions.

yamadashy/repomix · 67 tokens

neat-freak

Knowledge and governance closeout: reconcile project docs, rule files (CLAUDE.md/AGENTS.md), authorized agent memory, and workspace residue with what the code and runtime actually do, so the next session or the next person starts from one current answer. Trigger when the user names "neat-freak", "洁癖", or "/neat" — and…

KKKKhazix/khazix-skills · 202 tokens

mnemos

Task-scoped memory lifecycle — typed MnemoGraph prevents lossy context compaction by treating facts/decisions/code-refs/handoffs as distinct node types with per-type eviction policies.

alinaqi/maggy · 40 tokens