Repository avatar
AI Tools
v1.4.4
active

task-eta-mcp

io.github.jatinverma007/task-eta-mcp

Live ETA for AI agent tasks: time elapsed, steps done, and a countdown that updates each step.

Documentation

task-eta-mcp

npm CI License: MIT task-eta-mcp MCP server

task-eta dashboard: a running task with two subagent steps running at once, and finished tasks below

An MCP server that shows how long your AI's current task will take:

  • Elapsed time since the task started
  • Steps done out of total, for example 3 of 7
  • Estimated time left, which counts down live and is re-estimated each time a step finishes

Works with any MCP client: Claude Code, Codex (CLI, IDE extension, ChatGPT desktop app), Claude Desktop, Cursor, VS Code, and ChatGPT or claude.ai through a remote server. In Claude Code it can also follow Claude's own task list through hooks, so the AI doesn't have to report anything. task-eta-mcp stats shows how accurate past estimates were.

Add biometric login — ⏱ 4m 12s elapsed · 3/7 steps · ~5m 36s left
Now: Handle fallback to passcode

Install in one line

Needs Node.js 22 or newer. On any computer:

claude mcp add --scope user task-eta -- npx -y task-eta-mcp@latest   # Claude Code
codex mcp add task-eta -- npx -y task-eta-mcp@latest                 # Codex, ChatGPT desktop app

Then ask your AI: "Use task-eta to track this: …" and open http://127.0.0.1:4545. Other apps are below.

For Claude Code, hooks are the alternative to the MCP server: npm install -g task-eta-mcp@latest && task-eta-mcp hooks-install.

How it works

The AI calls these tools while it works:

ToolWhen the AI calls it
start_taskBefore starting: a title, the planned steps (each optionally sized small / medium / large), and an optional rough guess in minutes
complete_stepAfter finishing each step (optionally with a note, or skipped: true). With start: [4, 5, 6] it also marks steps that begin now, such as subagents launched in parallel
add_stepsWhen the work turns out bigger than planned
get_progressWhen you ask "how long is left?"
finish_taskAt the end (outcome: "cancelled" if it stopped early)

The estimate: the AI marks each step small, medium or large, and a large step counts as 4 small ones (medium counts as 2). Time left = time per unit of work so far × units of work still to go, counted from when the last step finished. So the number ticks down every second, then gets corrected each time a step completes, and a slow "build and run tests" step isn't treated like a quick file read.

{ "title": "Sanity check", "steps": [
  { "title": "Compare branch commits", "size": "small" },
  { "title": "Review SceneDelegate launch code" },
  { "title": "Build and run unit tests", "size": "large" }
]}

Steps given as plain text count as medium, so plans without sizes work as before.

Parallel work: when the AI launches several steps at once (subagents, one per module, say), it passes their numbers in start. The card then shows "4 steps running at once" with a timer on each, the estimate assumes they finish together (when the slowest one should), and it waits longer before showing No updates, since subagents often report nothing for a while. Steps the AI ticks off in a quick burst after a long wait are learned as one block of work, so past runs don't teach it that one module takes 18 minutes and the rest none.

It learns from past runs, per project. Every finished step's time is saved on your computer under the folder the AI app was started in. Next time, the estimate starts from how fast work usually goes in that project instead of "Estimating…", and a step done at least twice before ("Build and run tests") uses its usual time. As real steps finish, the current run takes over. Apps that don't start in a project folder (like Claude Desktop) share one general history. If the AI gave a rough guess up front, it's only used when there's no history yet. If a step runs long, the view shows how far over the estimate it is. The progress bar fills by work done, not step count.

It's an estimate, not a promise: it's rough after the first step, gets better as more steps finish, and depends on the AI sizing steps honestly.

When things go wrong

SituationWhat task-eta does
Several chats share one server (Claude Desktop runs one for all chats)Calls without task_id are refused when more than one task is running, with a list of running tasks and their ids. It never guesses.
Model switched mid-task, or the AI lost the idget_progress with no id lists running tasks so the AI can continue the right one. Starting the same plan again within 10 minutes continues the existing task instead of creating a duplicate.
You press Stop, or the AI stops reportingAfter much longer than the current step should take (at least 15 min; 30 min while the first step runs or while several steps run at once) the card shows No updates instead of a countdown. After 2 hours idle it shows Interrupted. You can also close it yourself with Mark done or Stop on the dashboard.
The AI changed its plan and started a new task instead of updating the old oneOnce the old task has had no progress for 10 minutes and the same app has started a newer task, the old one is shown as Interrupted (replaced by a newer task). Worth a look: the new plan may have dropped some of the original steps.
The app closes or the server process exitsThe task shows Interrupted (the app closed) straight away.
All steps done but finish_task never calledShown as Done after 2 minutes.
Step times vary a lot (approval waits, laptop asleep)Shows a likely range, e.g. "~6m left · likely 3m–12m", instead of one confident number.
Remote mode (ChatGPT, claude.ai)task_id is always required, so people sharing a server never touch each other's tasks. Tasks are kept in memory, so restarting the server clears them.

None of these states overwrite the saved task: if the AI comes back and continues a task by its id (after a restart or a long pause), it picks up where it left off.

Where you see it

ClientWhat you see
Every MCP clientThe status line after each tool call, e.g. ⏱ 4m 12s elapsed · 3/7 steps · ~5m 36s left. With Claude Code hooks there are no tool calls, so use the dashboard.
Local installs (Claude Code, Codex, Claude Desktop, Cursor, VS Code)A live dashboard at http://127.0.0.1:4545 you can keep open beside your work. It shows tasks from every session on your computer; the browser tab title and icon show the time left.
Apps that support in-chat UI (MCP Apps)A live progress card inside the chat. Support varies by app and version, so if you don't see one, use the dashboard.

The dashboard is served by task-eta itself, so it's only there while an AI session with task-eta is running. Some apps start task-eta only when the AI first uses it. To keep the dashboard up all the time, run it on its own:

npx -y task-eta-mcp@latest dashboard

Running tasks show as live cards with time per step; finished and stopped tasks collapse into rows you can expand. Hover a running card for Mark done and Stop; Clear finished removes old ones.

Install

Requires Node.js 22 or newer. task-eta is listed in the official MCP Registry as io.github.jatinverma007/task-eta-mcp, so apps and directories that read the registry can find it.

Every MCP client starts it with npx -y task-eta-mcp@latest. Keeping @latest makes sure you get new versions instead of an older copy npx saved earlier. To run your own build instead, use node /full/path/to/task-eta-mcp/dist/index.js (see CONTRIBUTING.md).

Codex (CLI, IDE extension, ChatGPT desktop app)

codex mcp add task-eta -- npx -y task-eta-mcp@latest

or add to ~/.codex/config.toml:

[mcp_servers.task-eta]
command = "npx"
args = ["-y", "task-eta-mcp@latest"]

Claude Code

claude mcp add --scope user task-eta -- npx -y task-eta-mcp@latest

Claude Code without tool calls (hooks)

Instead of asking the AI to report its steps, task-eta can follow Claude Code's own task list through hooks. Every task Claude creates becomes a step, and every task it completes ticks one off. There are no task-eta tools for the AI to call or forget.

npm install -g task-eta-mcp@latest   # global, so each hook starts in about 0.15 s
task-eta-mcp hooks-install           # adds the hooks to ~/.claude/settings.json (--project: ./.claude/settings.json)
task-eta-mcp dashboard               # keep this open in another terminal

Then restart Claude Code. hooks-install keeps your other settings and hooks, saves the old file as settings.json.bak, and is safe to run again (it also upgrades older task-eta entries). task-eta-mcp hooks-uninstall removes them. To edit the file yourself instead, task-eta-mcp hooks-config prints the settings.

What hooks-install sets up:

  • Claude Code's task list is turned on (CLAUDE_CODE_ENABLE_TODO_TOOLS=1). On models newer than Opus 4.7, Sonnet 4.6 and Haiku 4.5, Claude Code leaves the task tools out by default, and Claude keeps its plan in its head. Without the task list there's nothing for the hooks to follow. If you've set this variable to something else yourself, it's left alone.
  • A one-line reminder when a session starts, asking Claude to create a task per step for work with 3 or more steps and to complete them as it goes.
  • Hooks on the TaskCreated, TaskCompleted, Stop and SessionEnd events, plus one PostToolUse hook that watches two tools: TaskUpdate (a task marked in progress starts its step; a deleted one is shown as skipped) and TodoWrite (sessions with CLAUDE_CODE_ENABLE_TASKS=0).

What you'll see:

  • Claude's tasks in a session become one task-eta task called "Claude Code in your folder".
  • When Claude finishes its turn with every step done, the task is finished. With steps still open it stays running, since Claude may be waiting for you.
  • Ending the session (/exit, /clear) closes the task, as stopped if steps were left.
  • Short jobs may have no card at all: Claude still decides when a task list is worth making. Asking for one helps: "Use your task list for this."

Cost: no task-eta tools are added, but the task tools themselves take some context, plus about 50 tokens for the reminder per session. Use hooks or the MCP server in Claude Code, not both: with both, a task the AI also reports shows up twice. The hooks only know the steps, not their sizes, so every step counts as medium.

Claude Desktop

Open claude_desktop_config.json (in the app: Settings → Developer → Edit Config; or on macOS, ~/Library/Application Support/Claude/claude_desktop_config.json), add the block below, then quit Claude completely (Cmd+Q) and reopen it:

{
  "mcpServers": {
    "task-eta": { "command": "npx", "args": ["-y", "task-eta-mcp@latest"] }
  }
}

If the app reports spawn npx ENOENT, it can't find Node.js: run which npx in Terminal and use that full path as "command" (e.g. "/opt/homebrew/bin/npx").

Cursor

~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "task-eta": { "command": "npx", "args": ["-y", "task-eta-mcp@latest"] }
  }
}

VS Code

.vscode/mcp.json:

{
  "servers": {
    "task-eta": { "type": "stdio", "command": "npx", "args": ["-y", "task-eta-mcp@latest"] }
  }
}

ChatGPT and claude.ai (remote connectors)

Web apps can't launch a program on your computer, so they need the server running at a public HTTPS URL.

  1. Run it in remote mode somewhere reachable:

    npx -y task-eta-mcp@latest --http --host 0.0.0.0 --port 3000 --public-url https://your-domain.example
    
    • To try it quickly from your own machine, start a tunnel first and note its https address:

      cloudflared tunnel --url http://localhost:3000      # or: ngrok http 3000
      

      Then start task-eta with that address, so it accepts requests for it:

      npx -y task-eta-mcp@latest --http --public-url https://your-tunnel.trycloudflare.com
      

      The tunnel address changes every time the tunnel restarts; update it in your app when it does. (Alternatively, keep the tunnel's Host header as localhost: cloudflared tunnel --url http://localhost:3000 --http-host-header localhost.)

    • To host it for real: deploy with the included Dockerfile to Render, Fly.io, Railway, Google Cloud Run or similar. Set PUBLIC_URL to the service's https address.

  2. Connect it:

    • ChatGPT (web): turn on Developer mode in Settings, then go to chatgpt.com/plugins → + → Add custom MCP server, with URL https://your-domain.example/mcp and authentication None. Menu names change often; see OpenAI's Developer mode guide if yours differ. Availability depends on your plan, and on Business/Enterprise a workspace admin may need to allow it first.
    • claude.ai: Settings → Connectors → Add custom connector, URL https://your-domain.example/mcp.
    • Codex (remote): codex mcp add task-eta --url https://your-domain.example/mcp, or in the ChatGPT desktop app: Settings → MCP servers → Add server → Streamable HTTP.

In remote mode, task ids are random and listing all tasks is always turned off, so people only see tasks they hold a link to. Tasks are kept in memory for 24 hours (up to 1,000). There's no sign-in, so anyone with a task's link can see it: don't put secrets in task titles or notes.

Make sure the AI actually uses it

The AI decides when to use tools, and some apps don't pass task-eta's built-in instructions to the model. The most reliable way is to say it: "Use task-eta to track this: …". To make it automatic, add this to your instructions (~/.codex/AGENTS.md for Codex, ~/.claude/CLAUDE.md for Claude Code, your profile preferences in the Claude apps, custom instructions in ChatGPT):

For any task with 3 or more steps, use the task-eta tools: call start_task with your planned steps (sized small, medium or large) first, complete_step with the task_id after each step, and finish_task at the end. If the plan changes, update the same task instead of starting a new one.

How accurate is it?

Every estimate made while a task runs is saved, and scored when the task finishes. To see how far off past estimates were:

npx -y task-eta-mcp@latest stats
task-eta accuracy · 24 finished tasks

                  tasks   typical error   within ±25%   estimates ran
At the start         18            ±48%       6 of 18       too short
Under 1/3 done       21            ±31%      10 of 21       too short
1/3 to 2/3 done      22            ±19%      15 of 22     about right
Over 2/3 done        20            ±11%      17 of 20     about right

(Example output.) The error is how far off the finish time was, as a share of the time that was still left. Only tasks finished with finish_task (or by the hooks) are scored.

Options

Flag / envDefaultMeaning
dashboard (command)—Run only the live dashboard until Ctrl+C
stats (command)—Show how accurate past estimates were
hooks-install, hooks-uninstall (commands)—Add or remove the Claude Code hooks in ~/.claude/settings.json; with --project, in ./.claude/settings.json
hooks-config (command)—Print the hook settings instead of installing them
hook (command)—Run by Claude Code for each hook event; reads the event from stdin
TASK_ETA_DEBUG=1offhook: print what each event changed, to stderr
--httpoffRemote mode: Streamable HTTP at /mcp
--port, PORT / TASK_ETA_PORT3000 remote, 4545 dashboardPort
--host127.0.0.1Listen address (0.0.0.0 when deploying)
--public-url, PUBLIC_URL—Remote mode: your public address. Used in task links, and requests for that hostname are accepted
--no-dashboard, TASK_ETA_DASHBOARD=0dashboard onLocal mode: don't serve the dashboard
TASK_ETA_DIR~/.task-eta/tasksLocal mode: where tasks are saved so one dashboard can show every session
-h, --help—Show all options

Similar tools

  • Agent ETA: a pre-run forecast with time ranges that learns from your past runs (Codex, Claude Code). Use it to decide whether to delegate; use task-eta to watch the task once it runs.
  • task-progress-bar: a zero-token progress bar in Claude Code's status line, built from its native task list.
  • Session dashboards such as cctop or Agent Cockpit show what agents are doing (tokens, tool calls); task-eta shows when they'll finish.

Troubleshooting

ProblemFix
The dashboard says "refused to connect"No AI session with task-eta is running right now, or it hasn't used task-eta yet. Run npx -y task-eta-mcp@latest dashboard to keep it up.
You're still getting an old versionnpx keeps a cached copy. Run rm -rf ~/.npm/_npx, then restart your app.
Claude Desktop: spawn npx ENOENTUse the full path from which npx as the command (see Claude Desktop).
The AI never starts a timerAsk for it: "Use task-eta to track this", or add the instruction above.
"N tasks are running, so pass task_id"Expected when several chats share one server (Claude Desktop): the AI should retry with the task_id it was given.
Hooks: nothing shows upCheck that Claude actually made a task list: tracked work shows TaskCreate calls in the terminal; a plan written as plain text isn't tracked. Then type /hooks in Claude Code to see the task-eta entries, and make sure task-eta-mcp runs from your terminal (npm install -g task-eta-mcp@latest). Run task-eta-mcp hooks-install again, then restart Claude Code. For details, start Claude Code with TASK_ETA_DEBUG=1.
The dashboard shows a yellow note about an older task-etaAnother session started an older task-eta, and it still answers on port 4545 with the code it started with. From 1.4.2 on, a newer version takes the port over by itself; an older one has to be stopped: lsof -nP -iTCP:4545 -sTCP:LISTEN, then kill <PID>.
A task is stuck on No updatesThe AI stopped reporting. Use Mark done or Stop on the dashboard, or ask the AI to call finish_task.
"403 Forbidden" through a tunnelStart task-eta with --public-url set to the tunnel's https address.

Privacy and cost

  • Local mode saves task titles, step names and notes as JSON files in ~/.task-eta/tasks on your computer, and serves the dashboard only to your own machine. Nothing is sent anywhere else. Tasks older than 24 hours are deleted. Step titles and times (not notes) are also kept in ~/.task-eta/tasks/.history.json, the last 300 per project, to learn how long work takes. Delete that file to reset the learning. Scores of past estimates (times and errors, no titles) are kept in ~/.task-eta/tasks/.accuracy.json, the last 500 tasks. With hooks, the Claude Code session id is stored only as a hash.
  • Remote mode keeps tasks in the server's memory only; see the note above about links.
  • Cost: with hooks, no task-eta tools are added and the AI makes no task-eta calls (Claude Code's own task tools and a one-line reminder take some context). With the MCP server, about 740 tokens of tool definitions per request while task-eta is installed, and about 25–40 tokens per tool call. A typical 8-step task uses roughly 260 tokens of replies. The full task data for the in-chat card is sent in _meta, which apps give to their UI, not to the model.

Uninstall

claude mcp remove --scope user task-eta   # Claude Code (MCP server)
task-eta-mcp hooks-uninstall              # Claude Code hooks, if you installed them
npm uninstall -g task-eta-mcp             # the global install used by the hooks
codex mcp remove task-eta                 # Codex
rm -rf ~/.task-eta                        # saved tasks, history and accuracy scores

For Claude Desktop, Cursor or VS Code, delete the task-eta entry from the config file.

Project layout

src/format.ts     ETA math types and text formatting (shared with the browser views)
src/store.ts      Tasks, steps and the estimate
src/server.ts     MCP tools, instructions and the in-chat widget resource
src/web.ts        Live dashboard routes
src/hooks.ts      Claude Code hooks adapter, hooks-install / hooks-uninstall
src/index.ts      Command line: local (stdio) and remote (HTTP) modes
ui/               Browser views: in-chat widget (MCP Apps) and dashboard
scripts/          Bundles the browser views into single HTML files (npm run build)
test/             End-to-end tests with the official MCP client

Contributing

See CONTRIBUTING.md.

License

MIT

NPM
task-eta-mcp
Install Command
npm install task-eta-mcp