hyperdx/agent_docs
Brandon Pereira 205919f522
Some checks are pending
Knip - Unused Code Analysis / knip (push) Waiting to run
Main / lint (push) Waiting to run
Main / unit (push) Waiting to run
Main / integration (push) Waiting to run
Main / otel-unit-test (push) Waiting to run
Main / otel-smoke-test (push) Waiting to run
Main / e2e-tests (push) Waiting to run
Main / End-to-End Tests (push) Blocked by required conditions
Main / ClickHouse Bundle Build (push) Waiting to run
Push Downstream / push-downstream (push) Waiting to run
Release / Check Changesets (push) Waiting to run
Release / Check if version exists (push) Blocked by required conditions
Release / Build OTel Collector (amd64) (push) Blocked by required conditions
Release / Build OTel Collector (arm64) (push) Blocked by required conditions
Release / Publish OTel Collector Manifest (push) Blocked by required conditions
Release / Build App (amd64) (push) Blocked by required conditions
Release / Build App (arm64) (push) Blocked by required conditions
Release / Publish App Manifest (push) Blocked by required conditions
Release / Build Local (amd64) (push) Blocked by required conditions
Release / Build Local (arm64) (push) Blocked by required conditions
Release / Publish Local Manifest (push) Blocked by required conditions
Release / Build All-in-One (amd64) (push) Blocked by required conditions
Release / Build All-in-One (arm64) (push) Blocked by required conditions
Release / Publish All-in-One Manifest (push) Blocked by required conditions
Release / Release CLI Binaries (push) Blocked by required conditions
Release / Notify Helm-Charts Downstream (push) Blocked by required conditions
Release / Notify CH Downstream (push) Blocked by required conditions
Release / notify_clickhouse_clickstack (push) Blocked by required conditions
Release / slack-notify-failure (push) Blocked by required conditions
Release / OpenTelemetry Export Trace (push) Blocked by required conditions
docs: improve agent docs coverage for CLI, MCP, External API, OpAMP, and otel-collector (#2315)
## What changed

The root `AGENTS.md` and `agent_docs/` only documented 3 of the 5 packages and had no mention of several major API subsystems. Agents working from these docs had no awareness of the CLI, otel-collector, MCP server, External API v2, OpAMP server, or background tasks.

### Changes

**`AGENTS.md`**
- Architecture section: "three main packages" → "five packages", added `packages/cli` and `packages/otel-collector` with links to their own docs
- Added note that the API package hosts MCP, External API v2, and OpAMP as sub-applications
- Added "Package-specific guides" subsection pointing to `packages/cli/AGENTS.md`, `packages/otel-collector/README.md`, and `MCP.md`
- Added `packages/cli` type-check command to the Running Tests section

**`agent_docs/architecture.md`**
- Replaced the 4-bullet "Backend Architecture" section with detailed subsections for each API surface:
  - **Internal API** — layered structure (routers/controllers/middleware/services), session auth
  - **External API v2** — routes, OpenAPI workflow (`yarn docgen` + `yarn lint:openapi`), tests
  - **MCP Server** — entry points, tools/prompts structure, tests, dev inspector
  - **OpAMP Server** — controller/service/model/proto structure, config derivation
  - **Background Tasks** — all task files, dev vs prod execution, Vercel limitation

**`agent_docs/README.md`**
- Fixed 3 stale references from `CLAUDE.md` → `AGENTS.md`
2026-05-20 14:51:46 +00:00
..
architecture.md docs: improve agent docs coverage for CLI, MCP, External API, OpAMP, and otel-collector (#2315) 2026-05-20 14:51:46 +00:00
code_style.md docs(agent): single source of truth for data viz colors (#2269) 2026-05-13 13:05:47 +00:00
data_viz_colors.md docs(agent): single source of truth for data viz colors (#2269) 2026-05-13 13:05:47 +00:00
development.md [HDX-4125] Enable end-to-end PR testing on Vercel previews (inline API) (#2184) 2026-05-05 14:12:50 +00:00
README.md docs: improve agent docs coverage for CLI, MCP, External API, OpAMP, and otel-collector (#2315) 2026-05-20 14:51:46 +00:00
tech_stack.md Remove Bootstrap Icons (#1480) 2025-12-15 17:06:40 +00:00

Agent Documentation Directory

This directory contains detailed documentation for AI coding agents working on the HyperDX codebase. These files use progressive disclosure - they're referenced from AGENTS.md but only read when needed.

Purpose

Instead of stuffing all instructions into AGENTS.md (which goes into every conversation), we keep detailed, task-specific information here. This ensures:

  1. Better focus: Only relevant context gets loaded per task
  2. Improved performance: Smaller context window = better instruction following
  3. Easier maintenance: Update specific docs without bloating the main file

Files

  • architecture.md - System architecture, data models, service relationships, security patterns
  • tech_stack.md - Technology choices, UI component patterns, library usage
  • development.md - Development workflows, testing strategy, common tasks, debugging
  • code_style.md - Code patterns and best practices (read only when actively coding)
  • data_viz_colors.md - Chart, heatmap, and semantic status colors. Read before adding or changing any color in a chart, sparkline, heatmap, legend, or status pill.

Usage Pattern

When starting a task:

  1. Agent reads AGENTS.md first (always included)
  2. Agent determines which (if any) docs from this directory are relevant
  3. Agent reads only the needed documentation
  4. Agent proceeds with focused, relevant context

Maintenance

  • Keep files focused on their specific domain
  • Use file/line references instead of code snippets when possible
  • Update when patterns or architecture change
  • Keep documentation current with the codebase