Production memory
for AI coding agents.
AI coding agents move fast. Codela gives them production memory. Codela connects to your observability tools, captures the failure patterns behind real production regressions, and gives Cursor, Claude Code, and other agents the context they need to avoid repeating them.
Get started
Up and running in minutes
Install the extension
VS Code or Cursor — 2 minutes. Adds the Codela panel and the Datadog setup commands.
# VS Code
code --install-extension Codela.codela
# Cursor
cursor --install-extension Codela.codelaConnect your APM
Cmd+Shift+P → 'Codela: Configure Datadog Credentials'. Paste your API key, Application key, site, and the service tag for this repo. Credentials live in encrypted SecretStorage and ride per-request as headers — never persisted on Codela servers.
Connect your AI agent via MCP (coming soon)
Once Codela's hosted MCP endpoint ships, add this block to Cursor (Settings → MCP), Claude Code (claude mcp add), or Windsurf. The agent calls Codela's tools (check_code / get_patterns) before writing code — no local clone, no Python runtime.
{
"mcpServers": {
"codela": {
"url": "https://mcp.usecodela.com",
"headers": { "Authorization": "Bearer <your-codela-token>" }
}
}
}Memory layer
Your AI agent reads the memory before it writes
Every regression Codela detects in your APM — slow endpoints, post-deploy degradations, cross-service N+1s — is written to a shared library. Claude Code, Cursor, and Windsurf query it via MCP before they write. So the bug Datadog flagged at 3am doesn't ship into a different service this afternoon.
Missing Timeout on External HTTP Call
This pattern caused 2 production incidents in your environment. An external HTTP call with no timeout will hang indefinitely if the downstream service is slow or unresponsive.
// last incident · 6 days ago · payments-service
p95 latency 340ms → 28s (+8,135%)
error rate 0.1% → 14.3%
root cause: Stripe webhook endpoint unresponsive for 4 min
timeout=5000 on the request. Wrap in a circuit breaker so cascading failures don't take down the caller.Works with your editor, your AI agent, and your APM
Features
Everything you need, nothing you don't
Datadog APM ingestion
Connect Datadog and Codela uses the function you're editing as a join key into production traces — p50/p95/p99, error rate, slow exemplars — surfaced inline. New Relic and Grafana next.
Inline production context
Editing charge_card? Codela tells you what its production p95 is, when it last errored, and which downstream services dominate its time. No window-switching to your APM dashboard.
Deploy regression detection
Every deploy triggers a pre/post APM comparison. p95 latency, error rate, span counts. If something got slower or broke after the merge, the pattern lands in your memory before anyone reads the alert.
Cross-service pattern analysis
Codela walks slow traces span-by-span to catch service-level explosions — like '500 inventory-service calls in one request' — patterns no single-function profiler can see.
Durable pattern library
Every regression Codela detects is stored as a structured rule — diagnosis, evidence, fix — and shared across your team. Read by the IDE and by your AI agent through MCP.
Client-side credentials
Datadog API and Application keys live in VS Code's encrypted SecretStorage and ride per-request as headers. The Codela backend is a stateless proxy in this mode — never persists your keys.
How it works
From APM signal to AI agent memory
Set it up once. Then a four-step loop runs every time prod tells us something — observing, remembering, preventing, and compounding the lessons.
Install the extension
VS Code or Cursor — 2 minutes. Adds the Codela panel and the configure-Datadog command.
Connect your APM
Paste your Datadog API key, App key, and service tag once. Credentials live in VS Code's encrypted SecretStorage and ride per-request as headers — the Codela backend is a stateless proxy; nothing is persisted on our servers.
Observe
Codela queries your APM for the function you're editing and watches every deploy for pre/post regressions in latency, error rate, and call patterns.
Remember
Regressions Codela detects in your APM become durable, evidence-backed rules automatically. No manual curation, no click-to-promote.
Prevent
Your AI agent reads the rules on every prompt via MCP. The function that broke prod last week doesn't ship into a different service this week.
Compound
Every rule your team creates makes your AI agents smarter. Codela aggregates patterns across its customer base — so your agents benefit from lessons learned across thousands of codebases, not just your own.