Logo di Tokenomics

Tokenomics

Community
arozumenko
tokenomics

Optional always-on usage telemetry for agent teams — hooks capture every session's tokens, cost, time, activity and named case ids into a git-committed ledger (.agents/telemetry/automation/), covering Claude Code, Copilot CLI AND the VS Code Copilot sidebar, so the data survives transcript expiry and accumulates across the whole team; a report joins it with the pipeline's own report.json receipts to answer how much automating each batch of cases cost. Use when the user wants continuous/team-wide usage tracking, "enable telemetry", cost-per-case over time, a team usage report, a local OTel sink/doctor, or hyperfactory dataset work — "are we ready to submit tokenomics", build/refresh the submission, the §7 checklist, anonymize the dataset; for a one-off deep audit of live transcripts use efficiency-audit instead.

Panoramica

Autorearozumenko
Repositorysdlc-skills
Nome della skilltokenomics
Stelle
26
Fork
10
File inclusi
19
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 19 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da arozumenko su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Tokenomics in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/arozumenko/sdlc-skills/tree/main/bundles/test-automation/skills/tokenomics
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/arozumenko/sdlc-skills.git /tmp/sdlc-skills
mkdir -p .claude/skills
cp -r /tmp/sdlc-skills/bundles/test-automation/skills/tokenomics .claude/skills/tokenomics
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Tokenomics in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Tokenomics non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Tokenomics non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Tokenomics — durable team usage telemetry

The efficiency-audit skill answers "what did this cost" by reading live transcripts — precise, but transcripts expire (~30 days) and live on each engineer's machine, so the answer is only available to whoever runs it, soon enough, where the work happened.

