init

init is a command for Claude Code from jghiringhelli/codeseeker. It costs 0 tokens per session (361 once invoked), scanned A, original, Apache-2.0.

A command that initializes CodeSeeker's semantic search and knowledge graph for the current project. Semantic search finds related code by meaning, not only exact words.

In plain words
What is it for?
Use it at the start of work on a project when you need CodeSeeker to index its code and build its knowledge graph.
Why use it?
It prepares project-wide search and relationship data so code can be located and understood more easily.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the codeseeker plugin — 6 commands shipped together

Good fit Use it at the start of work on a project when you need CodeSeeker to index its code and build its knowledge graph.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jghiringhelli/codeseeker/init
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.

Clone the repo
git clone --depth 1 https://github.com/jghiringhelli/codeseeker

Made for: Claude Code.

Or install codeseeker, the plugin that ships this one along with the rest of its 6 commands.

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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/jghiringhelli/codeseeker/init/github.svg)](https://agentmods.dev/commands/jghiringhelli/codeseeker/init)
Your own site
<a href="https://agentmods.dev/commands/jghiringhelli/codeseeker/init"><img src="https://agentmods.dev/badge/commands/jghiringhelli/codeseeker/init/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 init

Your own site · 80×15
<a href="https://agentmods.dev/commands/jghiringhelli/codeseeker/init"><img src="https://agentmods.dev/badge/commands/jghiringhelli/codeseeker/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 361 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 original No closer match found 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.00000 $0.00361
Opus 5.5 $0.00000 $0.00144
Sonnet 5.5 $0.00000 $0.00072
Haiku 4.5 $0.00000 $0.00036

Measured 2mo ago against content hash 2220845a18e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

init 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.

plugins/codeseeker/commands/init.md · 47 lines

What it actually says

Initialize CodeSeeker for this project

Build the semantic index and knowledge graph for the current project.

What this does:

  1. Scans and chunks all source files, creating 384-dim vector embeddings
  2. Builds a knowledge graph of imports, calls, and inheritance
  3. Generates RAPTOR directory summaries
  4. Detects coding standards from existing patterns
  5. Registers the project so later calls can resolve it by name or path

Instructions for Claude:

CodeSeeker does not index on first search — the project must be initialized once.

  1. Start indexing via the MCP tool:

    {
      "action": "index",
      "index": { "op": "init", "path": "<absolute path of the project root>" }
    }
    
  2. Indexing runs in the background. Poll until indexing_status is completed:

    { "action": "index", "index": { "op": "status" } }
    
  3. Report files indexed, chunks created, graph nodes and edges, and whether coding standards were detected.

  4. If large generated directories were indexed (build output, vendored code, Unity Library/), exclude them and reindex:

    {
      "action": "index",
      "project": "<root>",
      "index": { "op": "exclude", "exclude_op": "exclude", "paths": ["dist/**"], "reason": "build output" }
    }
    

If MCP tools are not available, run the CLI instead:

npm install -g codeseeker   # if not already installed
codeseeker init
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. 2mo ago Changed · +18 lines 2220845a18e4
  2. 3mo ago First seen · 29 lines · 0 tokens per session scan A 5b737d8ea3ad

Subscribe to this mod's changes

init is a command published in the GitHub repository jghiringhelli/codeseeker (22 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 361 tokens. 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.

Related

init compared with commands from other repositories

init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
initjghiringhelli/codeseekerCommand223d agoApache-2.0A0Claude Code
cost-optimizewshobson/agentsCommand43k2d agoMITA26Claude Code
api-mockwshobson/agentsCommand43k2d agoMITA19Claude Code
data-driven-featurewshobson/agentsCommand43k2d agoMITA14Claude Code
performance-optimizationwshobson/agentsCommand43k2d agoMITA13Claude Code
refactor-cleanwshobson/agentsCommand43k2d agoMITA26Claude Code
deps-auditwshobson/agentsCommand43k2d agoMITA23Claude Code