HOW TO INTEGRATE CAPI IN 30 SECONDS
**No cloning required.** Capi is distributed as a standalone CLI and standard Git pre-commit hook. Install it directly into your existing microservices or CI/CD pipelines with a single command.
CHOOSE YOUR INSTALLATION METHOD
You do **not** need to clone the Capi codebase into your workspace. Select how your team manages developer tooling:
# Install globally or in your venv directly from GitHub:
$ pip install git+https://github.com/Akarshkushwaha/Capi.git
# Enable the guardrail hook in your current Git repo:
$ capi install-hook
✓ Guardrail hook deployed to .git/hooks/pre-commit
CONNECT YOUR REAL REPOSITORIES & PULL REQUESTS
Once installed, run `capi ingest` in any project folder. Capi’s GitPython engine parses historical commit logs, extracts variable declarations, and constructs a causal graph in Cognee linking engineers to every variable change.
# 1. Scan your current Git project commits and .env files into Cognee graph memory:
$ capi ingest . --service payments-api
# 2. Extract GitHub Pull Request review reasoning & architecture discussions:
$ capi ingest-prs --repo org/my-service --token $GITHUB_TOKEN
AUTOMATE CI/CD AUDITS & SLACK OUTAGE REWARDS
Capi gets smarter every time your team ships code. Integrate our feedback commands into your CI/CD deployment scripts or Slack bot incident workflows. When a deployment is clean, Capi reduces the variable's Danger Score. When an outage occurs, Capi immediately penalizes the score so no engineer repeats the mistake.
Run after a successful Kubernetes or Docker deployment in your CI/CD script:
Run when a variable causes a P1/P2 outage or via Slack emergency webhook:
Because Capi is built on open REST standards, you don't need a heavy Slack app installed. Any Slack slash command, incident bot (PagerDuty / Rootly / Jira), or CI/CD script can connect via standard HTTP webhooks:
-H "Content-Type: application/json" \
-d '{"key":"DB_POOL_SIZE","service":"payments-api","notes":"Reported via Slack","severity":"P1"}'
--data '{"text":"🚨 [Capi Guardrail Blocked PR]: DB_POOL_SIZE (20) breaches safe boundary (5 ≤ value ≤ 15). Caused Outage INC-47."}' \
$SLACK_WEBHOOK_URL
READY TO BECOME A CONFIG ARCHAEOLOGY DETECTIVE?
Start your first investigation right now on Mission Control or audit your team's staged configuration changes in seconds.