Help / Red Codens
Error detection to auto-fix PR. Analyzes bugs from Sentry or manual reports, generates fix plans, and submits complex fixes to the Purple chain for a PR.
Red's primary unit is the bug report. A bug report can come from any of the following:
Once analyzed, a fix plan is produced. One click (or one call) submits it to Purple Codens for a PR. A 3-Retry loop auto-improves the patch up to a few times if tests fail.
codens-mcp installed and logged in.Use the dashboard (app.red.codens.ai) → "New Project", or register the same repo across products via MCP:
await tools.codens_register_project_unified({
repo_full_name: "Corevice/your-repo",
products: ["red", "purple"]
});During project creation, the GitHub App install status is checked. If missing, you'll be prompted into the install flow.
Inbound issues automatically create a bug report and kick off analysis.
// Create and analyze in one shot
await tools.red_bug_report({
action: "create",
project_id: "...",
title: "Login endpoint returns 500 on empty password",
description: "...",
severity: "high",
auto_analyze: true
});// Generate a fix plan from the analyzed bug
const plan = await tools.red_bug_fix_plan({
action: "generate",
bug_id: "..."
});
// Submit to Purple Codens to produce a PR
const submission = await tools.red_bug_fix_plan({
action: "submit_to_purple",
plan_id: plan.id
});
// → workflow run starts and PR URL comes backSimple single-file fixes can be PR'd directly via red_fix_proposal. Structural or multi-file fixes do better through the Purple chain.
red_external_task covers non-bug work such as refactors, feature additions, or doc generation.