-
Notifications
You must be signed in to change notification settings - Fork 339
Expand file tree
/
Copy pathtoolset_instructions.yaml
More file actions
57 lines (52 loc) · 2 KB
/
toolset_instructions.yaml
File metadata and controls
57 lines (52 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env docker agent run
# This example demonstrates how to use {ORIGINAL_INSTRUCTIONS} in a
# toolset instruction to *enrich* the built-in instructions instead of
# replacing them.
#
# Every toolset ships with default instructions that guide the agent on
# how to use its tools effectively (e.g., the filesystem toolset
# explains security restrictions and performance tips). When you set
# the `instruction` field on a toolset, by default that text *replaces*
# the built-in instructions entirely.
#
# If you want to keep the original guidance and just add your own rules
# on top, include the placeholder {ORIGINAL_INSTRUCTIONS} anywhere in
# your instruction text. At runtime it will be substituted with the
# toolset's built-in instructions, so the agent sees both.
#
# Three patterns:
#
# 1. Enrich (prepend originals, append yours):
# instruction: |
# {ORIGINAL_INSTRUCTIONS}
# Never delete files without asking.
#
# 2. Enrich (prepend yours, append originals):
# instruction: |
# Important: only touch files under ./src.
# {ORIGINAL_INSTRUCTIONS}
#
# 3. Replace (omit the placeholder entirely):
# instruction: |
# Only read Markdown files.
agents:
root:
model: openai/gpt-4o
description: A coding assistant with enriched toolset instructions
instruction: |
You are a helpful coding assistant.
toolsets:
# ── Filesystem: enrich the built-in instructions ──────────
- type: filesystem
instruction: |
{ORIGINAL_INSTRUCTIONS}
## Project-specific rules
- Never modify files outside the `src/` directory.
- Always create a backup before overwriting a file.
# ── Shell: enrich the built-in instructions ───────────────
- type: shell
instruction: |
{ORIGINAL_INSTRUCTIONS}
## Extra safety rules
- Never run `rm -rf` commands.
- Always use `--dry-run` when available.