Skip to content

Telesma 1.5.0 — know what each task cost

Choose a tag to compare

@mario12358 mario12358 released this 16 Nov 09:19
· 3 commits to main since this release

Know what each task cost: tokens, working time and model per task, recorded on your machine.

Update: git -C ~/.telesma pull --ff-only (or accept the offer at the start). State format stays 23; nothing in your project's files changes.

  • A usage record per task and per session. done writes a row to .git/telesma-usage/usage.jsonl with the tokens per model the task took (read by a script from Claude Code's transcripts — the model reports nothing), the working time (pauses over 10 minutes left out) next to the clock time, tries, refusals and the diff size. The launcher adds a row per Claude session, so what is spent outside tasks shows too. Counters only: never committed, never in a prompt, no telemetry needed.
  • telesma --usage breaks it down by phase, model, week and release and lists the tasks that took the most tokens and time; --csv gives every row. Each session ends with one line: tasks, time, tokens, cache share, model.
  • Max tokens per session in ## Telesma loop (default none): the session budget can stop at a number of tokens (300M, 1.5B, 500k).
  • Telemetry counts tokens correctly. One response is written as several transcript lines with the same usage; each was counted, so session tokens were 2–3 times too high. A response now counts once, and subagents are added.
  • An unknown option is no longer a project. An option the clone does not know (telesma --usage on 1.4) created a directory named after it; now the launcher stops with a message.