Summary
AutoResearchClaw writes all runtime artifacts (artifacts/, docs/kb/, experiment outputs) into the cloned repository directory. There is no runtime directory concept. This pollutes the repo, complicates git workflows, and prevents clean separation of product vs instance.
Current Behavior
autoresearchclaw/ # git clone
├── researchclaw/ # source code
├── artifacts/ # ← runtime data in repo
│ ├── rc-20260324-.../
│ └── rc-20260320-.../
├── docs/kb/ # ← runtime knowledge base in repo
└── config.yaml # ← user config in repo root
Proposed Behavior
autoresearchclaw/ # git clone (clean, stays pushable)
├── researchclaw/ # source code
└── config.example.yaml
~/.autoresearchclaw/ # runtime directory (XDG_DATA_HOME)
├── config.yaml # user config
├── runs/ # per-run artifacts
├── kb/ # knowledge base
└── cache/
Suggested Implementation
- Add
RESEARCHCLAW_HOME env var (default ~/.autoresearchclaw/)
- Change default
--output to $RESEARCHCLAW_HOME/runs/<run_id>/
researchclaw init creates the runtime directory structure
--output flag continues to work for overrides
This follows the pattern used by Claude Code (~/.claude/), Codex (~/.codex/), Gemini (~/.gemini/), and most modern CLI tools.
Summary
AutoResearchClaw writes all runtime artifacts (
artifacts/,docs/kb/, experiment outputs) into the cloned repository directory. There is no runtime directory concept. This pollutes the repo, complicates git workflows, and prevents clean separation of product vs instance.Current Behavior
Proposed Behavior
Suggested Implementation
RESEARCHCLAW_HOMEenv var (default~/.autoresearchclaw/)--outputto$RESEARCHCLAW_HOME/runs/<run_id>/researchclaw initcreates the runtime directory structure--outputflag continues to work for overridesThis follows the pattern used by Claude Code (
~/.claude/), Codex (~/.codex/), Gemini (~/.gemini/), and most modern CLI tools.