Code Research
Perform deep research on "$ARGUMENTS" using ChunkHound.
Configuration
- •Read
~/.claude/skills/chunkhound-config.json— containsembedding_args,llm_args, anddb_dir. - •Read
~/.claude/skills/projects.json— maps project names to paths.
Steps
- •
Read the config and registry files listed above.
- •
Resolve the current project from your working directory by matching against the project paths in the registry. If the cwd is inside a project path, that's the project.
- •
Check if the DB exists. If
{db_dir}/{name}.duckdbdoes not exist, index it first:bashchunkhound index {project_path} --db {db_dir}/{name}.duckdb {embedding_args} - •
Run deep research:
bashchunkhound research "$ARGUMENTS" --db {db_dir}/{name}.duckdb {embedding_args} {llm_args} - •
Present the findings to the user. The research output is a comprehensive markdown analysis — summarize the key findings and include the most relevant details. Read any files referenced in the output if more context would help answer the user's question.
- •
If no results or the DB doesn't exist and we're not in a project, use AskUserQuestion to ask:
- •Question: "Not inside a registered project. Which project should I research?"
- •Options: one option per registered project (only those whose DB files exist), plus "All projects".
- •
If the user selects a project, run the research command against that project's DB.