btca is a CLI for asking questions about libraries/frameworks by cloning their repos locally and searching the source directly.
Dev docs are in the apps/cli directory.
bun add -g btca
btca --helpAsk a question:
btca ask -t svelte -q "How do stores work in Svelte 5?"Open the TUI:
btca chat -t svelteRun as a server:
btca serve -p 8080Then POST /question with:
{ "tech": "svelte", "question": "how does the query remote function work in sveltekit?" }Keep an OpenCode instance running:
btca openOn first run, btca creates a default config at ~/.config/btca/btca.json. That’s where the repo list + model/provider live.
- get the git repo for a package using bun:
bun pm view react repository.url- tui for working with btca (config, starting chat, server, etc.)
- mcp server
- multiple repos for a single btca instance
- fetch all the branches to pick from when you add a repo in the tui
- cleaner streamed output in the ask command