From 17129070572ccd3a3ceb6d0eaef080ab58837afe Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 4 Feb 2026 15:15:08 +0900 Subject: [PATCH] docs(tasks): update AGENTS.md for global storage architecture --- src/features/claude-tasks/AGENTS.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/features/claude-tasks/AGENTS.md b/src/features/claude-tasks/AGENTS.md index 356cdd65..4b152a2d 100644 --- a/src/features/claude-tasks/AGENTS.md +++ b/src/features/claude-tasks/AGENTS.md @@ -54,7 +54,26 @@ The task system includes a sync layer (`todo-sync.ts`) that automatically mirror ### getTaskDir(config) -Returns: `.sisyphus/tasks` (or custom path from config) +Returns the task storage directory path. + +**Default behavior (no config override):** +Returns `~/.config/opencode/tasks//` where: +- Task list ID is resolved via `resolveTaskListId()` + +**With `storage_path` config:** +- Absolute paths (starting with `/`) are returned as-is +- Relative paths are joined with `process.cwd()` + +### resolveTaskListId(config) + +Resolves the task list ID for directory scoping. + +**Priority order:** +1. `ULTRAWORK_TASK_LIST_ID` environment variable +2. `config.sisyphus?.tasks?.task_list_id` config option +3. Sanitized `basename(process.cwd())` as fallback + +**Sanitization:** Replaces non-alphanumeric characters (except `-` and `_`) with `-` ### readJsonSafe(filePath, schema)