iiRecord
Agentic AI Atlas · GAP-PROMPT-006: Instructions Loaded Hook
page:docs-harness-features-backlog-gaps-prompt-engineering-gap-prompt-006a5c.ai
II.
Page JSON

page:docs-harness-features-backlog-gaps-prompt-engineering-gap-prompt-006

Structured · live

GAP-PROMPT-006: Instructions Loaded Hook json

Inspect the normalized record payload exactly as the atlas UI reads it.

File · wiki/docs/harness-features-backlog/gaps/prompt-engineering/gap-prompt-006.mdCluster · wiki
Record JSON
{
  "id": "page:docs-harness-features-backlog-gaps-prompt-engineering-gap-prompt-006",
  "_kind": "Page",
  "_file": "wiki/docs/harness-features-backlog/gaps/prompt-engineering/gap-prompt-006.md",
  "_cluster": "wiki",
  "attributes": {
    "nodeKind": "Page",
    "sourcePath": "docs/harness-features-backlog/gaps/prompt-engineering/GAP-PROMPT-006.md",
    "sourceKind": "repo-docs",
    "title": "GAP-PROMPT-006: Instructions Loaded Hook",
    "displayName": "GAP-PROMPT-006: Instructions Loaded Hook",
    "slug": "docs/harness-features-backlog/gaps/prompt-engineering/gap-prompt-006",
    "articlePath": "wiki/docs/harness-features-backlog/gaps/prompt-engineering/GAP-PROMPT-006.md",
    "article": "\n# GAP-PROMPT-006: Instructions Loaded Hook\n\n| Field | Value |\n|-------|-------|\n| Category | prompt-engineering |\n| Priority | Medium |\n| Effort | M |\n| Status | Missing |\n\n## Description\nFire a hook after prompt instructions are assembled but before they are sent to the harness, allowing plugins and processes to dynamically modify instructions at load time.\n\n## Current State\nInstructions are static per run. No hook fires during prompt assembly. Plugins cannot modify or extend the assembled prompt.\n\n## Target State\nAn `on-instructions-loaded` hook fires after prompt composition with the assembled prompt as payload. Hook handlers can modify, extend, or annotate the prompt. This enables plugin-driven prompt customization.\n\n## Dependencies\n- [GAP-PROMPT-001](../prompt-engineering/GAP-PROMPT-001.md) -- strata model for structured modification\n\n## Key Files\n| Component | Path |\n|-----------|------|\n| Hook dispatcher | `packages/sdk/src/hooks/dispatcher.ts` |\n| Prompts module | `packages/sdk/src/prompts/` |\n| CC prompt phrasing analysis | [`11-prompt-phrasing-analysis.md`](../../11-prompt-phrasing-analysis.md) -- Section 1 (System Prompt Architecture) documents CC's layered prompt assembly with override/coordinator/agent/custom/default hierarchy |\n\n## Recommendation\nPhase 3 implementation. Add `on-instructions-loaded` to the hook types enum. Fire after prompt composition in the instructions generation pipeline.\n",
    "documents": []
  },
  "outgoingEdges": [],
  "incomingEdges": [
    {
      "from": "page:docs-harness-features-backlog",
      "to": "page:docs-harness-features-backlog-gaps-prompt-engineering-gap-prompt-006",
      "kind": "contains_page"
    }
  ]
}