Skip to main content

Indagar

Deep research from the command line.

Indagar asks a question, plans sub-questions, searches multiple sources, reads what it finds, and produces a cited research dossier. The name is Spanish for to investigate, inquire, or probe.

This repository is the Phase 0 skeleton: a working CLI, a multi-provider search chain, a deterministic research plan, and a source dossier. LLM planning, extraction, and synthesis are the next phase.

Quick start

git clone https://github.com/michael-borck/indagar.git
cd indagar
uv venv
source .venv/bin/activate
uv pip install -e '.[dev]'

indagar doctor
indagar search "retrieval augmented generation" --limit 5
indagar research "Does retrieval augmented generation reduce hallucination?" \
  --max-sources 10

If the checkout is on an exFAT drive, create the virtual environment on a local disk instead: uv venv ~/.venvs/indagar.

The research command writes a Markdown dossier and a JSON run record under runs/. Every source keeps its URL, provider, and sub-question.

Configuration

Copy .env.example to .env and set the providers you have.

Variable Purpose
FIRECRAWL_URL Self-hosted or cloud Firecrawl base URL, e.g. http://localhost:3002
FIRECRAWL_API_KEY Optional key when Firecrawl is behind an auth gate
BRAVE_API_KEY Brave Search API key
SERPER_API_KEY Serper API key
SEARXNG_URL Self-hosted SearXNG base URL
INDAGAR_SEARCH_ORDER Provider order. Default firecrawl,brave,serper,searxng
ANTHROPIC_API_KEY Anthropic key for the next LLM phase
OPENAI_API_KEY OpenAI-compatible key
OPENAI_BASE_URL OpenAI-compatible base URL, including Ollama/LM Studio
INDAGAR_MAX_SOURCES Sources per run. Default 12
INDAGAR_MAX_SECONDS Wall-clock budget. Default 300
INDAGAR_SEARCH_LIMIT Results requested per sub-question. Default 8

indagar doctor shows what is configured.

Status

  • CLI with doctor, search, and research
  • Firecrawl, Brave, Serper, and SearXNG adapters
  • Ordered fallback, over-fetch, URL dedupe, and a 10-minute cache
  • Deterministic research plan and cited source dossier
  • LLM planner, claim extraction, and synthesis
  • Web UI and desktop shell
  • Academic, podcast, and video sources

See SPEC.md for the design and roadmap.

Development

uv pip install -e '.[dev]'
ruff check .
ruff format --check .
pytest -q

Licence

MIT. See LICENSE.

Metadata

Release files for indagar 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for indagar 0.1.0
File Size Uploaded Provenance Actions
indagar-0.1.0.tar.gz 15.8 kB Without provenance Details for indagar-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for indagar 0.1.0
File Interpreter ABI Platform Actions
indagar-0.1.0-py3-none-any.whl Python 3 none any Details for indagar-0.1.0-py3-none-any.whl

Total release size: 30.7 kB

Release files / indagar-0.1.0.tar.gz

Download URL indagar-0.1.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4f5e823b9c3fe9c8b417780e2644182df7a3fc7f6ed6c15c7371f664a8956b1a
BLAKE2b-256 checksum
How to use checksums
3e2e76a16cf4f9aa911706e0a1e57deeb82ac1cfdb1267c742eab9cb90260c4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Release files / indagar-0.1.0-py3-none-any.whl

Download URL indagar-0.1.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5d59bc812fe0efdc4013883b33302d05bcc2496a3d2ea0d9a7a0f9f4fdbff8b
BLAKE2b-256 checksum
How to use checksums
c22c2956e90b874ade28e78e8fa0f2d898cc58cdf76e3aec0fc390cd594238f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Security for indagar 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page