Skip to main content

1. Start the local server

ctxpack serve

2. Connect a model provider

ctxpack connect openai

3. Add a resource and index

Local folders on your machine.
ctxpack add ./local-folder --type local --name local-folder --index
Or clone a git repository.
ctxpack add https://github.com/org/repo --type git --name repo --index

4. Sync and index

ctxpack sync repo
ctxpack index repo --sync
  • sync pulls latest for git resources (local resources are already local).
  • index --sync syncs git content first, then indexes embeddings.

5. Ask a question

ctxpack ask "Where is request-level model config applied?"
ask is an alias for search --explore.

6. Go deeper when needed

ctxpack ask "Trace indexing pipeline" --verbose
ctxpack search "Compare text and vector retrieval paths" --research