CLI
Asking questions
Query your codebase from the terminal, one-shot or interactively.
One-shot queries
The fastest way to get an answer is to ask a single question directly from the command line:
abstr "what does the billing service do when a payment fails?"The CLI sends the question, prints the answer, and exits. You can also pipe a question in from another command instead of typing it as an argument. If you need to point the question at a specific workspace, add -w <workspace-slug>, or scope it to a pull request with -pr <url> — see the guide on scoping questions to a pull request for details (coming soon).
Starting an interactive session
Run abstr with no question to open an interactive session instead. This keeps a running conversation open in your terminal: you can ask follow-up questions, and earlier answers stay available for context. Use the up and down arrow keys to move through what you've typed before.
Slash commands
While in an interactive session, a few commands help you manage the conversation:
/help— show the list of available commands/newor/reset— start a fresh conversation, clearing prior context/pr <url>— scope the conversation to a pull request (run/pralone to pick from a list, or/pr clearto remove the scope)/workspace(or/ws) — switch which workspace you're asking about; run it with a workspace name to switch directly, or alone to choose from a list (see switching workspaces)
Exiting and cancelling
To leave a session, type /exit or /quit, or press Ctrl-D while the input line is empty. If the CLI is in the middle of streaming an answer, pressing Ctrl-C cancels that response without closing the session; pressing it again with an empty input line clears what you've typed so far.
Next steps
- [./getting-started.md]
- [./configuration.md]