FAQ

Installation
How do I install SQ2?
Run the install script:
curl -fsSL https://raw.githubusercontent.com/ft-dev-org/sq2-ai/main/scripts/install.sh | bash
Or clone and install manually:
git clone https://github.com/ft-dev-org/sq2-ai.git cd sq2-ai python3 -m venv .venv && source .venv/bin/activate pip install -e ".[ui,dev]"
See full install guide.
What are the requirements?
macOS or Linux, Python 3.10+, Git, and Ollama with a model installed (e.g. ollama pull qwen2.5:14b). NVIDIA GPU recommended but not required.
Does SQ2 require internet access?
Only for initial setup (downloading models and dependencies). After that, SQ2 runs fully offline. No internet required at runtime.
Usage
What does SQ2 do?
SQ2 is a local execution system for engineering work. It reads your codebase, plans changes, executes them, and verifies the results. It operates through structured workflows: analysis, test generation, and automated fixing.
What are workflows?
Workflows are predefined execution patterns:
sq2 run --workflow analysis # analyze codebase structure and quality sq2 run --workflow tests # generate and run tests sq2 run --workflow fix # fix failing tests automatically
Each workflow follows the same cycle: plan, execute, verify.
How do I run a specific task?
Use the task command with a natural language description:
sq2 task "add input validation to the user registration endpoint"
SQ2 will plan the steps, show you the plan, and ask for approval before executing.
What is the interactive shell?
Run sq2 run without --workflow to enter the interactive shell. This gives you access to all commands: reading files, editing, searching, running tasks, reviewing changes, and more. Type help inside the shell for the full command list.
Safety
Does SQ2 send my code anywhere?
No. SQ2 runs entirely on your machine. Models run locally via Ollama. No code, no data, no telemetry is sent to any external service.
Can SQ2 modify files outside my project?
No. The policy engine restricts all writes to the project root directory. Writes outside the project are blocked. Dangerous commands (rm -rf, force push, etc.) are blocked by default.
What is dry-run mode?
Add --dry-run to any workflow to see the execution plan without making changes:
sq2 run --workflow analysis --dry-run
This shows target files, planned steps, and risk flags. No files are modified.
Does SQ2 auto-commit changes?
No. SQ2 never commits, pushes, or modifies git history automatically. All git operations require your explicit action.
Troubleshooting
sq2: command not found
The CLI is installed inside a virtual environment. Activate it first:
source .venv/bin/activate
Then sq2 version should work.
Python version is too old
SQ2 requires Python 3.10 or higher. Check your version:
python3 --version
On macOS, install via Homebrew: brew install python@3.12. On Linux, use your package manager or python.org.
Ollama not running or not found
Install Ollama from ollama.com, then start it and pull a model:
ollama pull qwen2.5:14b
Run sq2 doctor to verify the Ollama API is reachable.
Permission denied during install
Do not use sudo. SQ2 installs into a local virtual environment in the project directory. If you see permission errors, check that you own the project directory and that .venv is not locked by another process.
Advanced
Can I use SQ2 on private repositories?
Yes. SQ2 operates on your local filesystem. If you can clone the repo, SQ2 can work with it. No tokens, no API keys, no access delegation required.
How does SQ2 handle large codebases?
SQ2 indexes up to ~1000 files efficiently using TF-IDF search and function-level chunking. Execution is scoped to 5 files per tranche, so even in large repos, each task is bounded and manageable.
Can I control what SQ2 is allowed to do?
Yes. The policy engine classifies every action as safe, caution, or blocked. Dangerous commands are blocked by default. Caution-level commands require your explicit approval. You can review the policy rules in src/sq2_ai/policy.py.
Can I export execution history?
Yes. In the interactive shell:
sq2 run > export json # exports journal, patterns, session > export csv # same data in CSV format
Files are saved to sq2_report/ in your project directory.

SQ2 is designed for controlled execution, not experimentation.

SQ2.ai © 2026