DevRelAgent-independent

DevRelAgent — GitHub Project Tasks

Copy-paste these into GitHub Issues. Each section = 1 issue. Suggested Labels: phase-1, phase-2, phase-3, phase-4, agent, backend, frontend, infra, security, docs


Milestone: Phase 1 — Foundation (Week 1)


Issue #1: Project Setup & Monorepo Scaffolding

Labels: phase-1, infra Assignee: R1, R2, R3

Description: Set up the monorepo structure with backend (FastAPI) and frontend (Next.js) projects, shared configs, and CI basics.

Tasks:

Acceptance Criteria:


Issue #2: Agent Loop — Core Cognitive Pipeline

Labels: phase-1, agent Assignee: R1

Description: Implement the AgentLoop with 4 cognitive layers: Perception → Routing → Memory → Action, using LlamaIndex.

Tasks:

Acceptance Criteria:


Labels: phase-1, agent, backend Assignee: R1, R2

Description: Build the RAG pipeline: ingest docs → chunk → embed → FAISS index → retrieval-augmented answers.

Tasks:

Acceptance Criteria:


Issue #4: ClickHouse SQL Tool

Labels: phase-1, agent, backend Assignee: R2

Description: Build a tool that converts natural language queries into ClickHouse SQL, executes them, and returns formatted results.

Tasks:

Acceptance Criteria:


Issue #5: Chat Widget — Frontend

Labels: phase-1, frontend Assignee: R3

Description: Build the chat widget UI with streaming responses, message bubbles, and SQL sandbox display.

Tasks:

Acceptance Criteria:


Issue #6: Input Guardrails (Topic Filter + PII Scrubber)

Labels: phase-1, security Assignee: R2

Description: Implement input-level guardrails to filter off-topic queries and scrub PII before processing.

Tasks:

Acceptance Criteria:


Milestone: Phase 2 — Code Intelligence + MCP (Week 2)


Issue #7: Code Search Tool (GitHub/GitLab)

Labels: phase-2, agent, backend Assignee: R1

Description: Build a tool that indexes codebase function/class signatures and enables semantic search to map errors to source code.

Tasks:

Acceptance Criteria:


Issue #8: MCP Server — Tool Interop

Labels: phase-2, agent, backend Assignee: R1

Description: Expose all registered tools as MCP server endpoints so external MCP clients (Claude Desktop, Cursor, etc.) can call them.

Tasks:

Acceptance Criteria:


Issue #9: Skills Framework + DiagnoseErrorSkill

Labels: phase-2, agent Assignee: R1

Description: Build the skills framework for composable multi-tool workflows. Implement DiagnoseErrorSkill as the first skill.

Tasks:

Acceptance Criteria:


Issue #10: Output Guardrails (SQL Safety + Grounding)

Labels: phase-2, security Assignee: R2

Description: Implement output-level guardrails for SQL safety validation and response grounding checks.

Tasks:

Acceptance Criteria:


Issue #11: Rich Message Components — Frontend

Labels: phase-2, frontend Assignee: R3

Description: Build rich message components for displaying code snippets, log streams, and error traces in the chat UI.

Tasks:

Acceptance Criteria:


Milestone: Phase 3 — Reliability + Intelligence (Week 3)


Issue #12: SQL Self-Correction Loop

Labels: phase-3, agent Assignee: R1

Description: Implement auto-retry logic: when a ClickHouse SQL query fails, parse the error, rewrite the SQL, and retry (max 3 attempts).

Tasks:

Acceptance Criteria:


Issue #13: Known Error Database (KeDB)

Labels: phase-3, agent, backend Assignee: R2

Description: Build the KeDB: a vector store of resolved issues (error_signature → root_cause → solution) that the agent checks first.

Tasks:

Acceptance Criteria:


Issue #14: Human-in-the-Loop (HITL) Framework

Labels: phase-3, agent, frontend Assignee: R1, R3

Description: Build the HITL approval gate: agent pauses on write actions, emits a plan, and waits for user approval.

Tasks:

Acceptance Criteria:


Issue #15: Proactive Health Check (Cron)

Labels: phase-3, agent, backend Assignee: R2

Description: Implement scheduled health checks using APScheduler: query ClickHouse for error spikes and generate reports.

Tasks:

Acceptance Criteria:


Issue #16: The Deck — Health Dashboard

Labels: phase-3, frontend Assignee: R3

Description: Build “The Deck” — a real-time health dashboard showing alert cards, system status, and proactive insights.

Tasks:

Acceptance Criteria:


Issue #17: Tool Guardrails (Rate Limit + Timeout + Scope)

Labels: phase-3, security Assignee: R2

Description: Add tool-level guardrails: rate limiting, execution timeouts, and scope restrictions.

Tasks:

Acceptance Criteria:


Milestone: Phase 4 — Reasoning + Browser Use + Polish (Week 4)


Issue #18: Browser Use Tool (Playwright + browser-use)

Labels: phase-4, agent Assignee: R1

Description: Integrate browser-use + Playwright so the agent can navigate web UIs (Grafana, admin panels) and perform actions via chat commands.

Tasks:

Acceptance Criteria:


Issue #19: Browser Session Viewer — Frontend

Labels: phase-4, frontend Assignee: R3

Description: Build the UI for viewing the agent’s browser actions: live screenshot stream and HITL approval for UI actions.

Tasks:

Acceptance Criteria:


Issue #20: Multi-Step Reasoning (Chain of Thought)

Labels: phase-4, agent Assignee: R1

Description: Implement multi-step reasoning for complex cross-domain queries using Chain of Thought and a correlation engine.

Tasks:

Acceptance Criteria:


Issue #21: GitHub Issue & PR Drafting Tools

Labels: phase-4, agent, backend Assignee: R2

Description: Build tools to draft GitHub issues and PRs based on agent analysis, gated by HITL approval.

Tasks:

Acceptance Criteria:


Issue #22: Security Audit & Testing

Labels: phase-4, security Assignee: All

Description: Comprehensive security testing across all guardrails and attack surfaces.

Tasks:

Acceptance Criteria:


Issue #23: End-to-End Demo & Documentation

Labels: phase-4, docs Assignee: All

Description: Prepare the 5-minute live demo, record it, and finalize all documentation.

Tasks:

Acceptance Criteria: