70 lines
3.0 KiB
TOML
70 lines
3.0 KiB
TOML
# Worker internal prompts (builtin pack).
|
|
#
|
|
# Values are minijinja template strings. Use `{% include "$prefix/..." %}`
|
|
# to pull in long text from the $yoi / $user / $workspace prompt
|
|
# libraries.
|
|
#
|
|
# Every key here MUST correspond to a `WorkerPrompt` variant; missing or
|
|
# extra keys cause a build-time error (see `crates/worker/build.rs`).
|
|
|
|
[prompt]
|
|
compact_system = "{% include \"$yoi/internal/compact_system\" %}"
|
|
|
|
memory_extract_system = "{% include \"$yoi/internal/memory_extract_system\" %}"
|
|
|
|
memory_consolidation_system = "{% include \"$yoi/internal/memory_consolidation_system\" %}"
|
|
|
|
notify_wrapper = """\
|
|
[Notification]
|
|
{{ message }}
|
|
|
|
This is a notification, not a blocking request. If you are in the middle of a task, continue your current work and address this at a natural stopping point.\
|
|
"""
|
|
|
|
interrupt_tool_result_summary = "[Interrupted by user]"
|
|
|
|
interrupt_system_note = "[The previous turn was interrupted by the user. The user's next request follows.]"
|
|
|
|
working_boundaries_section = """\
|
|
---
|
|
## Working boundaries
|
|
|
|
{{ scope_summary }}\
|
|
"""
|
|
|
|
agents_md_section = """\
|
|
---
|
|
## Project instructions (AGENTS.md)
|
|
|
|
{{ agents_md }}\
|
|
"""
|
|
|
|
resident_memory_summary_section = """\
|
|
---
|
|
## Resident memory summary
|
|
|
|
The following is the current durable session/workspace summary. Treat it as background context; it is not a user request.
|
|
|
|
{{ summary }}\
|
|
"""
|
|
|
|
|
|
worker_orchestration_guidance_section = "{% include \"$yoi/common/worker-orchestration\" %}"
|
|
|
|
ticket_event_companion_notice = "{% include \"$yoi/worker/ticket_event_companion_notice\" %}"
|
|
|
|
sub_worker_spawn_tool_description = """\
|
|
Spawn a parent-owned Internal SubWorker session to split context for a delegated task. The parent Worker's write scope is reduced by the scope passed here; the Internal SubWorker starts running `task` immediately without creating a Runtime Worker record, OS process, PID, or Unix socket. It remains available for follow-up turns until explicitly stopped or its parent exits.
|
|
|
|
Optional `cwd`: when provided, it is the Internal SubWorker's tool default working directory only. It must be an absolute existing directory covered by the child's delegated readable scope, and it does not change workspace/Profile/memory/Ticket roots or grant authority. `name` must be unique among this Worker's direct children.
|
|
|
|
Profile selection: `profile` may be omitted or set to `default` to use the effective child default profile, set to `inherit` to derive reusable child configuration from this Worker, or set to one of the registry selectors below. Raw/path profile selectors are not accepted by SubWorkerSpawn. `scope` is always the only delegated filesystem capability; profile scope is replaced by the explicit SubWorkerSpawn scope.
|
|
|
|
Default profile: {{ default_profile }}
|
|
Special selector: inherit — derive reusable model/worker/tool policy from the spawner while replacing worker.name and scope.
|
|
Available registry profiles:
|
|
{{ available_profiles }}{% if profile_diagnostic %}
|
|
|
|
Profile discovery diagnostic: {{ profile_diagnostic }}{% endif %}\
|
|
"""
|