Fix docs: check_inbox.sh takes no args

This commit is contained in:
Levi Neely 2026-03-18 23:41:28 +01:00
parent 4cf346934d
commit 2dc9961bea
3 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ agent_id="$1"
count=0
while true; do
msg=$(./check_inbox.sh "$agent_id" 2>&1)
msg=$(./check_inbox.sh 2>&1)
if [[ "$msg" == "No messages" ]]; then
break
fi
@ -56,7 +56,7 @@ attempts=0
max_attempts=10
while [ $attempts -lt $max_attempts ]; do
msg=$(./check_inbox.sh "$agent_id" 2>&1)
msg=$(./check_inbox.sh 2>&1)
if echo "$msg" | grep -q "$keyword"; then
echo "Found message with keyword: $keyword"
@ -155,7 +155,7 @@ Route messages based on content:
agent_id="$1"
while true; do
msg=$(./check_inbox.sh "$agent_id" 2>&1)
msg=$(./check_inbox.sh 2>&1)
if [[ "$msg" == "No messages" ]]; then
sleep 5
@ -230,7 +230,7 @@ processed=0
errors=0
while true; do
msg=$(./check_inbox.sh "$agent_id" 2>&1)
msg=$(./check_inbox.sh 2>&1)
if [[ "$msg" == "No messages" ]]; then
break

View File

@ -15,7 +15,7 @@ Discover available helper scripts on-demand via 9P:
Read and invoke a specific script:
```bash
bash <(9p read anvillm/tools/check_inbox.sh) <agent-id>
bash <(9p read anvillm/tools/check_inbox.sh)
```
## Examples

View File

@ -21,7 +21,7 @@ Read a script to see its usage:
Invoke a script:
```bash
bash <(9p read anvillm/tools/check_inbox.sh) <agent-id>
bash <(9p read anvillm/tools/check_inbox.sh)
```
## Common Patterns
@ -30,7 +30,7 @@ bash <(9p read anvillm/tools/check_inbox.sh) <agent-id>
```bash
# Check inbox
bash <(9p read anvillm/tools/check_inbox.sh) "$AGENT_ID"
bash <(9p read anvillm/tools/check_inbox.sh)
# Send message
bash <(9p read anvillm/tools/send_message.sh) \