diff --git a/.claude/skills/claw/SKILL.md b/.claude/skills/claw/SKILL.md index 1493199..9c59b3a 100644 --- a/.claude/skills/claw/SKILL.md +++ b/.claude/skills/claw/SKILL.md @@ -21,7 +21,7 @@ author: kenbolton ## Prerequisites -- Python 3.10 or later +- Python 3.8 or later - NanoClaw installed at `~/src/nanoclaw` with a built and tagged container image (`nanoclaw-agent:latest`) - Either `container` (Apple Container, macOS 15+) or `docker` available in `PATH` @@ -56,6 +56,8 @@ Usage: cat prompt.txt | claw --pipe """ +from __future__ import annotations + import argparse import json import os @@ -413,6 +415,9 @@ claw --list-groups # Force a specific runtime claw --runtime docker "Hello" +# Use a custom image tag (e.g. after rebuilding with a new tag) +claw --image nanoclaw-agent:dev "Hello" + # Verbose mode (debug info, secrets redacted) claw -v "Hello" @@ -438,6 +443,20 @@ The default timeout is 300 seconds. For longer tasks, pass `--timeout 600` (or h Run `claw --list-groups` to see what's registered. Group lookup does a fuzzy partial match on name and folder — if your query matches multiple groups, you'll get an error listing the ambiguous matches. +### Container crashes mid-stream + +`claw` runs containers with `--rm`, so they are automatically removed whether they exit cleanly or crash. If the agent crashes before emitting the output sentinel, `claw` will fall back to printing raw stdout. Use `-v` to see what the container produced. Rebuild the image with `./container/build.sh` if crashes are consistent. + +### Use a custom image tag + +If you built the image with a different tag (e.g. during development), pass `--image`: + +```bash +claw --image nanoclaw-agent:dev "Hello" +``` + +Set `NANOCLAW_IMAGE=nanoclaw-agent:dev` in your shell profile to make it the default. + ### Override the NanoClaw directory If `claw` can't find your database or `.env`, set the `NANOCLAW_DIR` environment variable: