Skip to content

wyrm_context_build ​

Category

Memory Artifacts

Use to build a compact context brief for the current task under a token budget - relevant patterns, lessons, and truths in one formatted block; max_tokens elides low-score items to recallable stubs.

Signature ​

ArgumentTypeRequiredDescription
projectPathstring✓
taskstring✓The current task
maxItemsnumberDefault 10, max 20
kindsstring[]Artifact kinds (see wyrm_recall)
minConfidencenumberDefault 0.3
max_tokensnumberToken budget; low-score items elide to stubs
session_idnumberAlready-seen dedup
strict_budgetbooleanAlso elide truths over budget

Hand-written prose for this tool will appear here. Edit between the markers above and below; the rest of this page regenerates on every docs build.

Proprietary · © 2026 Ghost Protocol (Pvt) Ltd