II.
Page overview
Reference · livepage:docs-harness-features-backlog-gaps-prompt-engineering-gap-prompt-006
GAP-PROMPT-006: Instructions Loaded Hook overview
Inspect the raw attributes, linked wiki pages, and inbound or outbound graph edges for page:docs-harness-features-backlog-gaps-prompt-engineering-gap-prompt-006.
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
# GAP-PROMPT-006: Instructions Loaded Hook
| Field | Value |
|-------|-------|
| Category | prompt-engineering |
| Priority | Medium |
| Effort | M |
| Status | Missing |
## Description
Fire 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.
## Current State
Instructions are static per run. No hook fires during prompt assembly. Plugins cannot modify or extend the assembled prompt.
## Target State
An `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.
## Dependencies
- [GAP-PROMPT-001](../prompt-engineering/GAP-PROMPT-001.md) -- strata model for structured modification
## Key Files
| Component | Path |
|-----------|------|
| Hook dispatcher | `packages/sdk/src/hooks/dispatcher.ts` |
| Prompts module | `packages/sdk/src/prompts/` |
| 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 |
## Recommendation
Phase 3 implementation. Add `on-instructions-loaded` to the hook types enum. Fire after prompt composition in the instructions generation pipeline.
documents
[]
Outgoing edges
None.
Incoming edges
contains_page1
- page:docs-harness-features-backlog·PageHarness Features Backlog: Gap Analysis (Restructured)