Skip to content

Commit 4baef35

Browse files
rollback curl prompt
1 parent 6a448fe commit 4baef35

File tree

2 files changed

+147
-3
lines changed

2 files changed

+147
-3
lines changed

prompts/examples/curl.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
model: claude-3-5-sonnet-20241022
33
tools:
44
- name: curl
5-
parameter-values:
6-
user: slimslenderslacks
75
---
86

97
# prompt
108

11-
Run the curl command, in silent mode, to fetch gists for user {{user}} from GitHub.
9+
Run the curl command, in silent mode, to fetch gists for user slimslenderslacks from GitHub.
1210

prompts/lorax/speculative.md

+146
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
---
2+
model: claude-3-5-sonnet-20241022
3+
tools:
4+
- name: sandbox-source
5+
description: make a cloned host repo available to the sandbox
6+
parameters:
7+
type: object
8+
properties:
9+
host-dir:
10+
type: string
11+
container:
12+
image: vonwig/speculative:latest
13+
mounts:
14+
- "{{host-dir|safe}}:/repo"
15+
commands:
16+
- sandbox
17+
- source
18+
- /repo
19+
- name: sandbox-clone
20+
description: create a sandbox for a host repo and respond with the id of the new sandbox
21+
parameters:
22+
type: object
23+
properties:
24+
sandbox-name:
25+
type: string
26+
container:
27+
image: vonwig/speculative:latest
28+
commands:
29+
- sandbox
30+
- clone
31+
- "user-source"
32+
- "--name"
33+
- "{{sandbox-name}}"
34+
- name: sandbox-snapshot
35+
description: snapshot the current state of a sandbox
36+
parameters:
37+
type: object
38+
properties:
39+
sandbox-id:
40+
type: string
41+
container:
42+
image: vonwig/speculative:latest
43+
commands:
44+
- sandbox
45+
- snapshot
46+
- "{{sandbox-id}}"
47+
- name: sandbox-restore
48+
description: snapshot the current state of a sandbox
49+
parameters:
50+
type: object
51+
properties:
52+
sandbox-id:
53+
type: string
54+
tree-id:
55+
type: string
56+
container:
57+
image: vonwig/speculative:latest
58+
commands:
59+
- sandbox
60+
- restore
61+
- "{{sandbox-id}}"
62+
- "{{tree-id}}"
63+
- name: sandbox-exec
64+
description: exec a container in the current sandbox
65+
parameters:
66+
type: object
67+
properties:
68+
sandbox-id:
69+
type: string
70+
image:
71+
type: string
72+
container:
73+
image: vonwig/speculative:latest
74+
commands:
75+
- sandbox
76+
- exec
77+
- --mount-image
78+
- "{{image}}"
79+
- "{{sandbox-id}}"
80+
- name: sandbox-delete-file
81+
description: exec a container in the current sandbox
82+
parameters:
83+
type: object
84+
properties:
85+
sandbox-id:
86+
type: string
87+
path:
88+
type: string
89+
container:
90+
image: vonwig/speculative:latest
91+
commands:
92+
- sandbox
93+
- delete
94+
- "{{sandbox-id}}"
95+
- "{{path}}"
96+
- name: sandbox-rm
97+
description: exec a container in the current sandbox
98+
parameters:
99+
type: object
100+
properties:
101+
sandbox-id:
102+
type: string
103+
path:
104+
type: string
105+
container:
106+
image: vonwig/speculative:latest
107+
commands:
108+
- sandbox
109+
- rm
110+
- "{{sandbox-id}}"
111+
- name: sandbox-diff
112+
description: exec a container in the current sandbox
113+
parameters:
114+
type: object
115+
properties:
116+
sandbox-id:
117+
type: string
118+
tree-id:
119+
type: string
120+
container:
121+
image: vonwig/speculative:latest
122+
commands:
123+
- sandbox
124+
- diff
125+
- "{{sandbox-id}}"
126+
- "{{tree-id}}"
127+
- name: sandbox-apply
128+
description: exec a container in the current sandbox
129+
parameters:
130+
type: object
131+
properties:
132+
diff:
133+
type: string
134+
container:
135+
image: vonwig/speculative:latest
136+
commands:
137+
- sandbox
138+
- apply
139+
- user-source
140+
- "{{diff}}"
141+
---
142+
143+
# prompt
144+
145+
* create a sandbox for the host repo at '/Users/slim/vonwig/altaservice' and name it atlas
146+
* execute

0 commit comments

Comments
 (0)