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.5 $0.00023 $0.00278
Sonnet 5.5 $0.00011 $0.00139
Haiku 4.5 $0.00006 $0.00069

Measured 3mo ago against content hash 3e343e03c648, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

Origin

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.

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. 3mo 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 (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.

Related

anvien-cli compared with skills from other repositories

anvien-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
anvien-clitamnguyendinh/AnvienSkill12todayMITA57Claude Code, Codex
automemverygoodplugins/mcp-automemSkill675d agoMITA16Claude Code
automemverygoodplugins/mcp-automemSkill675d agoMITA16Claude Code
automemverygoodplugins/mcp-automemSkill675d agoMITA30Claude Code
github-multi-repoayushcodes10/echo-memSkill22mo agoApache-2.0A22Claude Code, Codex
source-command-github-release-managerayushcodes10/echo-memSkill22mo agoApache-2.0A16Claude Code, Codex
source-command-github-repo-architectayushcodes10/echo-memSkill22mo agoApache-2.0A20Claude Code, Codex