Skip to content

Claude Code plugin

With the plugin, Claude Code tracks the time you work with Claude on your Knorky account. When you start a piece of work, Claude finds the task or creates it and starts its timer. When you close the session, the timer stops. Above the prompt you always see what runs.

Only want Claude connected to your account, without automatic tracking? The MCP server is enough: Connect Claude.

  • Claude Code, in a terminal, an editor or the Claude desktop app.
  • A Knorky account on the Plus plan. The plugin talks to your account through the API.
  • A git repository is usual, but not needed: without one, the project is remembered for the folder.

At the prompt of Claude Code:

/plugin install knorky-mod --marketplace knorkyapp/knorky

Answer y to add the marketplace, then choose a scope (user: every session). From a shell:

Terminal window
claude plugin install knorky-mod --marketplace knorkyapp/knorky

In the Claude desktop app, click + next to the prompt box, then Plugins, Add marketplace with knorkyapp/knorky, then Add plugin.

Start a new session afterwards: a plugin loads when a session starts.

The same marketplace has a lighter version, knorky: the same sign-in, tracking rules, /track and /todo, as plain text with no code running on your computer. It has no timer above the prompt, and it cannot stop the timers when you close a session: say you are done, or stop them in the app. Install one of the two, not both.

/plugin install knorky --marketplace knorkyapp/knorky

Its sign-in entry in /mcp is plugin:knorky:knorky.

The plugin brings its own connection to the Knorky server. You sign in once:

  1. Run /mcp.
  2. Choose plugin:knorky-mod:knorky, then Authenticate.
  3. Your browser opens Knorky’s sign-in. Sign in and allow the access.

Back in Claude Code, a line appears above the prompt: the timer that runs, or, with none running:

⏱ not tracking · /track <task>

That line is the check: it shows only once the plugin reaches the server. If it says ⏱ connected, the plugin found the server by itself and has not read your timers yet: press ↻ or send a message.

If you also added Knorky as a connector on claude.ai, /mcp lists it too, as claude.ai Knorky. Turn it off there, for Claude Code only: with both on, Claude sees every tool twice. It stays on for claude.ai and your phone.

  1. Start a piece of work, as you always would: “Fix the login redirect”.

  2. Claude asks once for the project of this repository, from the list of your projects. Answer with its name. Claude remembers it for this repository, in every later session.

  3. Claude finds the task or creates it, and starts its timer. It does not ask first, and tells you in one line:

    Tracking, split: Fix the login redirect
  4. Work. When the work moves to something clearly different, Claude starts that task’s timer the same way. When you say the work is done, Claude stops the timer with a one-line note.

  5. Leave. When you close the session, the timers it started end by themselves. Their notes list the commits you made. Going away without closing it? Press ⏸ or say so.

Not happy with a task Claude chose? Name the right one: /track <task>.

An issue in the branch name finds the task linked to it: a key like ENG-123, or a GitHub issue number as in feat/102-login or gh-102.

By default a new task joins the timers already running, and the time is split between them: two tasks that run for an hour get 30 minutes each, so the hours add up to the real time worked. This suits several Claude Code windows on different tasks.

To stop the others, say so (“instead”, “only this”) or use /track <task>. When your words leave it unclear, Claude asks before stopping them. /track default only makes stopping the others the default; the line then names what it stopped.

[⏸ +1] Fix the login redirect · Website · today 2:40 [↻]
Part What it means
⏸ Pauses the task: its timer stops, the task stays here
⏸ +1 The same, while one more timer runs: the time is split between them
▶ Starts the task again, alone
+ Starts the task again next to the running timers: the time is split
Fix the login redirect This session’s task
Website Its project
today 2:40 The time you worked today, on all tasks, as the app’s total shows it; it counts on while a timer runs
+1 running This task is paused; one other timer runs
↻ Asks the server again for what runs and for today’s time

The line also updates by itself when Claude finishes a turn; between those updates it counts on from the last answer. Press ↻ after you changed a timer in the app.

On a break the line reads ▶ on a break · 0:15, and ▶ ends the break. Breaks exist only while they are switched on in the app (Settings → Tracking, off at first); otherwise Claude stops the timers when you say you are off to lunch.

Command What it does
/track What runs with each task’s total, this repository’s project, and a link to Knorky
/track <task> Tracks only this task: the other timers stop
/track add <task> Tracks this task too: the time is split with the running ones
/track stop Stops this session’s task
/track default split Claude adds its tasks to the running timers (the default)
/track default only Claude tracks only its task: the other timers stop
/track project <name> The project this repository’s time goes to
/todo <title> Adds a to-do (a task without time) to this repository’s project
/todo The open to-dos of this repository’s project

