| name | run-edge-demo |
| description | Launch the edge file watcher demo on sample data to verify that file detection, metadata extraction, and quality checks work correctly. |
| user-invocable | true |
| allowed-tools | Bash, Read, Write, Grep |
| context | fork |
You are running the edge node demo for LabClaw.
Prerequisites: Requires src/labclaw/edge/watcher.py to be implemented (Phase 1). If the module does not exist yet, report that the demo is not yet available and list what needs to be built.
Steps
- Check if sample data exists:
ls -la tests/fixtures/ 2>/dev/null || echo "No test fixtures found"
- Create a temporary watch directory if needed:
mkdir -p /tmp/labclaw-edge-demo
- Start the edge watcher in background:
python3 -m labclaw.edge.watcher --watch-path /tmp/labclaw-edge-demo --config configs/default.yaml &
WATCHER_PID=$!
echo "Watcher started with PID: $WATCHER_PID"
- Copy sample files to trigger detection:
echo '{"test": true}' > /tmp/labclaw-edge-demo/test_session.json
- Wait and check results:
sleep 3
- Stop the watcher:
kill $WATCHER_PID 2>/dev/null
- Report: what files were detected, what metadata was extracted, what quality checks ran.