This skill closes that gap with a capture layer: an optionally-enabled hook that writes one JSON line per finished session into a git-committed ledger (.agents/telemetry/automation/usage-<user>.jsonl). Ledger lines are grounded in the same sources efficiency-audit trusts (transcript token records, ccusage dollars, Copilot's billed credits) but are captured at the moment they exist — so the team's usage history survives transcript cleanup and accumulates through ordinary git push/pull. A report script then answers: how much time, tokens and money did the team spend, and how many cases did it automate.

Installing this skill does NOT start capturing. Telemetry activates only when someone runs the install script below — that's the opt-in.

Updating an old install: re-run the same script. It is idempotent and also migrates the flat-era layout — usage-*.jsonl, scopes/, live/, config.json sitting at the telemetry ROOT move into automation/ automatically (readers look only there; un-migrated history would silently drop out of every report). Same-named newer data in automation/ wins — nothing is ever clobbered.

Quick start

bash
# 1. Enable capture in this repo (all three hosts; idempotent; --remove undoes it)
node .claude/skills/tokenomics/scripts/install-hooks.mjs            # Claude-installed copy
node .github/skills/tokenomics/scripts/install-hooks.mjs            # Copilot-installed copy
#    --host claude|copilot|vscode   default wires Claude hooks + the Copilot hooks
#                                   file. `vscode` is OPT-IN (a folderOpen task in
#                                   shared .vscode/tasks.json; VS Code asks each
#                                   teammate once to allow auto-tasks) — every sweep
#                                   already walks the sidebar store, so it is only
#                                   needed in a SIDEBAR-ONLY repo. --remove strips
#                                   it either way.
#    --local       Claude only: settings.local.json (just you, not the team)
#    --git-hook    optional belt-and-braces: a background post-commit sweep
#    --doctor      health-check wiring, stores, ccusage, OTel flow (--fix starts the sink)
#    --otel [--endpoint URL]   opt into OpenTelemetry (see below); --otel-remove undoes

# 2. Backfill what's still on this machine (optional, one-time)
node .claude/skills/tokenomics/hooks/telemetry-capture.mjs --sweep --all

# 3. One commit to main (the installer prints it): registers the telemetry
#    submodule. From then on hooks commit+push the records to the `telemetry`
#    branch automatically — nobody hand-commits telemetry again.
#    Teammates: git clone --recurse-submodules

# 4. The report — one repo or several, a window, markdown / JSON / HTML
node .claude/skills/tokenomics/scripts/install-hooks.mjs --pull  # merge the team's pushes first
node .claude/skills/tokenomics/scripts/team-report.mjs
node .claude/skills/tokenomics/scripts/team-report.mjs ~/work/repoA ~/work/repoB --since 2026-08-01 --json
node .claude/skills/tokenomics/scripts/team-report.mjs --html --out team.html # shareable self-contained page
node .claude/skills/tokenomics/scripts/team-report.mjs --role test-automation-engineer   # sessions involving that agent

# 5. Per-batch cost — what a batch delivered and what it cost, per case
node .claude/skills/tokenomics/scripts/team-report.mjs --batch <slug>            # markdown
node .claude/skills/tokenomics/scripts/team-report.mjs --batch <slug> --html --out batch.html
node .claude/skills/tokenomics/scripts/team-report.mjs --batches                 # every batch with a receipt

# 6. Hyperfactory dataset export — one submission row per batch
#    identity comes from .agents/telemetry/automation/factory-profile.json (copy
#    templates/factory-profile.template.json there and fill it in once);
#    every `work-scope.mjs close` ALSO auto-appends the batch's row to
#    .agents/telemetry/automation/export/runs.json and prints the §7 checks
node .claude/skills/tokenomics/scripts/build-tokenomics-export.mjs --batch <slug>        # build/refresh one row + print its checks
node .claude/skills/tokenomics/scripts/build-tokenomics-export.mjs --submission          # datasets/<factory-id>/{runs.json,submission.md} + § 7 checklist status
node .claude/skills/tokenomics/scripts/build-tokenomics-export.mjs --submission --anon   # same, identifiers anonymized (T-WI-###) for the public PR
node .claude/skills/tokenomics/scripts/build-tokenomics-export.mjs --compare a/cost.json b/cost.json

Submission readiness — the §7 gate. "Are we ready to submit?" has a mechanical answer: run --submission and read § 7 checklist status in the generated submission.md — ready = zero ❌ (⚠ defaulted fields are honest but worth setting), plus the one human field the spec keeps manual: measured_savings notes. Typical ❌ and their one-step fixes: factory_id / env_setup → fill factory-profile.json; effort_days / size_tshirt / scenario_complexity → run the intake sizing pass (automation-scoping § verdict pass) over the batch's cases — post-hoc is fine, then re-run --batch <slug>. Nothing requires re-running the automation itself. Ship per the spec's §8: --anon, then a fork-PR adding datasets/<factory-id>/.

Per-batch cost.json (written at close). work-scope.mjs close writes .agents/automation/<slug>/cost.json — a pure recompute joining ledger lines to the pipeline's own report.json receipt (matching the receipt's case ids/branches against each dispatch's label — and against the ids mined from the dispatch's own transcript when the label window missed them — so any id shape works). Mid-run the same numbers are always available without touching the tree: work-scope.mjs status, team-report.mjs --batch, and the live page under telemetry/reports/ all recompute on the fly. What each cost.json carries:

  • Per-case rows: direct (measured — the case's own triage/build/ review/fix/merge dispatches (legacy sessions: analyst), a cluster split evenly across its ids, incl. tool calls/errors) and loaded (direct + an even share of batch overhead — an allocation, labelled as such, for cross-batch comparison).
  • Overhead shown once, never smeared — with a by-stage split (lead / triage / gate / report) and a separate rework figure (fix-round spend).
  • Telemetry: turns, tool calls/errors, skills invoked — totals, per role, per case.
  • Records vs receipt: latest script-authored gate verdict (gate-runs.jsonl) + declared session outcomes, with gateDrift / outcomeDrift flags when the receipt disagrees — drift means report.json needs its write-back.
  • Multi-batch sessions are never double-counted: a session serving several batches (a campaign running waves) has its other batches' dispatches EXCLUDED and its session-level figures (lead thread, unnamed work) split evenly across the batches it served — the report says so when it happens.

Stats (avg/median/min/max) run over measured values; per-dispatch dollars exist on Claude (per-file metering); Copilot bills one figure per session, so its per-case rows carry tokens/time and dollars appear at batch level from billed credits — the report labels which is which.

After step 1, capture is automatic. Claude Code sessions are captured when they end AND swept at every session start (async, injects nothing) — so a session whose terminal was killed is harvested the next time anyone opens the repo. Copilot captures at sessionEnd too (current CLIs; the hooks reference added the event) with the start sweep as the safety net — an older CLI ignores the sessionEnd entry and keeps the old next-start rhythm; a running session is never captured. --role filters at REPORT time on purpose — capture keeps everything, because a session filtered at capture would be gone for good once its transcript expires. (With --role, the $/delivered-case ratio is suppressed — receipts aren't attributable to one role.)

Session scope — declared, not reconstructed

Mined ids answer which cases a session mentioned; the scope record answers what the session was actually for. A tiny structured file per session at .agents/telemetry/automation/scopes/<session-id>.json — written by the lead when the work begins, updated when outcomes become true, committed like the ledger:

bash
node .claude/skills/tokenomics/scripts/work-scope.mjs open \
  --session <id> --intent automation --batch <slug> --cases ELITEA-1,ELITEA-2
node .claude/skills/tokenomics/scripts/work-scope.mjs outcome --session <id> ELITEA-1=delivered
node .claude/skills/tokenomics/scripts/work-scope.mjs close --session <id>
# close ALSO renders <batch dir>/batch-report.md (cost.json recompute) and
# prints receipt-vs-records DRIFT while the lead can still fix report.json.
# a session that is NOT automation/testing work: open --intent other (asked once, never again)

intent is an open string — label honestly, don't collapse into "other". Suggested vocabulary (not enforced; a project or another factory may add its own): automation, manual-testing, investigation, framework, onboarding, docs, other. Only automation feeds the cost-per-case figures — every other label simply reports its own spend, so a session that was really a bug hunt stops inflating "$ per automated case". Ids are opaque (any TMS shape) and the outcomes vocabulary is open too — the manual-qa factory can adopt the identical record.

Enforcement (both hosts, wired by install-hooks.mjs): the same three moments on each. Session start injects one line carrying the session id + the ask (or the existing scope's digest, so a batch survives /clear/compaction); a per-dispatch hook marks "this session dispatched work"; a stop gate blocks the turn end once if work was dispatched with no declared scope. On Claude that is SessionStart / PreToolUse Agent|Workflow / Stop; on Copilot CLI it is sessionStart (additionalContext) / subagentStart / agentStop — same decision shape, per the CLI hooks reference. A Copilot CLI too old for those events silently ignores them; there the contract lives in the agent instructions, and open --session auto writes a pending record the capture sweep claims for the real session by time window. The VS Code sidebar has no hooks at all, so that pending path is its normal one: declare with open --session auto from a terminal, and the sweep's capture joins it to the sidebar session the same way (no announce line and no stop gate there — platform limit, not a config gap).

Script-authored floor: test-automation-workflow's gate-case.mjs appends every verdict to .agents/automation/<slug>/gate-runs.jsonl the moment it exists — so "the gate ran green" is on disk regardless of what any agent later remembers to write back.

Capture stamps the scope onto the session's ledger line (scope field); team-report.mjs splits spend by declared intent, and batch-cost.mjs treats the declared batch/cases as the strongest membership surface.

How capture works on each host

  • Claude Code — a SessionEnd hook captures each ending session (dollars metered by ccusage at capture time, best-effort via npx) plus a SessionStart async sweep for sessions that never reached their end hook, and a SubagentStop hook that measures each dispatch as it finishes (§ Live measurements).
  • GitHub Copilot CLI — sessionEnd + sessionStart hooks sweep completed sessions from ~/.copilot/session-state (dollars from Copilot's own billed totalNanoAiu; role from subagent.selected on CLI ≥1.0.63; a CLI without the sessionEnd event silently keeps the start-only rhythm).
  • VS Code Copilot sidebar — its sessions (workspaceStorage chatSessions op-logs; dollars from copilotCredits on extension ≥0.57.0) are swept by any host's sweep, since every sweep walks all three stores. Scope declared via open --session auto is claimed at capture by time window (§ Session scope). Only a sidebar-ONLY repo needs its own trigger: --host vscode adds a folderOpen auto-task (opt-in — it writes shared .vscode/tasks.json and prompts each teammate once).
  • Other hosts — run the capture script's --sweep manually, from CI, or via the optional git post-commit hook.

Live measurements — as each dispatch finishes

The ledger stays one honest line per session, written at session end. But waiting for the session to end means a multi-hour batch shows nothing, so a SubagentStop hook (--dispatch, async) measures each dispatch the moment it finishes: it meters that one transcript (~1s) and appends one line per dispatch to .agents/telemetry/automation/live/<session>.jsonl — role, label, case ids, tokens, active minutes, tool calls/errors, real dollars.

Why a separate file rather than the ledger: appending a whole-session line per stop would put N near-identical rows for one session into the git-committed ledger, all but the last superseded. This file is per-session and transient — at session end the ledger line is re-derived from the transcripts (so it already contains every dispatch, freshly metered), anything the live log holds that the transcripts can no longer produce — a sub-agent file deleted or expired — is folded in (the line then carries foldedFromLive: N, never a silent merge), and the live file is deleted. It is idempotent (a re-fired stop records nothing), self-healing (a stop that never fired is swept by the next one), and re-records a dispatch whose transcript grew (a resumed agent).

bash
node .claude/skills/tokenomics/scripts/work-scope.mjs status --session <id>

reads it — so a live status shows already-priced dispatches and only has to meter the parent. priceAtCapture: false (or TOKENOMICS_NO_CCUSAGE=1) keeps the records tokens-only.

The same hook also refreshes a live batch page — .agents/telemetry/automation/reports/<batch>.html, overwritten in place on every finished dispatch and at session end (same renderer as the close-time report; mid-run figures read LIVE/PROVISIONAL and converge to the close figures). Open it in a browser and watch the batch spend as it happens. TOKENOMICS_NO_BATCH_COST=1 disables.

It is also a price cache. Every later capture — the one close runs, and the one at session end — REUSES a dispatch's recorded dollar when its transcript is byte-identical, so a capture prices the parent plus whatever finished unmeasured instead of re-pricing all N+1 transcripts. That is what makes capturing mid-run cheap. And if a sub-agent transcript is gone by session end, the fold keeps its measurement (§ above).

Per host, honestly:

Claude CodeCopilot CLI
live dispatch records✅ from each sub-agent transcript✅ from the session's own events.jsonl (subagent.completed)
per-dispatch dollars✅ metered per transcript❌ never — this host prices the session once, at shutdown; records are tokens/time/tools
capturing a RUNNING session✅ (close does it)❌ the line needs session.shutdown; until then the ledger has no row
batch report at closecompletecomplete for finished sessions; a report closed mid-session omits that session's spend — close after ending it, or accept the gap and re-run close later (the render is idempotent)

What a ledger line holds

One line per session (host claude, copilot, or copilot-vscode), all facts, no estimates:

fieldmeaning
id, host, user, repo, branch, rolewho/where; role from the session's agent setting — on Copilot from the subagent.selected event (CLI ≥1.0.63; older streams lack it → null)
startedAt/endedAt, wallMin, activeMinwall span + active minutes (gaps >30 min excluded), sub-agents included
tokensparent session's input/output/cache-read/cache-write (ccusage's max-per-message-id dedup rule)
subagents[]per-role rollup of dispatched sub-agents: count, tokens, minutes, tool calls
costUsd, costSourcea real figure or null — ccusage-metered (Claude, metered at capture), copilot-nano-aiu (GitHub's billed credits, 1 credit = $0.01), or copilot-credits (the sidebar's billed field, extension ≥0.57.0). Never a price-table estimate.
cases[], titlecase ids (Jira-style keys) mined from branches, dispatch labels, prompts and session titles — ids only, never the surrounding text, so this is always on; declared scope ids join this list; title is VS Code's own session name
scopethe session's declared work scope, when one exists (§ Session scope): {intent, batch?, cases, outcomes?}
turns, toolCalls, toolErrors, skills, dispatchesactivity metrics
prompts[], dispatched[]only when capturePrompts is on — user prompts truncated to 200 chars + dispatch descriptions

Where records live, and how they travel

Team reporting only works if the records travel. Cost-per-case is a join between the ledger and the receipts — without both in git a teammate can compute nothing. Two homes:

The telemetry submodule. install-hooks.mjs sets .agents/telemetry up as a submodule of the same repository, checked out on its own telemetry branch (.gitmodules url ./, ignore = all). It is shared, one subfolder per factory — this factory writes automation/; another factory that wants durable telemetry later adds its own subfolder and rides the same branch and sync, no second submodule. In automation/: the ledger (usage-<user>.jsonl — one file per user, so parallel work never conflicts), scope records, config.json, factory-profile.json, mid-run gate verdicts (gate-runs/<batch>.jsonl), workflow returns (returns/) and the live batch page (reports/). Nobody hand-commits any of it: every capture moment commits and pushes to the telemetry branch (best-effort; offline just means the next capture catches up; TOKENOMICS_NO_SYNC=1 disables). Because of ignore = all and the separate branch, the main working tree never gets dirty and a branch switch never stashes a record. A teammate gets everything with git clone --recurse-submodules (forgot? — git submodule update --init); the chief lead runs install-hooks.mjs --pull before a team report to merge in everyone's pushes. A repo with no remote at all works too — everything accumulates in the local telemetry branch; when a real remote appears later, run git submodule sync .agents/telemetry once so pushes start reaching it (--doctor detects the un-synced state and prints exactly that command).

The main tree. The batch's own record ships with the batch, committed like any other file at close: report.json, gate-runs.jsonl (folded from the telemetry side at close, so the closed batch carries one complete file), cost.json and batch-report.md/.html (written once, at close — never auto-refreshed mid-run).

The installer still writes an owned .gitignore block (replaced in place on re-run, stripped by --remove) — it covers the plain-dir fallback, where the telemetry folder is not (yet) a submodule:

gitignore
# >>> tokenomics (managed) — working state only; the ledger/scopes/receipts stay COMMITTED
.agents/telemetry/automation/live/
.agents/telemetry/automation/scopes/.pending-*
.agents/telemetry/automation/scopes/.nagged-*
.agents/telemetry/automation/scopes/.unclosed-*
# <<< tokenomics

Never gitignore .agents/telemetry — a submodule only works if git sees its path. (.agents/automation/<batch>/ must stay committable too — its receipts and cost records are the point.)

Artifacts other skills write are the project's call, not this skill's — most projects also ignore the legacy .agents/automation/_returns/ (per-dispatch returns now land in telemetry/returns/ when the telemetry area exists), the batch's cases/ snapshots and run.json, and any browser scratch (.playwright-mcp/). --doctor warns when the block is missing and reports the submodule's state (uninitialized clone, unpushed commits, detached HEAD).

Scope note: the capture/scope contract here belongs to the test-automation factory; manual-qa meters its benchmark runs with its own hooks and other factories do their own thing — the paths never collide, so they coexist in one repo without conflict. The telemetry submodule itself is the shared piece: per-factory subfolders, one branch, one sync.

Config — .agents/telemetry/automation/config.json

json
{ "capturePrompts": false, "priceAtCapture": true, "maxSweep": 10,
  "vscodeUserDataDirs": [], "otel": null }
  • capturePrompts — off by default. Turning it on commits (truncated) user prompt text to the repo; decide as a team, mind client-data rules.
  • priceAtCapture — Claude only: meter the session with npx ccusage when it ends (adds seconds to the hook; on failure the line says costUsd: null, never a guess). TOKENOMICS_NO_CCUSAGE=1 disables it too.
  • maxSweep — new sessions harvested per hook run; the rest wait for the next run (a first sweep can face a month of history — --sweep --all does it in one go, run that manually).
  • vscodeUserDataDirs — extra VS Code user-data or workspaceStorage dirs for portable-mode / --user-data-dir installs the discovery matrix can't see.
  • otel — written by install-hooks.mjs --otel; when enabled with a localhost endpoint, every capture moment also keeps the bundled stdlib OTLP sink (hooks/otel-sink.mjs) alive. scripts/otel-report.mjs summarizes what the sink received (inspection only — OTel lines are never merged into the ledger; see references/otel-roadmap.md for why and for the emitter switches).

The report

team-report.mjs merges every usage-*.jsonl it finds (repo roots, telemetry dirs, or files; several roots = several repos in one rollup), dedupes re-captured sessions (latest wins), and prints totals, by-person, by-role, by-week, by declared intent (automation vs other vs undeclared), by batch (one row per receipt: delivered, total, per-delivered, gate verdict, drift flag), and a cross-batch per-case table (delivered first, direct + loaded cost) — tokens, real dollars with provenance, active/wall hours, tool calls. Where scope records exist, the per-delivered figure is also shown scoped to automation-intent spend — the honest denominator that stops unrelated sessions inflating $/case. --html renders any of it as a self-contained page; batch close writes batch-report.md + .html automatically (§ Session scope). For the team picture, pull first: install-hooks.mjs --pull merges every teammate's telemetry pushes into the local submodule, so the report sees everyone, not just this machine.

Cases come from receipts, not guesswork: it reads the pipeline's own .agents/automation/*/report.json (cases[] with id + outcome, latest outcome per case wins, delivered = delivered/defect-found — legacy automated/merged-sanctioned-red accepted for old receipts) and derives $ and active minutes per delivered case. Analysis/review/fix rounds live in those receipts and in the batch's board — the ledger adds who paid for them and how long they took. Sessions with no real dollar are counted and labelled tokens-only; they are never priced by estimate.

Caveats — read once

  • A hard-killed Claude session misses its SessionEnd; the next capture's sweep picks it up from disk (bounded by transcript retention).
  • A continued session updates its line — on every host. A session that spends more after its first capture (resumed, --continued, or simply ended again with more context and tool calls) is re-captured once its source file grows past the recorded end: SessionEnd firing again appends a superseding line directly, and the sweep re-checks known sessions for growth (never appending unless the parsed end actually advanced). The report's latest-wins dedup keeps the final line, so totals follow the session's whole life, not its first snapshot.
  • Forked sessions (a NEW session id replaying the parent's records) are the remaining caveat: the fork's line can double-count replayed tokens. The ledger's grain is honest-per-session, not forensically deduped across forks — efficiency-audit on live transcripts is the precision tool while they exist.
  • Copilot parent-session roles need CLI ≥1.0.63 (the subagent.selected event, verified live). Sessions from older CLIs carry role: null — attribute those by user/branch, or by their named sub-agent roles.
  • Nothing uploads anywhere. The ledger is files in your repo; accumulation is git. If the org later wants Langfuse/OTel dashboards, export the JSONL — the format is sink-agnostic by design.
  • VS Code sidebar sessions have no completion marker — a session captured mid-life is re-captured via the same growth rule as above. Files from extensions <0.57.0 carry tokens but no copilotCredits → honest tokens-only lines. The sweep searches every VS Code variant/OS location (the discovery matrix in references/otel-roadmap.md); Windows and WSL/vscode-server paths are designed in but still need one live verification on such a machine.

Division of labour

  • tokenomics (this skill) — continuous capture + team/period report from the durable ledger.
  • efficiency-audit — deep one-off audit of live transcripts: per-sub-agent metered dollars, cache-hit rates, before/after comparisons. Use it while transcripts are alive; use the ledger after.
  • session-retrospective — mines session content for lessons, not cost.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Tokenomics?

Optional always-on usage telemetry for agent teams — hooks capture every session's tokens, cost, time, activity and named case ids into a git-committed ledger (.agents/telemetry/automation/), covering Claude Code, Copilot CLI AND the VS Code Copilot sidebar, so the data survives transcript expiry and accumulates across the whole team; a report joins it with the pipeline's own report.json receipts to answer how much automating each batch of cases cost. Use when the user wants continuous/team-wide usage tracking, "enable telemetry", cost-per-case over time, a team usage report, a local OTel s...

Perché usare Tokenomics su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Tokenomics è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Tokenomics in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/arozumenko/sdlc-skills/tree/main/bundles/test-automation/skills/tokenomics. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Tokenomics?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Tokenomics?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Tokenomics: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Tokenomics è gratuita?

Sì. È pubblicata su GitHub da arozumenko con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