fix: use KUGETSU_TEMP_DIR instead of /tmp #131

Closed
shoko wants to merge 3 commits from fix/issue-73-temp-dir-config into main

3 Commits

Author SHA1 Message Date
shokollm
71e6bd5783 fix: add KUGETSU_TEMP_DIR to config template
Add KUGETSU_TEMP_DIR config option to cmd_init template with default
value of ~/.local/share/opencode/tool-output (opencode-allowed directory).

This allows users to configure a temp directory that opencode can access
instead of /tmp which may be blocked in headless mode.

Fixes #73
2026-04-03 15:00:41 +00:00
shokollm
324dcfd62b fix: update /tmp references to use KUGETSU_TEMP_DIR
Replace /tmp references with ${KUGETSU_TEMP_DIR:-~/.local/share/opencode/tool-output}
since opencode blocks /tmp access in headless mode.

Updated files:
- docs/SUBAGENT_WORKFLOW.md
- docs/hermes-communication-patterns.md
- docs/hermes-setup.md
- docs/kugetsu-setup.md
- docs/opencode-usage.md
- skills/kugetsu/pm/SKILL.md

Fixes #73
2026-04-03 15:00:29 +00:00
shokollm
dc2254cfba fix(kugetsu): add post-comment helper for PM agent
Add 'kugetsu post-comment' command to post issue comments without
writing to /tmp. This solves #45 where PM agent cannot write to /tmp
for comment posting.

Usage:
  kugetsu post-comment <repo-url> <issue-number> <body>

The command reads GITEA_TOKEN from:
1. GITEA_TOKEN environment variable
2. ~/.kugetsu/env/pm-agent.env

Example:
  kugetsu post-comment https://git.fbrns.co/shoko/kugetsu 45 "Comment text"

Fixes #45
2026-04-03 14:26:32 +00:00