Quick Start & CLI Reference
Build once, start the local user daemon, register your repository, and accelerate both AI agents and local CLI workflows.
# 1. Build and install tctx + user systemd service (or macOS LaunchAgent)
git clone https://github.com/dotnetpower/test-context.git
cd test-context
./scripts/install.sh
# 2. Register a Python, Rust, Frontend, or Polyglot workspace
tctx --root /path/to/repo register
# 3. Inspect daemon health, AST graph, affected tests, or lint diagnostics
tctx --root /path/to/repo doctor
tctx --root /path/to/repo status
tctx --root /path/to/repo affected --file src/my_pkg/core.py
tctx --root /path/to/repo graph src/my_pkg/core.py
tctx --root /path/to/repo ruff --fix
# 4. Run tests incrementally or via drop-in wrappers
tctx --root /path/to/repo run --ruff-fix
tctx --root /path/to/repo pytest -q
tctx --root /path/to/repo cargo-test
tctx --root /path/to/repo vitest
tctx --root /path/to/repo jest
# 5. Export JUnit/SARIF reports or share CI cache bundles
tctx --root /path/to/repo run --report-format=sarif --report-out=results.sarif
tctx --root /path/to/repo cache-export --out=tctx-cache.json
tctx --root /path/to/repo cache-import --input=tctx-cache.json
# 6. Install the VS Code Native Extension (Linux & Windows WSL)
./scripts/install-vscode-extension.sh