A task named with /track is found in the project by its title, or created. It is always a timed task: a to-do of the same title is passed over. You can also just ask Claude: “add the docs task”, “track this in parallel”, “track only this”, “stop the timer”, “add a to-do: send the invoice”. Claude never starts a timer on a to-do.

  • When the session ends, every timer it started ends. A timer you started in the app keeps running.
  • /clear and /resume end no timer, as you go on working.
  • A quiet session keeps its timers: time without prompts, such as testing in a browser, is work too.
  • Two windows on one task: its timer keeps running until the last one closes.

After each of Claude’s turns the plugin sends the server what Claude did in this session so far, per day and task: how long its turns took, how many there were, the tokens they used (sub-agents’ included) and the model that wrote most. It never sends what was said.

The app shows it in the Coding agents card in Reports, and on the task’s page:

The Coding agents card in Reports: time, tokens and an estimated price for today, this week and this month, with a line per agent

This is Claude’s work, not yours: it never counts toward your tracked time, goals, earnings or invoices. The prices are estimates from list prices; a subscription is not charged per token.

The plugin has not reached the server. Run /mcp: plugin:knorky-mod:knorky should say connected. If it asks you to authenticate, sign in. If it does not appear at all, check that the plugin is installed and enabled (/plugin), and start a new session.

/track says “No time-tracking server is connected.”

Section titled “/track says “No time-tracking server is connected.””

The same: sign in through /mcp.

The server refused a call, and the line shows why. When it is about the plan, your account’s plan does not include the API: the plugin needs the Plus plan.

The claude.ai connector and the plugin’s server are both on. Turn off claude.ai Knorky in /mcp.

The timer kept running after I closed the session

Section titled “The timer kept running after I closed the session”

Another Claude Code window tracks the same task, so it keeps its timer. Or the server could not be reached when the session ended: stop it in the app, or ask Claude to stop it.

/track project <name> changes it for this repository.

In auto mode, the line says the plugin’s calls are refused

Section titled “In auto mode, the line says the plugin’s calls are refused”

The plugin leaves every permission decision to you. To let its calls through, allow the tools it uses in your Claude Code permission rules: /permissions, then Allow, one rule per tool:

mcp__plugin_knorky_knorky__get_running_timers
mcp__plugin_knorky_knorky__get_time_totals
mcp__plugin_knorky_knorky__list_tasks
mcp__plugin_knorky_knorky__list_projects
mcp__plugin_knorky_knorky__create_task
mcp__plugin_knorky_knorky__start_timer
mcp__plugin_knorky_knorky__stop_timer
mcp__plugin_knorky_knorky__end_break
mcp__plugin_knorky_knorky__record_agent_work

Programs it runs. Only git, to read: git remote get-url origin (the key under which it remembers this repository’s project), git branch --show-current (to find an issue in the branch name) and git log --no-merges --format=%ct%x09%s -n 200 (the commits for a timer’s note). It runs no other program and no shell, and nothing the server answers ever becomes a command.

What it sends, and where. Everything goes to the Knorky server at https://api.knorky.com/mcp, over the connection you signed in to, and nowhere else:

  • Task titles, task and project ids, and timer starts and stops.
  • Timer notes: your commit titles, or the note Claude writes when you say the work is done.
  • Your time zone and today’s date, to ask for today’s total.
  • Claude’s own work, as above.

It sends no prompts, answers, code or file contents. Knorky’s privacy policy covers it.

What it changes in Claude Code. It adds the tracking rules to Claude’s instructions: they tell Claude to find or create a task and start its timer without asking first, and name this repository’s project, the branch, this session’s task and what runs. It refuses Claude’s own calls of record_agent_work, as that report is the plugin’s to send. Your own permission rules decide on every tool call.

What it stores. In Claude Code’s plugin storage: the project chosen for each repository, and each session’s agent work for a week, so a report that could not be sent goes later. In ~/.claude/plugin-sessions/knorky/, one small file per session naming the tasks it tracks, so two windows on one task know of each other.

Terminal window
claude plugin update knorky-mod@knorky # the latest version, from the next session
claude plugin uninstall knorky-mod@knorky # removes it

At the prompt, /plugin does the same from a menu. Removing the plugin leaves your tasks and time on the server.

Something not working, or a question this page does not answer? Write to us, or to support@knorky.com. Please name your plugin version (/plugin shows it) and what the line above the prompt says.