OpenAI.Hackathon.Demo.mp4
The Semantic Linter for the Agent Coding Era
AI writes code fast. Who remembers why?
Your AI conversation stays local. The bugs it prevents don't.
IntentMesh captures developer intents from AI coding conversations and detects when code drifts from those stated requirements.
- AI generates 1000s of lines of code per day
- Requirements live in ephemeral chat conversations
- When teammates modify AI-generated code, they don't know the original intent
- Silent regressions happen when code drifts from unstated constraints
IntentMesh:
- Captures intents from AI conversations (Cursor, Claude, Amp)
- Links them to code via agent-trace.dev attribution
- Detects drift when code changes violate stated requirements
- Alerts developers via IDE diagnostics, MCP tools, or CI/CD
- Install the extension (F5 from this repo to run in dev mode)
- Configure your OpenAI API key in settings (
intentmesh.openaiApiKey) - Generate code with Cursor/Claude
- Run
node out/cli/write-trace.js .to record attribution - Run "IntentMesh: Analyze Changes" to capture intents
- Make changes → IntentMesh alerts you if they violate intents
# Add to your MCP config
codex mcp add intentmesh --env OPENAI_API_KEY=$OPENAI_API_KEY -- node /path/to/intentmesh/out/mcp-stdio.js /path/to/project- Multi-source intents: AI conversations, PRDs, specs, manual annotations
- Automatic linking: Uses git diffs and agent-trace to map intents to code
- Smart detection: Only flags clear violations (confidence ≥ 0.9)
- Multiple outputs: VS Code diagnostics, MCP server, CLI
- Pluggable architecture: Swap LLM providers, storage backends, intent sources
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐ ┌──────────────┐
│ AI Conversations│ ──▶ │ Extract Intents │ ──▶ │ Detect Drift │ ──▶ │ Alert/Block │
│ PRDs & Specs │ │ (LLM) │ │ on Changes │ │ IDE/CI/MCP │
└─────────────────┘ └──────────────────┘ └─────────────────┘ └──────────────┘
See ARCHITECTURE.md for detailed design.
| Setting | Description | Default |
|---|---|---|
intentmesh.llmProvider |
LLM provider (openai, anthropic, ollama) | openai |
intentmesh.openaiApiKey |
OpenAI API key | - |
intentmesh.llmModel |
Model to use | gpt-5-mini |
# Install dependencies
npm install
# Build
npm run compile
# Watch mode
npm run watch
# Run extension (press F5 in VS Code)src/
├── core/ # Interfaces & dependency injection
├── models/ # Data types (Intent, Drift, etc.)
├── sources/ # Intent & attribution sources
├── llm/ # LLM service (LangChain)
├── engine/ # Drift detection logic
├── storage/ # JSON file store
├── adapters/ # MCP server adapter
├── ui/ # VS Code UI (diagnostics, sidebar, hover)
└── extension.ts # VS Code entry point
- Demo Guide - End-to-end demo walkthrough
- Architecture - Detailed system design
MIT - see LICENSE
Contributions welcome! Please read the architecture doc first to understand the design principles.