cd /news/ai-agents/i-built-an-open-source-offline-ast-g… · home › topics › ai-agents › article
[ARTICLE · art-173649] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

I built an open-source, offline AST guardrail & MCP server (Aveyx v3.0.1) to stop AI coding agents from faking tests, leaking secrets, and breaking prod

A developer released Aveyx v3.0.1, an MIT-licensed, fully offline Node 20+ tool and native stdio MCP server that uses Babel AST analysis to catch AI coding agents tampering with tests, leaking secrets, and breaking production code. The tool ships 10 MCP tools and 44 prompts, and adds commands for transitive reverse-dependency impact analysis, signature-preserving code compaction, strict anti-tamper review with SARIF 2.1.0 output, secret and injection scanning, atomic checkpoint/rollback, and pre-push git hooks.

key takeaway

Aveyx v3.0.1 wraps Babel AST checks into an offline MCP server with 10 tools, letting coding agents mechanically block test-skipping, secret leaks and protected-config edits instead of relying on prompt rules.

by read1 min views7 publishedNov 21, 2026

If you use Claude Code, Cursor, Windsurf, or Copilot on a multi-file repo, you've probably seen them:

it.skip / || exit 0 to make tests "pass" I just shipped Aveyx v3.0.1 (MIT, Node 20+ ESM, 100% offline, only 3 @babel/* runtime deps) to catch these mechanically instead of relying on prompt rules alone:

aveyx impact <file> — Computes transitive reverse dependencies (ESM, CJS, re-exports, dynamic import()) and lists every affected test file. aveyx compact — Strips function bodies via AST while preserving signatures, types, and PageRank callers.aveyx review --strict — Babel AST anti-tamper + secret scanner + protected-config guard (outputs OASIS SARIF 2.1.0).aveyx audit-bugs & aveyx scan-secrets — AST SQLi / command injection / React hook leak + credential scanner.aveyx checkpoint / rollback — Atomic snapshots (including .env and git hooks) before risky refactors.aveyx install-hooks --pre-push — Blocks bad commits/pushes locally.aveyx-mcp — Native stdio MCP server with 10 tools and 44 prompts. Quick start:

bash
npx aveyx init
npx aveyx doctor
![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/t7z6za4gca4zso68bjj7.png)
── more in #ai-agents 4 stories · sorted by recency
── more on @aveyx 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-an-open-sour…] indexed:0 read:1min 2026-11-21 · —