404vault: Collective AI coding agent brain - every verified fix makes ALL agents smarter
Project description
404vault
Collective Intelligence for AI Coding Agents
Stack Overflow taught developers. 404vault teaches AI.
Every bug you fix makes every AI agent smarter. Every bug anyone fixes makes your AI smarter.
Fix it once. Fix it for everyone.
The Problem
AI coding assistants have amnesia. Every session starts fresh. You fix a bug today, and tomorrow your AI suggests the same broken fix. Millions of developers hit the same errors, solve them in isolation, and the knowledge disappears.
Stack Overflow solved this for humans—shared knowledge that compounds over time.
404vault solves it for AI.
How It Works
You fix a bug
↓
Log it → Verify it works
↓
Automatically shared (anonymized)
↓
Every AI agent now knows that fix
↓
Someone else fixes a different bug
↓
Your AI learns it too
The more people use it, the smarter everyone's AI gets.
Quick Start
Install
pip install vault404 # Python / MCP
npm install vault404 # JavaScript / TypeScript
Use with Any AI Agent
REST API (works with anything):
vault404 serve --port 8000
# POST /api/v1/solutions/search
# POST /api/v1/solutions/log
Claude Code (MCP):
{
"mcpServers": {
"vault404": {
"command": "python",
"args": ["-m", "vault404.mcp_server"]
}
}
}
JavaScript/TypeScript:
import { 404vaultClient } from 'vault404';
const vault404 = new 404vaultClient({ apiUrl: 'http://localhost:8000' });
// Find solutions from collective brain
const solutions = await vault404.findSolution({
errorMessage: 'Cannot find module react',
language: 'typescript'
});
// Log a fix (verified = auto-shared)
await vault404.logErrorFix({
errorMessage: 'Module not found',
solution: 'npm install',
verified: true
});
Python:
from vault404 import find_solution, log_error_fix
# Search collective brain
solutions = find_solution("ECONNREFUSED 127.0.0.1:5432")
# Log a fix
log_error_fix(
error_message="ECONNREFUSED 127.0.0.1:5432",
solution="Use internal hostname instead of localhost",
verified=True # Auto-shares to collective brain
)
Works With
| AI Agent | Integration |
|---|---|
| Claude Code | MCP server |
| Cursor | REST API or JS SDK |
| GitHub Copilot | VS Code extension |
| Aider | Python import |
| LangChain | Tool wrapper |
| Custom agents | REST API |
The Flywheel
┌─────────────────────────────────────┐
│ │
▼ │
More Users ──► More Fixes ──► Smarter AI ┘
This only works if people contribute. Every verified fix you log makes the system better for everyone.
What You Can Log
| Type | Purpose | Example |
|---|---|---|
| Error Fixes | Solutions that worked | "CORS error → Add credentials: include" |
| Decisions | Architectural choices | "Chose Zustand over Redux because..." |
| Patterns | Reusable approaches | "Optimistic UI update pattern" |
Trust & Ranking
Not all solutions are equal:
- Solutions verified by 100 developers rank higher than random suggestions
- Context matching: TypeScript + Next.js solutions surface for TypeScript + Next.js errors
- Your local fixes rank highest (you trust yourself most)
Privacy & Security
Your code stays yours. Only anonymized patterns are shared:
| What's Shared | What's NOT Shared |
|---|---|
| Error patterns | Your actual code |
| Solution approaches | File paths |
| Framework context | Project names |
| Verification count | API keys, secrets |
Secrets are automatically redacted before anything is stored locally.
CLI Commands
vault404 serve # Start REST API
vault404 serve-mcp # Start MCP server
vault404 stats # View knowledge base stats
vault404 search "error" # Search solutions
vault404 export # Export your data
vault404 purge --confirm # Delete your data
API Endpoints
GET /api/v1/health # Health check
GET /api/v1/stats # Knowledge base stats
POST /api/v1/solutions/search # Find solutions
POST /api/v1/solutions/log # Log error fix
POST /api/v1/solutions/verify # Verify solution (triggers share)
POST /api/v1/decisions/search # Find decisions
POST /api/v1/decisions/log # Log decision
POST /api/v1/patterns/search # Find patterns
POST /api/v1/patterns/log # Log pattern
Compared To
| Tool | Scope | Learning |
|---|---|---|
| Text file | You only | Manual |
| ReMe | You only | Automatic |
| 404vault | Everyone | Automatic |
ReMe gives YOUR agent memory. 404vault gives ALL agents memory.
License
FSL-1.1-Apache-2.0 (Functional Source License)
- Free for personal and company internal use
- Cannot offer as competing hosted service
- Becomes Apache 2.0 (fully open) after 4 years
Contributing
The collective brain grows with every contribution. Log your fixes, verify what works, and help make all AI smarter.
pip install vault404
Fix it once. Fix it for everyone.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vault404-0.1.0.tar.gz.
File metadata
- Download URL: vault404-0.1.0.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
698b08bdc8aeedc302b15e39978c09a3bc1b280f5f5d790d58c39cdaf720d3bc
|
|
| MD5 |
e179095f76d1fc1d92bc242abe923589
|
|
| BLAKE2b-256 |
bc950b0e1b6c8dd2fbaf3ac4917e654966536e463fa0460810f7797c01691204
|
File details
Details for the file vault404-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vault404-0.1.0-py3-none-any.whl
- Upload date:
- Size: 50.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcf2933765e4cd6019965e1dd9ecebd8ae27fcb76d93b184350fe5056a006a59
|
|
| MD5 |
82bd977ea8ca4c450dac541938acdb20
|
|
| BLAKE2b-256 |
94bb2adb229888ebe9fa6652d1c573759f2ea059ab51132a4c34e1084a35e2fc
|