Skip to main content

Maximal token-efficient RAG for headless Claude. Uses your existing claude CLI; auth-agnostic; slice-level retrieval.

Project description

jragmunch-cli

Maximal token-efficient RAG for headless Claude. Uses your existing claude CLI; auth-agnostic; slice-level retrieval powered by jcodemunch-mcp.

Why

Headless Claude (claude -p) is the right substrate for code automation — CI bots, batch refactors, fan-out agents, internal "chat with your repo" services. The default pattern is "stuff the relevant files into the prompt and pray," which burns tokens on code the model never needed.

jragmunch wraps claude -p with jcodemunch pre-wired so the model retrieves slices on demand instead of receiving giant context dumps.

Install

pip install jragmunch
jragmunch doctor

Requires the claude CLI on PATH (npm install -g @anthropic-ai/claude-code) and jcodemunch-mcp registered as an MCP server.

Usage

jragmunch ask "how does auth work in this repo"
jragmunch ask "what does AuthMiddleware.verify do" --json
jragmunch index --repo .
jragmunch run "Refactor the rate-limiter to use a token bucket"

Verbs (v0.1)

Verb Status Purpose
doctor shipped Verify claude + MCP wiring
ask shipped Retrieval-augmented Q&A
index shipped Index a repo via jcodemunch
run shipped Power-user prompt passthrough
review shipped Diff-aware PR review
changelog shipped Summarize changes since tag
refactor planned Fan-out batch refactor
tests planned Generate tests for untested symbols
sweep planned Pattern-driven cleanup

See PRD.md for the full product spec.

Principles

  • Auth-agnostic. Whatever auth the local claude binary uses, jragmunch uses.
  • Slice, don't dump. Default behavior is jcodemunch retrieval.
  • Structured output. Every verb returns JSON with citations and _meta (tokens, cost, wall time).
  • Composable. --print-command shows the exact claude -p invocation that would run.

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jragmunch-0.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jragmunch-0.1.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file jragmunch-0.1.0.tar.gz.

File metadata

  • Download URL: jragmunch-0.1.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for jragmunch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bff02c931f9f8af9dd416c25320f0df5fdff9a9a26247e35d5e32bb8d953f18c
MD5 e374ac33aa6827e2751aed8302d825b3
BLAKE2b-256 0fdf94cc7eb4e8ceddbdfe70e9762c70f56a285a759d7d21dc35fbfb6ce16d4b

See more details on using hashes here.

File details

Details for the file jragmunch-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jragmunch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for jragmunch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a489a43e2d47f3e6fc3ee32f291218f9901c3d786d0feebfc626d15e5552af22
MD5 14085cfd420e4160bd92ee9fbb5ec7b5
BLAKE2b-256 51f337559a97d7fef188607adeac4b6f32012b4fcbe66b86e1eb5d4df15adf81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page