Skip to content

rcagent#222

Open
shuvendu-kumar-mohapatra wants to merge 5 commits into
Lamatic:mainfrom
shuvendu-kumar-mohapatra:feat/rcagent
Open

rcagent#222
shuvendu-kumar-mohapatra wants to merge 5 commits into
Lamatic:mainfrom
shuvendu-kumar-mohapatra:feat/rcagent

Conversation

@shuvendu-kumar-mohapatra

@shuvendu-kumar-mohapatra shuvendu-kumar-mohapatra commented Jul 11, 2026

Copy link
Copy Markdown

PR Checklist

1. Select Contribution Type

  • Kit (kits/<category>/<kit-name>/)
  • Bundle (bundles/<bundle-name>/)
  • Template (templates/<template-name>/)

2. General Requirements

  • PR is for one project only (no unrelated changes)
  • No secrets, API keys, or real credentials are committed
  • Folder name uses kebab-case and matches the flow ID
  • All changes are documented in README.md (purpose, setup, usage)

3. File Structure (Check what applies)

  • config.json present with valid metadata (name, description, tags, steps, author, env keys)
  • All flows in flows/<flow-name>/ (where applicable) include:
    • config.json (Lamatic flow export)
    • inputs.json
    • meta.json
    • README.md
  • .env.example with placeholder values only (kits only)
  • No hand‑edited flow config.json node graphs (changes via Lamatic Studio export)

4. Validation

  • npm install && npm run dev works locally (kits: UI runs; bundles/templates: flows are valid)
  • PR title is clear (e.g., [kit] Add <name> for <use case>)
  • GitHub Actions workflows pass (all checks are green)
  • All CodeRabbit or other PR review comments are addressed and resolved
  • No unrelated files or projects are modified

Copilot AI review requested due to automatic review settings July 11, 2026 14:48
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • agentkit-challenge

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: 05eb30de-5dd4-4917-a5ba-667c0977c83c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new RCAgent kit to AgentKit: a 3-stage Lamatic flow pipeline (planner/analyzer/synthesizer) plus a Next.js “incident room” demo UI for running the pipeline and rendering a markdown postmortem.

Changes:

  • Introduces the kits/rcagent kit with Lamatic flow exports, prompts, constitutions, and kit metadata.
  • Adds a Next.js app (kits/rcagent/apps) that orchestrates the 3-step pipeline (mock + real Lamatic execution) and displays intermediate outputs + final report.
  • Adds supporting kit docs and environment templates (README.md, agent.md, .env.example, etc.).

Reviewed changes

