Meaningful Chunker
by @daymyandogg
Graph-based code intelligence API. Query any indexed codebase for architecture understanding, debugging, refactor safety analysis, and design principle mappi...
clawhub install meaningful-chunkerπ About This Skill
name: meaningful-chunker description: "Graph-based code intelligence API. Query any indexed codebase for architecture understanding, debugging, refactor safety analysis, and design principle mapping. Returns structured analysis with ranked chunks, execution paths, root-cause chains, and answer synthesis. Use when asked to analyze codebases, explain what a component does, trace a bug to its source, assess whether a change is safe, or understand the design principles governing a system." version: 1.2.2 metadata: openclaw: emoji: "π§ " homepage: "https://github.com/DaymyanDogg/Meaningful-Chunker" requires: env: - CHUNKER_API_URL - CHUNKER_API_KEY primaryEnv: CHUNKER_API_KEY
Meaningful Chunker β Code Intelligence API
A graph-based code analysis system that scans any codebase once, builds a semantic graph of all components and their relationships, then answers natural-language queries against that graph. Returns structured, ranked results with explanation β not raw file dumps.
β οΈ Required First Step
You MUST scan a codebase before using any query endpoints.
If you skip this, all queries will fail with a no_scan_loaded error.
Always start with POST /scan. See the Scanning a Codebase section below.
π Authentication Required
All endpoints except /health and /status require an API key.
Include this header in every request:
x-api-key: YOUR_API_KEY
Without this header, requests return 401 Unauthorized. Set your key as CHUNKER_API_KEY in your agent's environment.
Setup
Two environment variables are required before using this skill:
CHUNKER_API_URL β Base URL of the hosted API.
Example: https://meaningful-chunker-production.up.railway.app
CHUNKER_API_KEY β Your API key. Get a free key instantly at:
https://meaningful-chunker-production.up.railway.app/register/free
(100 queries/month, resets each calendar month, no credit card required)
Upgrade to Pro (2,000/month) at /upgrade.
Full OpenAPI spec available at: $CHUNKER_API_URL/docs
When to Use This Skill
Use one of the four query endpoints depending on intent:
| Intent | Endpoint | Example query |
|---|---|---|
| Understand what something does | /query/architecture | "What does the authentication module do?" |
| Trace a bug or failure | /query/debug | "Why is the login function failing?" |
| Assess safety of a change | /query/refactor | "Can I safely change the database connector?" |
| Understand design principles | /query/philosophy | "What principle governs error handling here?" |
All four endpoints accept the same request body and return the same response shape.
π 30-Second Quick Start
1. Scan a repo: POST /scan with {"repo_url": "https://github.com/owner/repo"}
2. Wait until: GET /status β "ready": true
3. Query: POST /query/architecture with {"query": "What does X do?"}
Scanning a Codebase
Scan a GitHub repo (recommended)
curl -s -X POST $CHUNKER_API_URL/scan \
-H "Content-Type: application/json" \
-H "x-api-key: $CHUNKER_API_KEY" \
-d '{"repo_url": "https://github.com/owner/repo"}'
The system clones the repo, builds the graph, and deletes the local clone automatically.
Supports any public GitHub, GitLab, or git URL β including /tree/main branch URLs.
Repos larger than 300MB are rejected with a clear error.
Scan a local path (self-hosted instances only)
curl -s -X POST $CHUNKER_API_URL/scan \
-H "Content-Type: application/json" \
-H "x-api-key: $CHUNKER_API_KEY" \
-d '{"project_path": "/path/to/project"}'
Check scan progress
curl $CHUNKER_API_URL/status
When "ready": true the graph is built and all query endpoints are available. Scanning typically takes 5β30 seconds depending on repo size.
How to Query
Request format
curl -s -X POST $CHUNKER_API_URL/query/architecture \
-H "Content-Type: application/json" \
-H "x-api-key: $CHUNKER_API_KEY" \
-d '{"query": "What does the payment processor do?"}'
Replace /query/architecture with the appropriate endpoint for your intent.
Optional: session continuity
Pass a session_id to maintain context across related queries. The system remembers what you asked recently and biases results toward the same area of the codebase.
curl -s -X POST $CHUNKER_API_URL/query/debug \
-H "Content-Type: application/json" \
-H "x-api-key: $CHUNKER_API_KEY" \
-d '{"query": "Why is the checkout flow failing?", "session_id": "my-investigation-001"}'
β‘ Quick Read Guide
For fastest results, read the response in this order:
1. answer_summary β one sentence telling you what the key component is and why it matters. Start here every time.
2. primary_path β the execution chain (A β B β C). Shows how things connect structurally.
3. CENTER tier chunks β the exact matches. These ARE the answer.
4. EPIPHANY tier chunks β critical cross-system connections. Don't skip these.
5. next_step β actionable follow-up already computed for you.
Everything else (BREAKTHROUGH, RELEVANT) is supporting context. Read it when you need depth, skip it when you don't.
Understanding the Response
Top-level synthesis fields
answer_summary β One-sentence synthesis. Start here. Tells you what the
key component is, its role, and why it matters.system_explanation β What the relevant subsystem does as a whole. Multiple
components explained together.
primary_path β The execution chain: "A β B β C". Shows how components
connect structurally. Most useful for debugging.
query_profile β Which intent was detected (architecture/debug/refactor_risk/
philosophy). Confirms the system understood your query.
confidence β "high" / "medium" / "low". Trust signal before reading context.
next_step β Actionable follow-up. What to look at next.
Debug-specific fields (present on /query/debug responses)
root_cause_analysis.execution_timeline β Call chain with [FAILING_CHUNK] bracketed
root_cause_analysis.root_cause_hypotheses β Ranked suspects with confidence + check instructions
root_cause_analysis.top_suspect β Single highest-suspicion chunk with specific check
Refactor-specific fields (present on /query/refactor responses)
structural_authority.change_risk β "untouchable" / "sensitive" / "local"
structural_authority.blast_radius β How many chunks/files break if this changes
top_risks β Top 5 most dangerous chunks in the whole codebase
Context tiers
CENTER (score=100) β Exact match. This IS what you asked about.
EPIPHANY (scoreβ₯99) β Critical cross-component connection. Don't skip these.
BREAKTHROUGH (scoreβ₯82) β Direct structural dependency. Important context.
RELEVANT (scoreβ₯70) β Meaningful but peripheral. Useful for broader understanding.
Each chunk includes:
name β component identifiertype β class / function / method / module_code / etc.file β source file pathsummary β one-line descriptionwhy_matched β how the system found this chunkneighbors β adjacent components in the graphexplanation (CENTER/EPIPHANY only) β roles, primary reason, importance summaryExample: Architecture Query
curl -s -X POST $CHUNKER_API_URL/query/architecture \
-H "Content-Type: application/json" \
-H "x-api-key: $CHUNKER_API_KEY" \
-d '{"query": "What does the UserAuthenticator do?"}'
Read: answer_summary β primary_path β CENTER explanation.roles β BREAKTHROUGH neighbors
Example: Debug Query
curl -s -X POST $CHUNKER_API_URL/query/debug \
-H "Content-Type: application/json" \
-H "x-api-key: $CHUNKER_API_KEY" \
-d '{"query": "Why is the login flow not working?"}'
Read: root_cause_analysis.top_suspect β execution_timeline β root_cause_hypotheses[0]
Example: Refactor Safety Query
curl -s -X POST $CHUNKER_API_URL/query/refactor \
-H "Content-Type: application/json" \
-H "x-api-key: $CHUNKER_API_KEY" \
-d '{"query": "Can I safely change the database connection handler?"}'
Read: structural_authority.change_risk β blast_radius β advice β top_risks
Relevance Tiers β Scoring Reference
| Tier | Score | What it means | |---|---|---| | CENTER | 100 | Exact match β this IS the answer | | EPIPHANY | β₯99 | Critical cross-system connection | | BREAKTHROUGH | β₯82 | Direct structural dependency | | RELEVANT | β₯70 | Meaningful peripheral context |
Results capped at: CENTERΓ3, EPIPHANYΓ5, BREAKTHROUGHΓ6, RELEVANTΓ5. Max 19 chunks per response.
Checking API Health
These endpoints are always open β no API key required:
curl $CHUNKER_API_URL/health
Returns {"status": "ok"} when the system is up and a project is indexed.
curl $CHUNKER_API_URL/status
Returns current graph stats: chunk count, edge count, cluster count, shortcut count, last scan time.
β οΈ Common Issues
Notes
session_id). Cross-session long-term focus is tracked via insight memory β frequently queried components surface higher automatically./status to check progress.βοΈ Configuration
Two environment variables are required before using this skill:
CHUNKER_API_URL β Base URL of the hosted API.
Example: https://meaningful-chunker-production.up.railway.app
CHUNKER_API_KEY β Your API key. Get a free key instantly at:
https://meaningful-chunker-production.up.railway.app/register/free
(100 queries/month, resets each calendar month, no credit card required)
Upgrade to Pro (2,000/month) at /upgrade.
Full OpenAPI spec available at: $CHUNKER_API_URL/docs
π Tips & Best Practices
session_id). Cross-session long-term focus is tracked via insight memory β frequently queried components surface higher automatically./status to check progress.