Clone repos into a task folder with full scaffolding - CLAUDE.md, AGENTS.md symlink, todos, daily log, work stream links
Set up a new coding task folder with fresh repo clones and full context.
Read:
repos.md — all available repositories with descriptions and tagsARCHITECTURE.md — system architecture for understanding repo relationshipsconfig.md — dev directory preference (parse per config-format.md)notes/workstreams/ — active work streamsThe user should provide a task description in their message. If not, ask:
Also determine:
Based on the task description, repos.md, and ARCHITECTURE.md:
Read the dev directory from config.md (default: ~/dev).
<dev-dir>/<task-name>/git clone <repo-url> <dev-dir>/<task-name>/<repo-name>
Create <dev-dir>/<task-name>/CLAUDE.md with content that gives Claude full context when working in this folder:
# Task: <task name>
## Workflow Repo
This task is tracked in the productivity workflow repo at:
`<absolute path to workflow repo>`
## Work Stream
Part of: <work stream name>
## Architecture Context
<Relevant excerpt from ARCHITECTURE.md — the repos involved and their relationships>
## Repos in this task
<List of cloned repos with their roles>
## References
- Work stream: `<workflow-repo>/notes/workstreams/<stream>.md`
- Todos: `<workflow-repo>/notes/todos/<stream>.md`
- Daily log: `<workflow-repo>/notes/daily/`
Then create a symlink so Codex sees the same task context:
ln -s CLAUDE.md <dev-dir>/<task-name>/AGENTS.md
If AGENTS.md already exists and is not a symlink to CLAUDE.md, ask the user before replacing it.
Follow vault-conventions.md, workstream-format.md, and daily-log-format.md.
Add to notes/todos/<work-stream>.md:
- [ ] <task description> (task folder: <task-name>) — added YYYY-MM-DD
Add to the Tasks section of notes/workstreams/<stream>.md:
- <task-name>: <brief description> — started YYYY-MM-DD
Append to notes/daily/YYYY-MM-DD.md:
- **HH:MM** — [start-coding] Started task "<task-name>" with repos: <repo1>, <repo2> → [[<work-stream>]]
Tell the user:
CLAUDE.md created with context and the AGENTS.md symlink pointing to itcd <task-folder> and launch Claude Code or CodexAGENTS.md as a symlink to CLAUDE.md so Claude Code and Codex share one source of truth