ingest_repo
Transform a code repository into an AI-summarized Obsidian vault with searchable ChromaDB index for developer queries.
Instructions
Ingest a code repository into codelore — generates the vault and search index.
Accepts either a local directory path or a GitHub URL (https://github.com/owner/repo). Runs the full pipeline:
Generates AI summaries for every file and directory via Claude CLI
Writes an Obsidian-compatible vault of markdown notes
Indexes code chunks as developer questions into ChromaDB
extra_frontmatter_json — optional JSON object of extra fields to add to every vault note's frontmatter, e.g. '{"project": "myapp", "status": "draft", "tags": ["backend", "python"]}'. Strings, numbers, booleans, and flat lists are all supported. These fields are merged after the built-in fields.
After ingestion, the tool prints the vault and chroma paths. Pass these as vault_root and chroma_path to the query tools, or set them as env vars.
WARNING: calls 'claude --print' once per file + directory + chunk. Run estimate_cost first on large repos.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path_or_url | Yes | ||
| vault_output_path | No | ||
| extra_frontmatter_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |