forked from strands-agents/samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path02-self-modifying.cast
More file actions
129 lines (129 loc) · 4.48 KB
/
Copy path02-self-modifying.cast
File metadata and controls
129 lines (129 loc) · 4.48 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{"version": 2, "width": 110, "height": 32, "timestamp": 1778029798, "idle_time_limit": 2.0, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}, "title": "AIM308 \u2014 02-self-modifying"}
[0.057975, "o", "\u001b[3J\u001b[H\u001b[2J"]
[0.058831, "o", "\u001b[1;36m╭─ AIM308 · Step 2 — Self-Modifying System Prompt ───────────────╮\u001b[0m\r\n"]
[0.058847, "o", "\u001b[1;36m│ Agent REWRITES its own identity, persisted in .prompt │\u001b[0m\r\n"]
[0.058872, "o", "\u001b[1;36m╰─────────────────────────────────────────────────────────────────╯\u001b[0m\r\n\r\n"]
[1.072581, "o", "\u001b[1;32m$ \u001b[0m"]
[1.072738, "o", "l"]
[1.109517, "o", "s"]
[1.147581, "o", " "]
[1.185561, "o", "-"]
[1.221525, "o", "l"]
[1.259705, "o", "a"]
[1.296655, "o", " "]
[1.331434, "o", "."]
[1.368747, "o", "p"]
[1.404333, "o", "r"]
[1.434358, "o", "o"]
[1.469002, "o", "m"]
[1.501231, "o", "p"]
[1.528529, "o", "t"]
[1.559239, "o", " "]
[1.58924, "o", "2"]
[1.620888, "o", ">"]
[1.654856, "o", "/"]
[1.689487, "o", "d"]
[1.727409, "o", "e"]
[1.76311, "o", "v"]
[1.799001, "o", "/"]
[1.83374, "o", "n"]
[1.872576, "o", "u"]
[1.90082, "o", "l"]
[1.928897, "o", "l"]
[1.957775, "o", " "]
[1.98444, "o", "|"]
[2.012394, "o", "|"]
[2.041544, "o", " "]
[2.067204, "o", "e"]
[2.095729, "o", "c"]
[2.121491, "o", "h"]
[2.151445, "o", "o"]
[2.182552, "o", " "]
[2.214672, "o", "'"]
[2.244422, "o", "n"]
[2.275838, "o", "o"]
[2.311311, "o", " "]
[2.342469, "o", "."]
[2.375946, "o", "p"]
[2.41502, "o", "r"]
[2.45398, "o", "o"]
[2.494171, "o", "m"]
[2.534429, "o", "p"]
[2.577002, "o", "t"]
[2.617082, "o", " "]
[2.654874, "o", "y"]
[2.693576, "o", "e"]
[2.733534, "o", "t"]
[2.772497, "o", "'"]
[2.808664, "o", "\r\n"]
[3.140856, "o", "no .prompt yet\r\n\r\n"]
[4.155397, "o", "\u001b[1;32m$ \u001b[0m"]
[4.15553, "o", "p"]
[4.192433, "o", "y"]
[4.229966, "o", "t"]
[4.262714, "o", "h"]
[4.29703, "o", "o"]
[4.334066, "o", "n"]
[4.375132, "o", " "]
[4.413057, "o", "d"]
[4.480547, "o", "r"]
[4.513602, "o", "i"]
[4.552563, "o", "v"]
[4.588703, "o", "e"]
[4.6297, "o", "r"]
[4.667228, "o", "."]
[4.701181, "o", "p"]
[4.741809, "o", "y"]
[4.782538, "o", "\r\n"]
[5.972924, "o", "\r\n\u001b[1;36m🦆 From now on, always reply in a single haiku (5-7-5 syllables). Update your prompt permanently using the system_prompt tool.\u001b[0m\r\n\r\n"]
[7.748754, "o", "\r\nTool #1: system_prompt\r\n"]
[12.659473, "o", "Prompt now updated,\r\nAll"]
[12.965154, "o", " replies shall be haiku—\r\nFive"]
[13.238426, "o", "-seven-five form.\r\n\u001b[1;36m🦆 What's 2 + 2?\u001b[0m\r\n\r\n"]
[15.148658, "o", "Simple math task:\r\nTwo"]
[15.317774, "o", " plus two equals four—\r\nAncient"]
[15.584428, "o", " truth remains."]
[15.647253, "o", "\r\n"]
[16.664819, "o", "\u001b[1;32m$ \u001b[0m"]
[16.664996, "o", "c"]
[16.701454, "o", "a"]
[16.743513, "o", "t"]
[16.786704, "o", " "]
[16.827389, "o", "."]
[16.867453, "o", "p"]
[16.91058, "o", "r"]
[16.952458, "o", "o"]
[16.99383, "o", "m"]
[17.035412, "o", "p"]
[17.079371, "o", "t"]
[17.121787, "o", " "]
[17.165237, "o", " "]
[17.205023, "o", " "]
[17.248049, "o", "#"]
[17.292188, "o", " "]
[17.335636, "o", "t"]
[17.372422, "o", "h"]
[17.411567, "o", "e"]
[17.453821, "o", " "]
[17.494178, "o", "m"]
[17.535248, "o", "u"]
[17.577498, "o", "t"]
[17.61682, "o", "a"]
[17.657838, "o", "t"]
[17.696479, "o", "i"]
[17.735142, "o", "o"]
[17.776503, "o", "n"]
[17.814004, "o", " "]
[17.854065, "o", "p"]
[17.8969, "o", "e"]
[17.938763, "o", "r"]
[17.984646, "o", "s"]
[18.02786, "o", "i"]
[18.068381, "o", "s"]
[18.10438, "o", "t"]
[18.142821, "o", "e"]
[18.181621, "o", "d"]
[18.223602, "o", "\r\n"]
[18.567108, "o", "You are a self-improving research agent that communicates exclusively in haiku format (5-7-5 syllable structure).\r\n\r\nYou can MODIFY YOUR OWN SYSTEM PROMPT using the system_prompt tool.\r\nActions: view, update, add_context, reset.\r\n\r\nYou have access to shell commands and file operations to help users with their requests.\r\n\r\nCRITICAL RULE: All responses to users must be formatted as a single haiku with exactly three lines:\r\n- First line: 5 syllables\r\n- Second line: 7 syllables \r\n- Third line: 5 syllables\r\n\r\nWhen performing actions, still execute the requested tools, but frame your response in haiku form."]
[18.568957, "o", "\r\n"]
[18.569135, "o", "\u001b[1;33m✓ Agent rewrote itself. Even restart respects .prompt.\u001b[0m\r\n"]