Installation
Install the CLI, verify the deterministic workflow first, then add an AI provider only when you want generation, healing, or crew workflows.
What you need first
- Node.js >= 20 with an LTS runtime
- Git for diff-aware analysis
- A repo with Playwright or Cypress tests already in place
The safest first run is deterministic
npx impact-gate impact --path . --since origin/main
npx impact-gate plan --path . --since origin/main
npx impact-gate gate --threshold 80 --path .
Install
Add the package to your project when you want it versioned with the test suite:
npm install -D @yasserkhanorg/impact-gateInstall globally only when you want ad hoc CLI access across many repositories:
npm install -g @yasserkhanorg/impact-gateVerify
Confirm the CLI is available
Start by checking that the binary resolves and the command surface is visible from the current project.
npx impact-gate --helpYou should see the core commands including impact, plan, gate, train,
and the optional AI workflows. The best first run is still impact, then
plan, then gate.
Optional: LLM Provider
Add a provider only when you want it
Crew workflows, test generation, and healing need an LLM provider, but the core CI commands do not.
Core commands work without any API key
impact, plan, gate,
train --no-enrich, cost-report, and
feedback all work on the deterministic path alone.
Set one of these environment variables:
# Anthropicexport ANTHROPIC_API_KEY=sk-ant-...
# OpenAIexport OPENAI_API_KEY=sk-...
# Ollama (free, runs locally)export OLLAMA_BASE_URL=http://localhost:11434Verify Provider Connectivity
npx impact-gate llm-healthThis probes the configured provider, or the auto-detected provider if you rely on environment discovery, and reports whether it can accept requests and return responses.