Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ Release Captain

An AI crew that stands between your code and production.

Every deploy needs a judgment call: are the tests solid, is that dependency bump safe, will this slow things down? Usually a human makes that call by skimming CI, memory, and gut feel. Release Captain runs that judgment as a crew of specialist agents — coordinated by a Manager — and files the verdict where your team already looks: the PR itself, and Slack.

It doesn't just flag risk — it makes the ship/hold/rollback call, and shows its work.

How it works

PR opened / updated (GitHub webhook)
        │
        ▼
   MANAGER AGENT
        │
        ├──► Test-Health Officer     — did CI pass? anything flaky?
        ├──► Dependency-Risk Analyst — any risky package bumps?     [Month 2]
        └──► Performance Auditor    — any regression vs baseline?  [Month 2]
        │
        ├─ escalates to a deep-dive agent if a finding is severe   [Month 2]
        │
        ▼
   VERDICT: ship / hold / rollback
        │
        ├──► Posted as a PR comment (with reasoning)
        └──► Posted as a Slack brief

Every step — every agent call, every token spent — is logged to a trace tree you can inspect per run. Runs have a hard spend cap so no single PR can burn an unbounded LLM budget.

Tech stack

Layer Tech
Trigger GitHub Webhooks (signature-verified)
Agents Node.js + Groq (Llama 3.3 70B)
Real output GitHub REST API (PR comments), Slack Incoming Webhooks
Database MongoDB (runs, findings, trace tree)
Dashboard React + Tailwind
Evals Custom eval harness + GitHub Actions CI gate

Status

  • Webhook listener + signature verification
  • Test-Health specialist agent
  • Dependency-Risk specialist agent
  • Perf-Regression specialist agent
  • Specialists run in parallel (Promise.allSettled)
  • Manager verdict synthesis
  • Trace logging with cost/token tracking
  • Spend cap enforcement (checked before every escalation spawn)
  • Dynamic deep-dive escalation for high/critical findings
  • PR comment + Slack output
  • Dashboard UI (manifest + gate gauge + trace tree)
  • Eval suite + CI gate (GitHub Actions runs on every push)

Running the eval suite

The eval suite tests each agent's judgment against fixed, known scenarios (a real failed build, a safe dependency bump, a risky major version bump, etc) - proving the agents consistently land in the right severity range rather than relying on manual spot-checks.

cd backend
npm run eval

This also runs automatically on every push via GitHub Actions (.github/workflows/evals.yml) - add your GROQ_API_KEY as a repository secret (Settings → Secrets and variables → Actions → New repository secret) for the CI run to work.

Local setup

cd backend
npm install
cp .env.example .env   # fill in your Groq key, GitHub token, Slack webhook URL
npm run dev

Testing without a live webhook

You don't need a publicly reachable server to test the pipeline. Point it at a real PR you control and run it directly:

node src/scripts/testRun.js <repoOwner> <repoName> <prNumber> <headSha>

Check the PR for a new comment, your Slack channel for the brief, and GET /api/runs for the stored run.

Setting up the real webhook (once you're ready to go live)

  1. Deploy the backend somewhere reachable (Render, Railway, or a VPS)
  2. On your GitHub repo: Settings → Webhooks → Add webhook
    • Payload URL: https://your-deployed-url/webhook/github
    • Content type: application/json
    • Secret: same value as GITHUB_WEBHOOK_SECRET in your .env
    • Events: just "Pull requests"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages