Query bknd with btca
btca is a CLI tool for asking questions about git repos. It clones repositories, indexes them, and answers queries using AI.
Quick Setup
# Install btca and OpenCode
bun add -g btca opencode-ai
# Configure model (Big Pickle: free, fast, surprisingly good)
btca config model --provider opencode --model big-pickle
# Add bknd as a resource
btca config resources add --name bknd --type git --url https://github.com/bknd-io/bknd --branch main
Or create btca.config.jsonc:
{
"$schema": "https://btca.dev/btca.schema.json",
"model": "big-pickle",
"provider": "opencode",
"providerTimeoutMs": 300000,
"resources": [
{
"type": "git",
"name": "bknd",
"url": "https://github.com/bknd-io/bknd",
"branch": "main"
}
]
}
Core Commands
Ask a question
btca ask --resource bknd --question "How do I define a schema?"
Interactive chat
btca chat --resource bknd
Launch TUI
btca
Reference Files
For detailed information, see:
- setup.md - Full installation, configuration options, resource management, troubleshooting setup issues
- query-patterns.md - Specific query patterns for data, auth, media, adapters, and framework integration
- advanced.md - Multi-resource queries, interactive workflows, performance optimization, debugging
Query Best Practices
- Be specific - "How do I define a schema with a one-to-many relation?" vs "How do I use the data module?"
- Provide context - "I'm using Cloudflare Workers. How do I configure the database adapter?"
- Ask for examples - "Show me a complete example of setting up password authentication"
- Reference specific files - "How does src/App.ts initialize the modules?"
Learning Workflow
- Explore high-level: Ask about overall architecture and main modules
- Module deep-dive: Use
btca chat --resource bknd to focus on one module
- Implementation details: Ask to see specific feature implementations
- Examples & patterns: Query the examples directory for best practices
Resources
1---
2name: bknd-repo-search-with-opencode
3description: Use when querying the bknd source repository with btca CLI. Covers setup, configuration, and query patterns for learning bknd internals including data module, authentication, media handling, and adapter configuration.
4compatibility: Requires bun or npm, btca, opencode-ai, and access to the internet
5metadata:
6 source: https://skillmd.com/skills/aibot88/bknd-repo-search-with-opencode
7---
8
9# Query bknd with btca
10
11btca is a CLI tool for asking questions about git repos. It clones repositories, indexes them, and answers queries using AI.
12
13## Quick Setup
14
15```bash
16# Install btca and OpenCode
17bun add -g btca opencode-ai
18
19# Configure model (Big Pickle: free, fast, surprisingly good)
20btca config model --provider opencode --model big-pickle
21
22# Add bknd as a resource
23btca config resources add --name bknd --type git --url https://github.com/bknd-io/bknd --branch main
24```
25
26Or create `btca.config.jsonc`:
27```jsonc
28{
29 "$schema": "https://btca.dev/btca.schema.json",
30 "model": "big-pickle",
31 "provider": "opencode",
32 "providerTimeoutMs": 300000,
33 "resources": [
34 {
35 "type": "git",
36 "name": "bknd",
37 "url": "https://github.com/bknd-io/bknd",
38 "branch": "main"
39 }
40 ]
41}
42```
43
44## Core Commands
45
46### Ask a question
47```bash
48btca ask --resource bknd --question "How do I define a schema?"
49```
50
51### Interactive chat
52```bash
53btca chat --resource bknd
54```
55
56### Launch TUI
57```bash
58btca
59```
60
61## Reference Files
62
63For detailed information, see:
64
65- **[setup.md](references/setup.md)** - Full installation, configuration options, resource management, troubleshooting setup issues
66- **[query-patterns.md](references/query-patterns.md)** - Specific query patterns for data, auth, media, adapters, and framework integration
67- **[advanced.md](references/advanced.md)** - Multi-resource queries, interactive workflows, performance optimization, debugging
68
69## Query Best Practices
70
711. **Be specific** - "How do I define a schema with a one-to-many relation?" vs "How do I use the data module?"
722. **Provide context** - "I'm using Cloudflare Workers. How do I configure the database adapter?"
733. **Ask for examples** - "Show me a complete example of setting up password authentication"
744. **Reference specific files** - "How does src/App.ts initialize the modules?"
75
76## Learning Workflow
77
781. **Explore high-level**: Ask about overall architecture and main modules
792. **Module deep-dive**: Use `btca chat --resource bknd` to focus on one module
803. **Implementation details**: Ask to see specific feature implementations
814. **Examples & patterns**: Query the examples directory for best practices
82
83## Resources
84
85- btca docs: https://btca.dev
86- bknd docs: https://docs.bknd.io
87- bknd repo: https://github.com/bknd-io/bknd