Files
sausage/extensions/prompt

System context

Every agent receives the top-level prompt from /etc/sausage/config.yaml, followed by its roster entry's prompt. The models extension reads both prompts again before each run. An edit applies to an existing conversation at its next run without a host restart. The default global prompt explains the world, its source, its config, and the harness routes. Agents can edit that shared guidance through the config.

The prompt extension supplies only runtime context: project_context, skills, tools, and cwd sections. The effective environment cwd takes precedence over the configured agent cwd. Project instructions include each AGENTS.md from the repository root to that cwd, in that order. Outside a repository, the extension reads the cwd's AGENTS.md only.

Skills come from /src/sausage/skills/*/SKILL.md and <repo>/.sausage/skills/*/SKILL.md. The prompt lists each skill's name, description, and path. A project skill replaces a built-in skill with the same name. The tools section lists the tools that the resolved agent can use.

host/tests/it/core_ext.rs tests these sections through the real snapshot loader. It also inspects the actual model request for harness guidance, prompt order, and a live global prompt edit.