benmarte

39 mods across 2 repositories, 12 stars between them.

SessionStart

01

benmarte/codemunch

Hook Claude Code

Runs when a session starts, executing sessionstart.sh via bash. From benmarte/codemunch.

7 5mo ago A tokens not measured copy · 55% MIT

PreToolUse

02

benmarte/codemunch

Hook Claude Code

Runs before the agent uses a tool for Read, Grep and Glob tool calls, executing pretooluse.sh via bash (3 commands). From benmarte/codemunch.

7 5mo ago A tokens not measured copy · 55% MIT

codemunch

03

benmarte/codemunch

Plugin Claude Code

Plugin marketplace listing 1 plugin: codemunch.

7 5mo ago A tokens not measured original MIT

codemunch

04

benmarte/codemunch

Plugin Claude Code

Zero-config, token-efficient code exploration for any language. Auto-indexes your codebase and keeps the index fresh — just search, fetch, or explore. Uses LSP for precision when available, falls back to ctags, then ripgrep. Up to 99% fewer tokens than reading full files.

7 5mo ago A tokens not measured original MIT

codemunch CLAUDE.md

05

benmarte/codemunch

Instructions file

Instructions for benmarte/codemunch, covering project rules, release checklist, 1. changelog, 2. version bump and 3. readme.

7 5mo ago A 469 tokens original MIT

disable

06

benmarte/codemunch

Command

Disable codemunch enforcement — turns off the PreToolUse hook and removes CLAUDE.md rules.

7 5mo ago A 20 tokens original MIT

enable

07

benmarte/codemunch

Command

Re-enable codemunch enforcement — turns on the PreToolUse hook and restores CLAUDE.md rules.

7 5mo ago A 21 tokens original MIT

explore

08

benmarte/codemunch

Command

Token-efficient codebase overview showing symbol map, file structure, and entry points without reading source files.

7 5mo ago A 19 tokens original MIT

fetch

09

benmarte/codemunch

Command

Fetch the exact source code of a named symbol, reading only the relevant lines.

7 5mo ago A 15 tokens original MIT

index

10

benmarte/codemunch

Command

Manually build or refresh the codemunch symbol index.

7 5mo ago A 11 tokens original MIT

init

11

benmarte/codemunch

Command

Add codemunch instructions to your project CLAUDE.md for automatic token-efficient exploration.

7 5mo ago A 17 tokens original MIT

refs

12

benmarte/codemunch

Command

Find all references to a symbol across the codebase using LSP or ripgrep.

7 5mo ago A 16 tokens original MIT

search

13

benmarte/codemunch

Command

Search for symbols by name, kind, file, or container with no file reads.

7 5mo ago A 16 tokens original MIT

status

14

benmarte/codemunch

Command

Show codemunch configuration, index status, and session token savings.

7 5mo ago A 13 tokens original MIT

upgrade

15

benmarte/codemunch

Command

Check for and install the latest version of codemunch.

7 5mo ago A 11 tokens original MIT

ctags

16

benmarte/codemunch

Skill Claude CodeCodex

Index the codebase using Universal ctags when LSP is unavailable for a language. Generates a JSON symbol table with name, kind, file, line, and end line for all detected symbols. Supports 40+ languages natively.

7 5mo ago A 47 tokens original MIT

detect-lsp

17

benmarte/codemunch

Skill Claude CodeCodex

Detect which Language Server Protocol (LSP) servers are available for the current project and configure codemunch to use them. Checks for installed language servers across all major languages and writes the LSP config to .claude/codemunch/config.json.

7 5mo ago A 50 tokens original MIT

fetch

18

benmarte/codemunch

Skill Claude CodeCodex

Fetch the exact source code of a named symbol (function, class, method, type) from the codebase using the codemunch index. Reads only the lines for that symbol — not the whole file. Uses LSP for hover docs and type info when available. This is the core token-saving operation.

7 5mo ago B 62 tokens original MIT

index

19

benmarte/codemunch

Skill Claude CodeCodex

Build or refresh the codemunch symbol index for the current project. Walks every source file, extracts all symbols (functions, classes, methods, constants, types) with their exact file location and line range, and writes a fast-lookup index to .claude/codemunch/index.json. Uses LSP when available, falls back to ctags…

7 5mo ago B 77 tokens original MIT

lsp

20

benmarte/codemunch

Skill Claude CodeCodex

Use Language Server Protocol operations directly for precise cross-file navigation. Find all references to a symbol, go to definition, get hover documentation, and rename symbols across the codebase. Only available when a language server is configured for the project language.

7 5mo ago B 48 tokens original MIT

rg-fallback

21

benmarte/codemunch

Skill Claude CodeCodex

Index symbols using ripgrep regex patterns when neither LSP nor ctags is available. Covers TypeScript, JavaScript, Python, Go, Rust, Ruby, Java, Kotlin, C, C++, PHP, and can be extended with custom patterns for any language via .claude/codemunch/config.json.

7 5mo ago A 62 tokens original MIT

search

22

benmarte/codemunch

Skill Claude CodeCodex

Search the codemunch index for symbols matching a name, pattern, kind (function/class/method), or file. Returns a compact list of matches with location and signature — no source code read until you fetch. Use this to explore unfamiliar codebases token-efficiently.

7 5mo ago A 54 tokens original MIT

staleness-gate

23

benmarte/codemunch

Skill Claude CodeCodex

Automatic index freshness gate. Called before any query command (search, fetch, refs, explore) to ensure the index exists and is up-to-date. Handles first-run setup, incremental re-indexing, and staleness detection — so users never need to manually index.

7 5mo ago A 54 tokens original MIT

SessionStart

24

benmarte/autoimprove

Hook Claude Code

Runs when a session starts, executing sessionstart.sh via bash. From benmarte/autoimprove.

5 5mo ago A tokens not measured copy · 55% MIT