anthropics / anthropics/claude-code
Scheduled tasks: expose a per-task directory-access grant (parity with local-agent-mode's userSelectedFolders)
- 主要言語
- Python
- スター
- 145k
- フォーク
- 23.1k
- PR マージ指標
- PR 指標を取得中
説明
Local-agent-mode scheduled tasks (`~/Library/Application Support/Claude/local-agent-mode-sessions//scheduled-tasks.json`) record a static `userSelectedFolders` array per task — an explicit, auditable list of which directories that task can reach.
Claude Code CLI's own scheduled-tasks feature (`mcp__scheduled-tasks__*`, registry at `~/Library/Application Support/Claude/claude-code-sessions//scheduled-tasks.json`) has no equivalent field — every task shows `userSelectedFolders: null`. Actual file access for these tasks is governed by `cwd` plus an `approvedPermissions` list, but that list only records approved **Bash** command strings; Read/Edit/Write access to paths outside `cwd` isn't recorded anywhere in the task JSON, even though it demonstrably works (granted dynamically per session).
This makes it impossible to audit "what directories can this scheduled task actually reach" from the registry alone for CLI-scheduled tasks, unlike local-agent-mode tasks. Requesting an explicit per-task directory-grant field (or at minimum, exposing accumulated Read/Edit/Write directory access the same way Bash commands are exposed via `approvedPermissions`) for parity and auditability.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with the mcp__scheduled-tasks__* entry points and compare the CLI registry at ~/Library/Application Support/Claude/claude-code-sessions//scheduled-tasks.json with the local-agent-mode registry. Trace how cwd, approvedPermissions, and dynamic Read/Edit/Write access are represented. Done means each CLI-scheduled task exposes an explicit, auditable directory grant in its task JSON.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cli, security
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100