btca-cli

Source-first CLI for grounding questions in git repos, local directories, and npm packages. Add and manage resources (git repositories, local directories, npm packages) via btca add , then query them with btca ask using resource names or anonymous one-off URLs Ask questions across multiple resources simultaneously to cross-reference answers and connect concepts Configuration stored in btca.config.jsonc at project and global levels; project config overrides global settings and controls provider/model selection Supports both named persistent resources for ongoing work and ephemeral anonymous resources for one-time lookups without saving to config

INSTALLATION
npx skills add https://github.com/davis7dotsh/better-context --skill btca-cli
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$2a

Verify resources:

btca resources

Ask a question:

btca ask -r svelte-dev -q "How do I define remote functions?"

Common Tasks

  • Ask with multiple resources:
btca ask -r react -r typescript -q "How do I type useState?"
  • Ask with anonymous one-off resources (not saved to config):
# One-off git repo

btca ask -r https://github.com/sveltejs/svelte -q "Where is the implementation of writable stores?"

# One-off npm package

btca ask -r npm:react@19.0.0 -q "How is useTransition exported?"

Config Overview

  • Config lives in btca.config.jsonc (project) and ~/.config/btca/btca.config.jsonc (global).
  • Project config overrides global and controls provider/model and resources.

Troubleshooting

  • "No resources configured": add resources with btca add ... and re-run btca resources.
  • "Provider not connected": run btca connect and follow the prompts.
  • "Unknown resource": use btca resources for configured names, or pass a valid HTTPS git URL / npm:<package> as an anonymous one-off in btca ask.
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card