一键导入
hgraf-read-memory-bank
Orient on harmonograf before making changes. Read AGENTS.md, the dev guide, design docs, and key source files in the right order.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Orient on harmonograf before making changes. Read AGENTS.md, the dev guide, design docs, and key source files in the right order.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Understand and safely change heartbeat interval, stuck threshold, and timeout constants — client cadence, server detection math, frontend signal.
Add a new AnnotationKind — proto, storage, ingress RPC, optional downstream delivery to agents, frontend authoring UI, tests.
Add a new agent Capability — proto enum, client advertisement, server ingest, frontend gating in the control UI.
Add a new ControlKind — capability advertisement, client handler, server routing, ack semantics, frontend button, and tests — all the way through.
Add a new drift kind end-to-end. Goldfive owns the detector + enum; harmonograf reflects the kind through the intervention aggregator and the UI timeline.
Script a complex multi-turn FakeLlm scenario — function calls, tool chains, drift events, side-effect hooks, partial responses — for deterministic adk test coverage.
| name | hgraf-read-memory-bank |
| description | Orient on harmonograf before making changes. Read AGENTS.md, the dev guide, design docs, and key source files in the right order. |
You're starting work on a harmonograf task and need orientation on a subsystem you haven't touched. This is the "first 10 minutes of any non-trivial task" skill.
AGENTS.md — project vision + high-level architecture.README.md — external framing and quickstart.docs/dev-guide/index.md — map of the developer documentation.dev-guide/setup.md — boot the stack locally.dev-guide/architecture.md — the three-component (client /
server / frontend) map.dev-guide/client-library.md — HarmonografTelemetryPlugin,
HarmonografSink, lazy Hello, per-agent attribution, plugin
dedup, cancellation sweep.dev-guide/server.md — ingest pipeline, bus, storage,
auto-register agents, intervention aggregator, RPC surface
(WatchSession, ListInterventions, PostAnnotation, …).dev-guide/frontend.md — stores, views, InterventionsTimeline,
per-agent Gantt rows.dev-guide/working-with-protos.md — proto layout,
forward-compat rules, codegen.dev-guide/storage-backends.md — Store ABC + SQLite schema.dev-guide/migration.md — goldfive migration, overlay era,
lazy Hello era, per-agent rows era.user-guide/trajectory-view.md — the plan review and
intervention history surface. Read before touching intervention-
related code.user-guide/gantt-view.md — per-agent rows, cross-agent edges,
cross-links to controls.user-guide/tasks-and-plans.md — the overlay-era task state
machine and the drift kind taxonomy.user-guide/control-actions.md — STEER / CANCEL / PAUSE
semantics, body validation, idempotency.docs/design/ numbered ADRs and architecture notes. Look up by
topic (data model, protocol, internals). Often older than the
dev-guide — cross-check.
docs/runbooks/*.md — operator-oriented symptom → cause → fix.
Useful even when writing code because they enumerate real failure
modes.
When the docs and the code disagree, the code is the ground truth. Anchor your reading with these files:
client/harmonograf_client/telemetry_plugin.py
(~1150 lines).client/harmonograf_client/sink.py.client/harmonograf_client/_control_bridge.py.server/harmonograf_server/ingest.py.server/harmonograf_server/interventions.py.server/harmonograf_server/storage/sqlite.py.proto/harmonograf/v1/{types,telemetry,frontend,control,service}.proto.frontend/src/gantt/index.ts.frontend/src/lib/interventions.ts.frontend/src/components/Interventions/InterventionsTimeline.tsx.frontend/src/lib/shortcuts.ts.| Task | Read in this order |
|---|---|
| Add a drift kind | goldfive docs first → user-guide/tasks-and-plans.md → dev-guide/server.md#listinterventions-71 → frontend/src/lib/interventions.ts |
| Add a proto field | dev-guide/working-with-protos.md → relevant .proto file → convert.py → frontend rpc/convert.ts |
| Modify ingest | dev-guide/server.md → server/harmonograf_server/ingest.py |
| Add a Gantt overlay | dev-guide/frontend.md → frontend/src/gantt/renderer.ts → ContextWindowBadgeStrip as a reference |
| Debug stuck task | runbooks/task-stuck-in-{pending,running}.md → dev-guide/debugging.md |
| Understand the intervention timeline | user-guide/trajectory-view.md → server/harmonograf_server/interventions.py → frontend/src/lib/interventions.ts + InterventionsTimeline.tsx |
You've read enough when you can answer:
interventions.py) and the frontend
(lib/interventions.ts) need updates?SCHEMA + the backfill block in SqliteStore.start().