Skip to main content

codenavigator

AI coding-agent tool: SQLite FTS5 semantic class index for C# codebases.

Natural-language keyword search across C# class / struct / interface / record declarations. Parser-only baseline + optional AI enrichment via Claude Code CLI. Local web dashboard for browsing and editing metadata. Designed to slot in as a tool for AI coding agents (Claude Code, Cursor, etc.) to shortlist candidate files before deep reads.

Install

Global (simple)

pip install codenavigator

Registers a codenav CLI on PATH. Python 3.11+.

cd <your-project>
python -m venv Tools/codenavigator
Tools/codenavigator/Scripts/pip install codenavigator   # Windows
# Tools/codenavigator/bin/pip install codenavigator     # Unix

# Optional launcher at project root (PowerShell):
#   codenav.ps1
#     & "$PSScriptRoot\Tools\codenavigator\Scripts\codenav.exe" @Args

Add to .gitignore:

Tools/codenavigator/

This keeps the venv (binary + dependencies) out of git while letting the launcher script ship with the repo.

Quickstart

cd <your-csharp-repo>

# 1) Parser-only baseline index (no AI calls, no .cs file changes)
codenav reindex --full --no-ai

# 2) Search
codenav search "주문 처리"
codenav search "DataCollector" --limit 30

# 3) Optional: AI fills in descriptions by inserting `// ---` frontmatter blocks
codenav frontmatter gen --limit 30 --apply   # requires `claude` CLI on PATH

# 4) Re-index to pick up the new frontmatter
codenav reindex --full --no-ai

# 5) Local web UI
codenav ui --port 9876

Frontmatter convention

To give a C# class a human-authored description, place a YAML-style comment block directly above its declaration:

// ---
// description: 은행 계좌 도메인 엔티티
// tags: [account, banking, domain]
// ---
public class Account { ... }
  • description: single-line string.
  • tags: inline sequence; comma-separated.
  • An existing /// <summary> XML doc takes precedence.

Full spec: docs/frontmatter.md.

Commands

Command Description
codenav reindex --full [--no-ai] Rebuild the whole index. --no-ai skips Claude enrichment.
codenav reindex --files <path>... Re-index specific files (paths relative to --root or absolute).
codenav reindex --changed Index git-staged .cs files only.
codenav search <query> [--limit N] FTS5 + tag-hit bonus search (default 30, --limit 0 = unlimited).
codenav frontmatter gen [--apply] AI-driven // --- block insertion (dry-run by default).
codenav status Index statistics.
codenav delete --file <path> --yes Remove indexed entries for a single file.
codenav ui --port <N> Launch the local web dashboard.

--root <path> selects the repo root (default: cwd). The SQLite DB lives at <root>/.codenav/index.sqlite.

.codenavignore

gitignore-style file at the repo root. Supports:

# tree prefix
tools/

# glob anywhere
*AutoGen*

# bare name (any path segment)
GeneratedFiles

Search ranking

  • FTS5 bm25 over class_name, namespace, description, tags, bigram (column weights 3.0 / 2.0 / 1.0 / 2.0 / 1.5).
  • +2.0 bonus per exact tag hit.
  • PascalCase auto-split (DataCollector → data, collector).
  • CJK bigram tokenization for Korean / Chinese / Japanese ("문서처리" → ["문서", "서처", "처리"]).
  • stale=1 rows surface in results only if their description is non-empty (marked [stale]).

Pre-commit hook

Automatic incremental indexing of staged .cs files:

# from your repo root
bash <(curl -s https://raw.githubusercontent.com/JaeCheon8587/codenavigator/main/install-hook.sh)
# or PowerShell
iwr -useb https://raw.githubusercontent.com/JaeCheon8587/codenavigator/main/install-hook.ps1 | iex

Installs a Git pre-commit hook calling codenav reindex --changed.

Use with Claude Code

If you also use the claudecode-for-me Claude Code plugin, two slash commands wrap codenav:

  • /claudecode-for-me:codenav-bootstrap → codenav reindex --full --no-ai.
  • /claudecode-for-me:codenav-frontmatter-gen → codenav frontmatter gen with dry-run / apply safety.

Both delegate to the codenav CLI on PATH. The plugin does not bundle the tool — pip install codenavigator is the single source.

License

MIT

Metadata

Release files for codenavigator 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codenavigator 1.0.2
File Size Uploaded Provenance Actions
codenavigator-1.0.2.tar.gz 38.6 kB With provenance Details for codenavigator-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codenavigator 1.0.2
File Interpreter ABI Platform Actions
codenavigator-1.0.2-py3-none-any.whl Python 3 none any Details for codenavigator-1.0.2-py3-none-any.whl

Total release size: 69.9 kB

Release files / codenavigator-1.0.2.tar.gz

Download URL codenavigator-1.0.2.tar.gz
Size 38.6 kB
Tags Source
SHA-256 checksum
How to use checksums
61e012775f1db6fa0e77526d346a02a2d694768120d6e2f6f62728cbb0748d96
BLAKE2b-256 checksum
How to use checksums
2a2705a79eeabe939d6cccb0e421cfae8b00788c9c7917a86e64812aa28979a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / codenavigator-1.0.2-py3-none-any.whl

Download URL codenavigator-1.0.2-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1de7393c4da95764bc437aa9056de1be47671fba3224c6819b09d31ddd39f0c2
BLAKE2b-256 checksum
How to use checksums
25e42c911e3e16a1353d362ef1711f854d8d4a066c64056ad158bf750ea861a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Security for codenavigator 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codenavigator-1.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page