ClaudeMod
ModsDashboardsWrites / Shell

task-lens

See what your background work is actually doing. task-lens adds a band above the Claude Code prompt that shows every running subagent, background shell and workflow as one plain sentence about its purpose, written by Haiku in the language you prompt in. Each task gets a kind tag ([read] [code] [plan] [docs] [test] [run]) that follows its current stage, plus elapsed time, stall time and a one-line result when it ends. No side panel.

Install· Claude Code 2.1.307+
$claude plugin marketplace add delpotro96/task-lens
$claude plugin install task-lens@task-lens
Run claude plugin validate to auditGuide →
Access & PermissionsWrites / Shell

Writes files, executes local shell processes, or programmatically drives Claude.

Draws UIReads filesCalls AI models

Statically scanned from hooks & source. Learn how to audit

KyungHun LEE2 starsAdded 1 months ago

task-lens

See what every background task is doing, and why, without leaving the prompt.

task-lens is a Claude Code mod. When Claude runs subagents, background shells or workflows, it adds a band above the prompt with one line per running task: what kind of work it is doing, one plain sentence about its purpose, and how long it has been going. The band never grows past four lines. No side panel, no extra window.

task-lens updating as background tasks run

/plugin install task-lens --marketplace delpotro96/task-lens

License: MIT Claude Code mod

Why

Claude Code tells you that background work is running. It does not tell you what each task is doing, whether it is stuck, or what it found. task-lens fills that gap in the space you are already looking at.

The same session without and with task-lens

What you see

task-lens band above the Claude Code prompt

A purpose sentence for every running task. Haiku writes it from the task's instructions, the request you sent, and the task's recent actions. It says why the task is running, not which file it opened, and it is rewritten as the work moves on (every 5 tool calls, at most every 20 seconds). Each task keeps to one line; type /lens to see task titles, workflow agents and results in full.

A tag for the kind of work happening right now. The tag follows the current stage, so an agent that designs, then codes, then tests moves through [plan], [code] and [test]. The moment an agent starts editing files, the tag switches to [code] (or [docs] for Markdown and text files) without waiting for Haiku.

TagMeaning
[read]investigating, reading or searching
[code]changing code
[plan]designing
[docs]writing documents
[test]verifying or testing
[run]building, deploying or running something

Symbols for everything else, so the band reads the same in any language:

SymbolMeaning
▶ ✓ ✗ ■running, done, failed, stopped
$a background shell
3/7workflow progress (finished agents / all agents)
1:12elapsed time
⏳1:10time since the last sign of progress, shown after a minute
✓2 ✗1finished tasks, counted on one line
+3 …running tasks that did not fit in four lines
→the result of a finished task, in /lens

Results stay until your next message. A finished task is counted in the band and keeps a one-line result in /lens, so you can see what it found even if you were looking elsewhere. Sending your next prompt clears it.

In your language

Purpose and result sentences follow the language of your last prompt. A real capture from a Korean session with six tasks running at once:

task-lens in a Korean session

To always use one language, set the language option (for example English or Japanese). The default is auto.

Install

At the prompt of a terminal session:

/plugin install task-lens --marketplace delpotro96/task-lens

From a shell (use this in VS Code, where /plugin is not available inside the Claude Code panel):

claude plugin install task-lens --marketplace delpotro96/task-lens

Answer y to add the marketplace, then pick a scope. In the desktop app: click + next to the prompt box, then Plugins, Add marketplace with delpotro96/task-lens, then Add plugin.

Update

Third-party marketplaces do not update automatically by default:

claude plugin marketplace update task-lens
claude plugin update task-lens@task-lens

Then run /reload-plugins, or restart Claude Code. To update automatically, open /plugin, go to Marketplaces, select task-lens and choose Enable auto-update.

Uninstall

claude plugin uninstall task-lens@task-lens

VS Code

The band above the prompt is drawn in the terminal and the desktop app. In the VS Code extension, task-lens shows the same lines in a task-lens pane: it opens when a background task starts, /lens opens it on demand, and it closes when finished tasks are cleared.

Commands

CommandWhat it does
/lenslists every tracked task with its purpose or result (and opens the pane in VS Code)
/lens clearremoves finished tasks

How it works

task-lens is a function-hooks mod. It watches subagent spawns, tool calls, background shell results and task notifications, keeps a small list of tasks, and draws it in the AbovePrompt band (or a pane in VS Code).

Purpose sentences and results come from Haiku through Claude Code's own model access. Calls are limited to 12 per task and 120 per session, and each call sends only the task title, its instructions, your latest request and its recent actions, all masked first.

Privacy

  • Secrets in commands are masked before anything is drawn or sent to Haiku: tokens (GitHub, GitLab, Anthropic, AWS and others), passwords, Authorization and cookie headers, and credentials in URLs.
  • Nothing is sent anywhere except Haiku, through Claude Code itself.
  • One short, masked sample of your last prompt is kept in the plugin's local storage so sentences can follow your language.

Troubleshooting

ProblemFix
/plugin isn't available in this environmentYou are in the VS Code panel or another host without /plugin. Install from a shell with claude plugin install ... and restart Claude Code.
The band never appearsAnother mod may be drawing the same band without passing it on. Disable other band mods to check, or run /lens to see the list.
A task shows … for a whileHaiku has not answered yet. /lens shows the last Haiku error, if any.

Requirements

Built and tested with Claude Code 2.1.307 and 2.1.309.

License

MIT

Details

GitHub Stars
2
Sub-category
Dashboards
License
MIT
Added
1 months ago
Last synced
today

Weekly Mods Digest

Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.

More Mods

Claude Flightdeck
ModsSecurity

Claude Flightdeck

Live agent dashboard pane with context consumption, advisor timeline, permission verdicts, and subagent swimlanes.

Reads Files
by Sam Casella
GitHub
ModsInterface

Terminal Browser

Browse documentation, GitHub pull requests, and web pages in a split terminal pane directly beside your Claude Code conversation.

Network
by Zenbu Labs
GitHub
Agent Flow
ModsAutomation

Agent Flow

Interactive visual tree of the active session's subagents, background tasks, and teammates beside the transcript via /flow.

UI Only
by Charlie
GitHub

Command Palette

Search for a command to run...