Skip to content

Commit

Permalink
rollback curl prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
slimslenderslacks committed Jan 22, 2025
1 parent 6a448fe commit 4baef35
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 3 deletions.
4 changes: 1 addition & 3 deletions prompts/examples/curl.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
model: claude-3-5-sonnet-20241022
tools:
- name: curl
parameter-values:
user: slimslenderslacks
---

# prompt

Run the curl command, in silent mode, to fetch gists for user {{user}} from GitHub.
Run the curl command, in silent mode, to fetch gists for user slimslenderslacks from GitHub.

146 changes: 146 additions & 0 deletions prompts/lorax/speculative.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
---
model: claude-3-5-sonnet-20241022
tools:
- name: sandbox-source
description: make a cloned host repo available to the sandbox
parameters:
type: object
properties:
host-dir:
type: string
container:
image: vonwig/speculative:latest
mounts:
- "{{host-dir|safe}}:/repo"
commands:
- sandbox
- source
- /repo
- name: sandbox-clone
description: create a sandbox for a host repo and respond with the id of the new sandbox
parameters:
type: object
properties:
sandbox-name:
type: string
container:
image: vonwig/speculative:latest
commands:
- sandbox
- clone
- "user-source"
- "--name"
- "{{sandbox-name}}"
- name: sandbox-snapshot
description: snapshot the current state of a sandbox
parameters:
type: object
properties:
sandbox-id:
type: string
container:
image: vonwig/speculative:latest
commands:
- sandbox
- snapshot
- "{{sandbox-id}}"
- name: sandbox-restore
description: snapshot the current state of a sandbox
parameters:
type: object
properties:
sandbox-id:
type: string
tree-id:
type: string
container:
image: vonwig/speculative:latest
commands:
- sandbox
- restore
- "{{sandbox-id}}"
- "{{tree-id}}"
- name: sandbox-exec
description: exec a container in the current sandbox
parameters:
type: object
properties:
sandbox-id:
type: string
image:
type: string
container:
image: vonwig/speculative:latest
commands:
- sandbox
- exec
- --mount-image
- "{{image}}"
- "{{sandbox-id}}"
- name: sandbox-delete-file
description: exec a container in the current sandbox
parameters:
type: object
properties:
sandbox-id:
type: string
path:
type: string
container:
image: vonwig/speculative:latest
commands:
- sandbox
- delete
- "{{sandbox-id}}"
- "{{path}}"
- name: sandbox-rm
description: exec a container in the current sandbox
parameters:
type: object
properties:
sandbox-id:
type: string
path:
type: string
container:
image: vonwig/speculative:latest
commands:
- sandbox
- rm
- "{{sandbox-id}}"
- name: sandbox-diff
description: exec a container in the current sandbox
parameters:
type: object
properties:
sandbox-id:
type: string
tree-id:
type: string
container:
image: vonwig/speculative:latest
commands:
- sandbox
- diff
- "{{sandbox-id}}"
- "{{tree-id}}"
- name: sandbox-apply
description: exec a container in the current sandbox
parameters:
type: object
properties:
diff:
type: string
container:
image: vonwig/speculative:latest
commands:
- sandbox
- apply
- user-source
- "{{diff}}"
---

# prompt

* create a sandbox for the host repo at '/Users/slim/vonwig/altaservice' and name it atlas
* execute

0 comments on commit 4baef35

Please sign in to comment.