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
Owner

Replace /tmp references with KUGETSU_TEMP_DIR since opencode blocks /tmp in headless mode. Fixes #73

Replace /tmp references with KUGETSU_TEMP_DIR since opencode blocks /tmp in headless mode. Fixes #73
shoko added 3 commits 2026-04-03 17:01:03 +02:00
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
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
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
shoko closed this pull request 2026-04-05 07:12:26 +02:00

Pull request closed

Sign in to join this conversation.