Copilot reviewed 34 out of 36 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
tatus Added file containing ANSI-colored git diff output (appears unintended).
kits/rcagent/README.md Kit setup and local run instructions.
kits/rcagent/prompts/rcagent-synthesizer_user.md Synthesizer user prompt template.
kits/rcagent/prompts/rcagent-synthesizer_system.md Synthesizer system prompt template.
kits/rcagent/prompts/rcagent-planner_user.md Planner user prompt template.
kits/rcagent/prompts/rcagent-planner_system.md Planner system prompt template.
kits/rcagent/prompts/rcagent-analyzer_user.md Analyzer user prompt template.
kits/rcagent/prompts/rcagent-analyzer_system.md Analyzer system prompt template.
kits/rcagent/model-configs/rcagent-synthesizer_config.ts Synthesizer model-config file.
kits/rcagent/model-configs/rcagent-planner_config.ts Planner model-config file.
kits/rcagent/model-configs/rcagent-analyzer_config.ts Analyzer model-config file.
kits/rcagent/lamatic.config.ts Kit metadata (name/tags/steps/env keys/links).
kits/rcagent/flows/rcagent-synthesizer.ts Lamatic flow export for synthesizer stage.
kits/rcagent/flows/rcagent-planner.ts Lamatic flow export for planner stage.
kits/rcagent/flows/rcagent-analyzer.ts Lamatic flow export for analyzer stage.
kits/rcagent/constitutions/default.md Kit constitution (safety/data handling/tone).
kits/rcagent/apps/tsconfig.json TypeScript config for the Next.js app.
kits/rcagent/apps/postcss.config.mjs PostCSS/Tailwind integration.
kits/rcagent/apps/package.json App dependencies/scripts (Next/React/Tailwind/etc.).
kits/rcagent/apps/package-lock.json Locked dependency tree for the app.
kits/rcagent/apps/orchestrate.js Pipeline step definitions + env bindings.
kits/rcagent/apps/next.config.mjs Next.js configuration.
kits/rcagent/apps/next-env.d.ts Next.js TS env typings.
kits/rcagent/apps/lib/lamatic-client.ts Lamatic client initialization + env validation.
kits/rcagent/apps/components/rca-report.tsx Markdown report renderer + copy-to-clipboard.
kits/rcagent/apps/components/pipeline-view.tsx Pipeline progress/step output UI.
kits/rcagent/apps/components/incident-form.tsx Incident input form with demo defaults.
kits/rcagent/apps/components.json shadcn/ui component configuration.
kits/rcagent/apps/app/page.tsx Main incident-room page (runs pipeline steps).
kits/rcagent/apps/app/layout.tsx Root layout and metadata for the app.
kits/rcagent/apps/app/globals.css Tailwind v4 globals/theme variables.
kits/rcagent/apps/actions/orchestrate.ts Server action that executes Lamatic flows (mock + real).
kits/rcagent/apps/.env.example App env template for Lamatic + flow IDs.
kits/rcagent/agent.md Kit overview and flow contract documentation.
kits/rcagent/.gitignore Kit-level ignores for app builds/env files.
kits/rcagent/.env.example Kit-level env template (duplicate of apps template).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tatus Outdated
Comment on lines +1 to +5
diff --git a/registry.json b/registry.json
index 044f58f..fcf2b64 100644
--- a/registry.json
+++ b/registry.json
@@ -3,9 +3,9 @@
Comment on lines +2430 to +2435
"node_modules/next": {
"version": "15.2.4",
"resolved": "https://registry.npmjs.org/next/-/next-15.2.4.tgz",
"integrity": "sha512-VwL+LAaPSxEkd3lU2xWbgEOtrM8oedmyhBqaVNmgKB+GvZlCy9rgaEc+y2on0wv+l0oSFqLtYD6dcC1eAedUaQ==",
"deprecated": "This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/CVE-2025-66478 for more details.",
"license": "MIT",
Comment on lines +15 to +19
"lamatic": "^0.3.2",
"lucide-react": "^0.454.0",
"next": "15.2.4",
"next-themes": "^0.4.6",
"react": "^18.3.1",
Comment thread kits/rcagent/apps/components/rca-report.tsx Outdated
<h4 className={`text-base font-semibold ${isActive ? "text-slate-950 dark:text-white" : "text-slate-700 dark:text-slate-300"}`}>
{step.name}
</h4>
<p className="text-xs text-slate-500 dark:text-slate-450">{step.description}</p>
Comment on lines +1 to +5
export default {
"memories": "@model-configs/rcagent-planner_config.ts",
"messages": "@model-configs/rcagent-planner_config.ts",
"attachments": "@model-configs/rcagent-planner_config.ts"
};
Comment thread kits/rcagent/model-configs/rcagent-analyzer_config.ts
Comment on lines +1 to +5
export default {
"memories": "@model-configs/rcagent-synthesizer_config.ts",
"messages": "@model-configs/rcagent-synthesizer_config.ts",
"attachments": "@model-configs/rcagent-synthesizer_config.ts"
};
Comment thread kits/rcagent/apps/lib/lamatic-client.ts
Comment thread kits/rcagent/apps/lib/lamatic-client.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 36 changed files in this pull request and generated 12 comments.

Comment thread tatus Outdated
Comment on lines +1 to +5
diff --git a/registry.json b/registry.json
index 044f58f..fcf2b64 100644
--- a/registry.json
+++ b/registry.json
@@ -3,9 +3,9 @@
Comment on lines +52 to +56
p: ({ children }) => <p className="text-sm leading-relaxed mb-4 text-slate-600 dark:text-slate-355">{children}</p>,
ul: ({ children }) => <ul className="list-disc pl-5 mb-4 text-sm space-y-1.5 text-slate-600 dark:text-slate-355">{children}</ul>,
li: ({ children }) => <li>{children}</li>,
code: ({ children }) => <code className="bg-slate-50 dark:bg-slate-900 px-1.5 py-0.5 rounded text-xs font-mono text-slate-800 dark:text-slate-200">{children}</code>,
pre: ({ children }) => <pre className="bg-slate-50 dark:bg-slate-900 p-4 rounded-xl border border-slate-100 dark:border-slate-800 overflow-x-auto text-xs font-mono text-slate-750 dark:text-slate-300 mb-4">{children}</pre>,
<h4 className={`text-base font-semibold ${isActive ? "text-slate-950 dark:text-white" : "text-slate-700 dark:text-slate-300"}`}>
{step.name}
</h4>
<p className="text-xs text-slate-500 dark:text-slate-450">{step.description}</p>

{/* Intermediate Output details */}
{isSuccess && step.data && (
<div className="bg-slate-50 dark:bg-slate-900/50 p-4 rounded-xl border border-slate-100 dark:border-slate-800 text-xs font-mono text-slate-600 dark:text-slate-350 max-h-48 overflow-y-auto whitespace-pre-wrap">
"DEPLOYMENT ENVIRONMENT CONFIG:\n" +
"PORT=3000\n" +
"DB_URL=postgresql://localhost:5432/mydb\n" +
"JWT_SECRET=super-secret-auth-key-12345"
Comment on lines +1 to +5
export default {
"memories": "@model-configs/rcagent-planner_config.ts",
"messages": "@model-configs/rcagent-planner_config.ts",
"attachments": "@model-configs/rcagent-planner_config.ts"
};
Comment on lines +1 to +5
export default {
"memories": "@model-configs/rcagent-analyzer_config.ts",
"messages": "@model-configs/rcagent-analyzer_config.ts",
"attachments": "@model-configs/rcagent-analyzer_config.ts"
};
Comment on lines +1 to +5
export default {
"memories": "@model-configs/rcagent-synthesizer_config.ts",
"messages": "@model-configs/rcagent-synthesizer_config.ts",
"attachments": "@model-configs/rcagent-synthesizer_config.ts"
};
Comment on lines +16 to +18
"lucide-react": "^0.454.0",
"next": "15.2.4",
"next-themes": "^0.4.6",
Comment on lines +8 to +10
throw new Error(
"All Workflow IDs in environment variables are not set. Please add it to your .env.local file."
);

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants