iTranslated by AI
An Overview of the Tasks Feature in Claude Code
1. Introduction
I investigated the Tasks feature added in version 2.1.16 of Claude Code, as it has been a hot topic.
In short, it is a feature that replaces the existing Todos feature with the Tasks feature. Key features include:
- Claude Code automatically creates task lists based on the workflow (it seems users cannot create them manually).
- Task lists can be shared across sessions/sub-agents.
- Tasks can be checked using the /task command (only tasks in progress?).
- As a constraint, the task list is currently limited to 10 items.
2. Trying out the Tasks feature
I tried the Tasks feature in Claude Code using the following prompt. This prompt asks Claude to create a simple Vue screen while managing tasks.
Please create a page for verifying the operation of the src\vue\Components\Button component.
You should be able to use it by adding a page to src\views and referencing it in src\router\index.ts.
Please implement it while managing tasks using the Tasks feature.
■ Prerequisites for sharing task lists between sessions
Add the following environment variable to your settings.json:
{
"env": {
・・・
"CLAUDE_CODE_TASK_LIST_ID": "Arbitrary folder name",
・・・
},
・・・
}
Alternatively, start Claude Code by specifying the environment variable:
CLAUDE_CODE_TASK_LIST_ID=Arbitrary folder name claude
■ Execution results
When executed, it created a task list as shown below and began the work. It also appears that Claude Code manages the status of tasks in progress automatically.

■ About the "/tasks" command
Launch a Claude Code session different from the session where the task is in progress. When you execute /tasks in another session, the tasks in progress are displayed as shown below. The key feature here is that you can check ongoing tasks across different sessions.

■ About the reality of the tasks displayed by "/tasks"
I investigated what lies behind the tasks displayed by the "/tasks" command.
While a task is in progress, if you check the directory below, you will find JSON files used to manage task status:
~/.claude/tasks/Folder name specified in environment variable
{
"id": "Task number",
"subject": "Task name",
"description": "Task summary",
"activeForm": "Summary of task progress",
"status": "Task status (in_progress/pending/completed)",
"blocks": [],
"blockedBy": []
}
The mechanism seems to be that a TaskNumber.json file is created for each task number to manage progress. It appears that the task list displayed by the "/tasks" command is generated by referencing the JSON files mentioned above.
■ Tasks are deleted after completion
The JSON file introduced earlier seems to be deleted once all tasks are completed (as of January 2026). Therefore, if you execute "/tasks" when these JSON files do not exist, the task list will not be displayed.
(It feels a bit inconvenient that you cannot manage completed tasks. It might be possible to back up the JSON files to a different folder using hooks or similar, though.)
Discussion