RepoSense
Ai Production Logs Forensics
The problem RepoSense solves
- Code that works on localhost breaks in production
- Every developer knows this pain.
- The reason is, we test if code works, but never if code survives.
- Main culprits: Concurrent users, network failures, malicious inputs, memory pressure, database exhaustion.
- Existing tools solve pieces but not the whole
What RepoSense Does
One pipeline. Zero manual steps.
- Analyzes your codebase
- Generates 200+ tests
- Executes in Docker sandboxes
- Visual reverse debugger
- Pinpoints root cause
- Generates fixes
- Self-heals - with your approval
*Output
A production readiness score (0-100) across 5 dimensions: functional, chaos, security, mutation, dependencies. Plus an embeddable badge for your README.
Challenges we ran into
-
OpenRouter Rate Limits — Free tier (20 req/min) ran out in the first hour of development.
Fix: Built hybrid router — Ollama locally (unlimited) as primary, OpenRouter cloud as fallback. Cached every response to disk by SHA256 hash. -
Single-Agent Blind Spots — One AI fixates on the obvious cause, misses hidden dependencies.
Fix: Two competing detective agents analyze independently with different prompts, an arbiter picks the best hypothesis. -
Frontend + Backend + AI Engine Integration — Three people, three services, different ports, CORS errors, WebSocket drops, mismatched field names.
Fix: Defined shared data model contract before coding. Backend as single gateway (port 8080). -
Docker Sandbox Creation — Each language needs different images, runners, and output parsers. Tests making network calls is a security risk.
Fix: Language-specific Dockerfile templates, --network=none, 60s timeout kills. -
Multi-Repository Structures — Monorepos, multi-language repos, repos with no test framework — a parser for Express breaks on Django.
Fix: Scanner agent detects project type first, adapts test generation per framework, installs missing frameworks in sandbox, handles sub-packages independently.
Tracks Applied (1)
DevTech
Technologies used