From 5dfb2b112808d90c25a1d7a66601195fa70fb4aa Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 3 Jan 2026 00:35:51 +0000 Subject: [PATCH] coding-agent: add temp space pattern, never start in ~/clawd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Learnings from tonight: - Codex reads AGENTS.md/SOUL.md and gets ideas about org hierarchy - Use mktemp -d for scratch/chat sessions - Never start in ~/clawd or agent home dirs - Keep agents in their 'little box' 📦🦞 --- skills/coding-agent/SKILL.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/skills/coding-agent/SKILL.md b/skills/coding-agent/SKILL.md index f3e0bf9d8..1cfa7e946 100644 --- a/skills/coding-agent/SKILL.md +++ b/skills/coding-agent/SKILL.md @@ -11,7 +11,12 @@ Use **bash background mode** for coding agents. Full programmatic control, no tm ## The Pattern: workdir + background ```bash +# Create temp space for chats/scratch work +SCRATCH=$(mktemp -d) + # Start agent in target directory ("little box" - only sees relevant files) +bash workdir:$SCRATCH background:true command:"" +# Or for project work: bash workdir:~/project/folder background:true command:"" # Returns sessionId for tracking @@ -97,3 +102,4 @@ bash workdir:~/project background:true command:"opencode run \"Your task\"" 4. **--full-auto for building** — auto-approves changes 5. **vanilla for reviewing** — no special flags needed 6. **Parallel is OK** — run many Codex processes at once for batch work +7. **NEVER start Codex in ~/clawd/** — it'll read your soul docs and get weird ideas about the org chart! Use the target project dir or /tmp for blank slate chats