跳转到内容

Directives

此内容尚不支持你的语言。

A directive is text RTK writes in front of the agent. It is how RTK reaches what no transform can touch: how the agent writes, which commands it uses.

[[directive]]
use = "terse-output"
[[directive]]
name = "house-rules"
file = ".rtk/directives/house-rules.md"
[[directive]]
use = "rtk-awareness"
level = "default"
KeyNotes
use / text / fileexactly one: a shipped directive, inline text, or a file relative to the pipeline file
namedefaults to use
channelawareness_file (default): RTK’s instruction file, present every turn
enabled
module optionslevel for rtk-awareness
DirectiveShipsWhat it does
rtk-awarenessonthe awareness levels (default · high · full); [awareness] in config.toml still applies
terse-outputoffterse prose; code, paths, commands and errors are never abbreviated, and destructive-action warnings stay full sentences
route-tasksgeneratedwritten whenever a task has an upstream: tells the agent the exact rtk <task> syntax

A file containing nothing but a directive is a valid pipeline and leaves rtk:default intact — see rtk:terse.

All enabled directives are rendered and joined in declaration order into one block, written once between RTK’s markers in the agent’s instruction file. Re-running rtk init rewrites that block and nothing else.

A directive sits in context every turn. rtk gain shows directives as net — output tokens saved minus the standing cost.

A directive changes the agent’s behaviour. rtk pipeline show prints every directive verbatim, and rtk init shows a project’s directives in full before asking to trust the file.