Trepan: Local VS Code Security Auditor for AI-Generated Code

Trepan is a VS Code extension that addresses 'Silent AI Security Debt'—vulnerabilities in AI-suggested code that pass compilation but lack architectural security context. It acts as a local security gatekeeper between AI coding assistants and your codebase.
How Trepan Works
The tool uses a Zero-Baseline approach to audit AI suggestions against local security rules. It doesn't just guess; it enforces policies based on a .trepan/system_rules.md file in your project.
- 100% Local-Only: Uses Ollama to run security audits on your machine with no code leakage to external APIs
- Deterministic Validation: Forces the local LLM to validate suggested code against your specific security constraints before acceptance
- Context-Aware: Reads project-specific rules to catch logic-specific flaws that generic linters miss
What Trepan Catches
The tool is specifically tuned to find hallucinations that bypass standard static analysis:
- Insecure API endpoints suggested by AI
- Silent DOM XSS vulnerabilities in frontend logic
- Hardcoded secrets or "convenient" backdoors the AI might hallucinate
Technical Details
Trepan is open-source under AGPLv3 license and available in the VS Code Marketplace. The developer is experimenting with different system prompts for the auditing phase and seeking feedback on auditing logic and prompt engineering.
The developer is asking the community for input on which local models (Llama 3, Mistral, etc.) perform best for security-focused auditing without excessive latency.
📖 Read the full source: r/LocalLLaMA
👀 See Also

ZSE: Open-source LLM inference engine with 3.9-second cold starts
ZSE is an open-source LLM inference engine that reduces 32B model memory requirements from 64GB to 19.3GB VRAM and achieves 3.9-second cold starts for 7B models using a pre-quantized .zse format with memory-mapped weights.

OpenClaw Implements Agent History Compression to Reduce Context Usage
OpenClaw now compresses agent history by replacing completed subtask logs with structured summaries, reducing ~1M tokens to ~30K. The system uses a 4-pass scanner to identify task lifecycles and generates masked summaries that maintain agent compatibility.

Claude Code Auto Mode: Safer Alternative to Skipping Permissions
Claude Code now offers auto mode, a permissions mode where Claude makes permission decisions with safeguards monitoring actions before execution. It's available as a research preview for Team plan users, with Enterprise and API rollout coming soon.

Vibeyard: Open-Source Dashboard That Launches Claude Sessions from PRs, Issues, and Kanban Cards
Vibeyard is an open-source (MIT) home screen with draggable widgets for PRs, issues, kanban, and Claude sessions. Click any card to spawn a pre-scoped Claude Code session for review, fix planning, or resumption.