T tokprof Edition Dossier · LLM Tokenomics
ZERO-CODE TELEMETRY · EDITION REPORT Sessions: 1 · Turns: 3 · Calls: 7 · Total Input: 73,000 tok · Cached: 47,700 (65.3%) · Output: 1,580 tok
TOKPROF / EDITION DOSSIER

tokprof — LLM Token Profile

Zero-code LLM input token decomposition — system prompt, conversation history, user prompt, and tools, carefully composed.

7 calls profiled · 65.3% cache hit
01 / SESSIONS & TURNS1 / 37 total LLM call(s)
02 / INPUT TOKENS73,000median 9,600 / call
03 / CACHED INPUT47,70065.3% cache hit rate
04 / OUTPUT TOKENS1,580generated by model
05 / FIXED OVERHEAD9,200first call input
06 / FAN-OUT2median calls/turn (max 4)
1. Input Token Breakdown (Total) & Diagnostic Dossier
01 / COMPOSITION

1. Input Token Breakdown (Total)

ComponentTokensShareDistribution
System prompt44,80061.4%
History: user turns2,6703.7%
History: assistant turns1,4001.9%
Current user prompt1,8702.6%
Tools: definitions16,80023.0%
Tools: results4,6206.3%
Unattributed (template/hidden)8401.2%
DIAGNOSTIC DOSSIER / FACTS

Findings & Recommendations (6)

First-Call Fixed Overhead
9,200 tok
Median Input per Call
9,600 tok
Prompt Cache Efficiency
65.3% (47,700 / 73,000)
Turn Fan-out (Median / Max)
2 / 4 calls
HIGH
2 tool definition(s) were sent but never called (14,000 tokens, 19.2% of input): browser_open, notebook_edit
Troubleshooting guide →
HIGH
A system 'system#agent-rules' block of 6,400 tokens was sent in 7 calls (44,800 tokens, 61.4% of input)
Troubleshooting guide →
MEDIUM
A tool_def 'browser_open' block of 1,100 tokens was sent in 7 calls (7,700 tokens, 10.5% of input)
Troubleshooting guide →
MEDIUM
A tool_def 'notebook_edit' block of 900 tokens was sent in 7 calls (6,300 tokens, 8.6% of input)
Troubleshooting guide →
HIGH
Tool call 'run_tests' was repeated 3 times in a row (28,800 input tokens): add a loop guard that redirects after identical calls
Troubleshooting guide →
HIGH
Conversation history grew 11.8x across 5 turns (from 480 to 5,640 tokens): compact older turns or isolate sub-tasks in fresh sessions
Troubleshooting guide →
EDITION LINEAGE / TOKEN FLOW

Baseline → Turn Progression → Call Execution

1 session(s) · 3 turn(s) · select a call node to open its dossier
02 / SESSION DOSSIER

2. Per-Session Summary

↑ Navigation
SessionTurnsCalls System PromptConv HistoryUser PromptTools & Schema Total InputCachedOutput
S1 65% cached3744,8004,0701,87021,42073,00047,7001,580
03 / TURN LINEAGE

3. Per-Turn Breakdown (System Prompt vs. Conversation History vs. User Prompt)

↑ Navigation
TurnCalls SystemHistoryUserTools InputCachedOutComposition
S1 · Turn 1425,600 65%2,230 6%930 2%9,960 25%39,20028,400 72%680
USER PROMPT930 tok (2%)
Fix the failing discount boundary test in checkout.py
CONVERSATION HISTORY2,230 tok (6%)
User/Context
Fix the failing discount boundary test in checkout.py
Assistant Running pytest on tests/test_checkout.py
ASSISTANT OUTPUT680 tok
toolread_file
pathsrc/checkout.py
S1 · Turn 216,400 42%1,440 10%540 4%6,600 44%15,10010,300 68%420
USER PROMPT540 tok (4%)
Patch >= 100 boundary and verify with .venv/bin/pytest -q
CONVERSATION HISTORY1,440 tok (10%)
User/Context
Fix the failing discount boundary test in checkout.py
Assistant Read src/checkout.py (unfiltered full file read: 4,200 tokens)
ASSISTANT OUTPUT420 tok
Patched boundary check (`>= 100`) and verified with `.venv/bin/pytest -q` (14 passed).
S1 · Turn 3212,800 68%400 2%400 2%4,860 26%18,7009,000 48%480
USER PROMPT400 tok (2%)
Run test suite for currency rounding module
CONVERSATION HISTORY400 tok (2%)
User/Context
Run test suite for currency rounding module
Assistant pytest not on PATH; switching to .venv/bin/pytest
ASSISTANT OUTPUT480 tok
All 8 rounding tests passed in 0.09s.
04 / CALL INSPECTOR

4. Per-Call Timeline & Full Prompt Inspector (7 of 7 call(s))

↑ Navigation
7 call(s) shown · click #call to open Dossier Drawer
#TurnModel / Step SystemHistoryUserTools InputCachedOutTimePrompts & Response
S1·T1m-largecoding-agent6,40002802,4009,2000310620 ms
System Prompt6,400 tokens
system#agent-rules
# Coding Agent System Prompt (Synthetic Demo) 1. Inspect target files before editing. 2. Run focused tests to verify every fix. 3. Keep changes minimal and preserve existing behavior.
Current User Prompt280 tokens
Fix the failing discount boundary test in checkout.py
Tools & Response Schema2,400 tokens
tool_defread_file
{ "name": "read_file", "description": "Read a file from the workspace", "parameters": { "path": "string" } }
tool_defrun_tests
{ "name": "run_tests", "description": "Execute test command", "parameters": { "cmd": "string" } }
tool_defnotebook_edit
{ "name": "notebook_edit", "description": "Edit Jupyter notebook cells (unused in repo)", "parameters": { "cell_id": "number", "source": "string" } }
tool_defbrowser_open
{ "name": "browser_open", "description": "Open headless browser page (unused in repo)", "parameters": { "url": "string", "wait_until": "string" } }
Assistant Output310 tokens
{
  "tool": "run_tests",
  "cmd": "pytest tests/test_checkout.py"
}
S1·T1m-largecoding-agent6,4004202002,4609,6009,000120410 ms
S1·T1m-largecoding-agent6,4007402202,52010,0009,500110390 ms
S1·T1m-largecoding-agent6,4001,0702302,58010,4009,900140530 ms
S1·T2m-largecoding-agent6,4001,4405406,60015,10010,300420710 ms
S1·T3m-largecoding-agent6,40002802,4009,2000280580 ms
S1·T3m-largecoding-agent6,4004001202,4609,5009,000200490 ms
05 / TOPOLOGY & ENDPOINTS

Per-Step Token Map & Detected Endpoints

↑ Navigation
STEP SIGNATURES

Per-Step Token Map

StepLabel / ModelCallsInputFixed/Call
agent_coding-agent773,0008,800
ENDPOINT DISCOVERY

Detected Endpoints

HostClassAPICallsInput
api.example.comcloudopenai_chat773,000
Provenance & Measurement Methodology

Segment token counts are local tokenizer estimates (tiktoken BPE / heuristic); Unattributed is provider-reported input tokens minus counted segments (message framing, images, or hidden tokens). HTTP Authorization headers and API keys are never stored, and secrets matching token patterns are automatically redacted before writing.