If you use AI coding agents like Cursor, Claude Code, Antigravity IDE, Cline, or Windsurf, you already know the "Vibe Coding Lifecycle":
- Prompt AI: "Fix the failing build."
-
AI edits 14 files (and quietly deletes half your test assertions or adds
// @ts-ignore). - Terminal says: "All tests passing locally! 🚀"
- Push PR: GitHub Actions explodes 4 minutes later because of a Windows-to-Linux file casing mismatch.
- Pain.
AI agents are incredible at shipping features 10x faster, but they optimize for making your local terminal green—not your cloud CI pipeline.
To solve this permanently, I built VibeCI (npx vibeci)—an open-source CI seatbelt for vibe coding and AI coding agents.
⚡ What VibeCI Catches Before You Push
VibeCI acts as a deterministic CI Twin, Toolchain Detector, and Anti-Cheat Diff Auditor right on your laptop. Instead of wasting CI minutes waiting for GitHub Actions to fail, it catches five silent killers locally in seconds:
-
Silent Casing Traps: Imports like
./buttonvs./Buttonpass effortlessly on Windows (NTFS) and macOS (APFS), then immediately crash Ubuntu Linux runners on GitHub Actions. -
Lazy AI Test-Cheating: When stuck, AI agents love bypassing type checks (
// @ts-ignore,eslint-disable), skipping tests (.skip), or commenting out assertions just to get a passing exit code. -
Missing Local Toolchains: If your laptop doesn't have
pytest,clang-format, orcmakeinstalled, naive scripts skip them and report 100% green instead of warning you about unverified CI gaps. -
Remote Target Misalignment: Forked repository PR checks often fail without proper upstream
-R <owner>/<repo>targeting and REST API fallbacks. -
PR Template Non-Compliance: Catching missing checkboxes, risk levels, or required sections in
.github/PULL_REQUEST_TEMPLATE.mdbefore opening the PR.
🚀 Quickstart (Zero Config)
VibeCI (v0.1.2) is published on npm and requires zero setup to try out. Run it directly inside any project using npx:
# 1. Detect OS drift, Node version drift & Windows-to-Linux casing traps
npx vibeci preflight
# 2. Audit your git diff for AI test-cheats or suppressed linters
npx vibeci verify
# 3. Run change-aware checks across Node, Python, Rust, CMake & C/C++
npx vibeci check
Want it permanently wired into your workflow? Initialize a local CI twin config and an automatic git pre-commit anti-cheat hook:
npx vibeci init --hook
Or install it globally:
npm install -g vibeci
🛠️ Core CLI Workflows
1. Anti-Cheat Git Diff Audit (verify)
Before committing AI-generated code, run verify to inspect your working tree or compare against origin/main. If an agent weakened assertions or added lint-ignore comments, VibeCI flags it immediately:
npx vibeci verify
npx vibeci verify --base origin/main
2. Change-Aware Checks & Toolchain Gap Detection (check)
VibeCI detects which files changed and runs relevant static gates and tests locally—supporting Node, Python, Rust, CMake, and C/C++. If a required CI tool is missing on your machine, it explicitly flags the gap (and supports docker/act fallbacks):
npx vibeci check --fast
npx vibeci check --base origin/main --allow-build
3. PR Template & Remote Forensics
Validate your PR metadata locally, or inspect failing remote PR checks directly from your terminal:
# Validate against .github/PULL_REQUEST_TEMPLATE.md
npx vibeci check --pr-template --pr-metadata
# Analyze remote PR #123 with automatic upstream repo detection
npx vibeci analyze-pr 123 --copy-pr-badge
🤖 Native MCP Integration for AI Coding Agents
The best way to stop AI agents from breaking CI is to let them audit themselves.
VibeCI ships with a built-in Model Context Protocol (MCP) server so Cursor, Claude Code, and Antigravity can run preflight diagnostics and anti-cheat checks autonomously before telling you they're done.
Add this to your .cursor/mcp.json or Claude Desktop config:
{
"mcpServers": {
"vibeci": {
"command": "npx",
"args": ["-y", "vibeci", "mcp"]
}
}
}
Once connected, your agent gets access to three tools:
-
get_ci_twin— Reads the full environment disparity report between your machine and CI. -
run_preflight— Runs case-sensitivity and runtime drift checks. -
verify_repair— Audits the git diff to ensure its own fix didn't cheat on tests.
🌟 Try It Out & Contribute
VibeCI is 100% open-source under the MIT License. Give npx vibeci preflight a spin on your current repo—I'd love to hear what hidden casing bugs or sneaky AI edits it catches!
- Live Demo: the-dev-pocket.vercel.app
- npm Package: npmjs.com/package/vibeci
- GitHub Repository: github.com/Darshan3690/The-Dev-Pocket
If you find it useful, dropping a ⭐ on the GitHub repo helps a ton!
Top comments (0)