Expand description
Prompt context builders (extracted from server layer).
Stateless functions that construct workspace, environment, and instruction context for the agent system prompt.
Modules§
- instruction
- Instruction layer: loads instruction files (AGENTS.md, CLAUDE.md) from workspace.
Constants§
- CORE_
AGENT_ DIRECTIVES - Framework-invariant agent operating directives, applied on top of whatever base prompt is in effect.
- DEFAULT_
BASE_ PROMPT - ENV_
CONTEXT_ END_ MARKER - ENV_
CONTEXT_ START_ MARKER - PROJECT_
CONTEXT_ END_ MARKER - PROJECT_
CONTEXT_ PREFIX - PROJECT_
CONTEXT_ START_ MARKER - WORKSPACE_
CONTEXT_ END_ MARKER - WORKSPACE_
CONTEXT_ PREFIX - WORKSPACE_
CONTEXT_ START_ MARKER
Functions§
- assemble_
system_ prompt - Assemble a full system prompt from base prompt, optional enhancement, and context segments.
- assemble_
system_ prompt_ with_ project - build_
env_ prompt_ context - build_
project_ prompt_ context - Build the stable Project identity block.
- build_
workspace_ prompt_ context - build_
workspace_ prompt_ context_ with_ binding - upsert_
project_ prompt_ context - Replace every existing Project block with exactly one current block.
- upsert_
workspace_ prompt_ context - Replace every existing Workspace block with exactly one current block.
- workspace_
prompt_ guidance - Guidance for workspace-based interactions