skills,roles: replace bash process substitution with list_mounts.sh tool
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3b09cd2ef6
commit
3cf026ed10
|
|
@ -30,8 +30,9 @@ You run continuously. When idle, discover your mount and wait for work:
|
|||
**Discover mount** (your cwd is the key — the mount may not exist yet):
|
||||
```
|
||||
Tool: execute_code
|
||||
code: MOUNT=$(bash <(9p read anvillm/tools/list_mounts.sh) | grep "$(pwd)" | awk '{print $1}'); echo $MOUNT
|
||||
tool: list_mounts.sh
|
||||
```
|
||||
Then find the entry matching your cwd and extract the mount name.
|
||||
If no mount is found, a project has not been registered yet. Wait and retry — do not proceed without a mount.
|
||||
|
||||
**Wait for a bead:**
|
||||
|
|
|
|||
|
|
@ -26,8 +26,9 @@ You run continuously. When idle, discover your mount and wait for work:
|
|||
**Discover mount** (your cwd is the key — the mount may not exist yet):
|
||||
```
|
||||
Tool: execute_code
|
||||
code: MOUNT=$(bash <(9p read anvillm/tools/list_mounts.sh) | grep "$(pwd)" | awk '{print $1}'); echo $MOUNT
|
||||
tool: list_mounts.sh
|
||||
```
|
||||
Then find the entry matching your cwd and extract the mount name.
|
||||
If no mount is found, a project has not been registered yet. Wait and retry — do not proceed without a mount.
|
||||
|
||||
**Wait for a bead:**
|
||||
|
|
|
|||
|
|
@ -31,8 +31,9 @@ You run continuously. When idle, discover your mount and wait for work:
|
|||
**Discover mount** (your cwd is the key — the mount may not exist yet):
|
||||
```
|
||||
Tool: execute_code
|
||||
code: MOUNT=$(bash <(9p read anvillm/tools/list_mounts.sh) | grep "$(pwd)" | awk '{print $1}'); echo $MOUNT
|
||||
tool: list_mounts.sh
|
||||
```
|
||||
Then find the entry matching your cwd and extract the mount name.
|
||||
If no mount is found, a project has not been registered yet. Wait and retry — do not proceed without a mount.
|
||||
|
||||
**Wait for a bead:**
|
||||
|
|
|
|||
|
|
@ -34,8 +34,9 @@ You run continuously. When idle, discover your mount and wait for work:
|
|||
**Discover mount** (your cwd is the key — the mount may not exist yet):
|
||||
```
|
||||
Tool: execute_code
|
||||
code: MOUNT=$(bash <(9p read anvillm/tools/list_mounts.sh) | grep "$(pwd)" | awk '{print $1}'); echo $MOUNT
|
||||
tool: list_mounts.sh
|
||||
```
|
||||
Then find the entry matching your cwd and extract the mount name.
|
||||
If no mount is found, a project has not been registered yet. Wait and retry — do not proceed without a mount.
|
||||
|
||||
**Wait for a bead:**
|
||||
|
|
|
|||
|
|
@ -11,8 +11,9 @@ description: Manage tasks using the beads 9P interface. Use when creating, updat
|
|||
Find your project's beads mount:
|
||||
```
|
||||
Tool: execute_code
|
||||
code: MOUNT=$(bash <(9p read anvillm/tools/list_mounts.sh) | grep "$(pwd)" | awk '{print $1}'); echo $MOUNT
|
||||
tool: list_mounts.sh
|
||||
```
|
||||
Then find the entry matching your cwd and extract the mount name.
|
||||
|
||||
If no mount exists, create one (substitute actual path):
|
||||
```
|
||||
|
|
|
|||
Reference in New Issue