diff --git a/skills/kugetsu/SKILL.md b/skills/kugetsu/SKILL.md index 4308870..c3a7684 100644 --- a/skills/kugetsu/SKILL.md +++ b/skills/kugetsu/SKILL.md @@ -47,6 +47,7 @@ A default config file is created during `kugetsu init` with commented examples: | Variable | Default | Description | |----------|---------|-------------| | `MAX_CONCURRENT_AGENTS` | 3 | Maximum number of concurrent dev agents | +| `KUGETSU_TEMP_DIR` | `~/.local/share/opencode/tool-output` | Temp directory for subagent tool output (useful in headless environments where /tmp is restricted) | ### Environment Variables for Agents diff --git a/skills/kugetsu/tests/test-kugetsu-v2.sh b/skills/kugetsu/tests/test-kugetsu-v2.sh index 6ee0b4f..9d474d7 100644 --- a/skills/kugetsu/tests/test-kugetsu-v2.sh +++ b/skills/kugetsu/tests/test-kugetsu-v2.sh @@ -634,6 +634,15 @@ else fi echo "" +# Test E7: KUGETSU_TEMP_DIR is exported in cmd_delegate +echo "--- Test: KUGETSU_TEMP_DIR export in cmd_delegate ---" +if grep -q "KUGETSU_TEMP_DIR" "$KUGETSU" && grep -q "export KUGETSU_TEMP_DIR" "$KUGETSU"; then + pass "KUGETSU_TEMP_DIR is exported to delegated agents" +else + fail "KUGETSU_TEMP_DIR not found in cmd_delegate export" +fi +echo "" + # Cleanup env files rm -rf ~/.kugetsu/env 2>/dev/null || true