update
Mar 18, 2026We've introduced a server-side background task to compute consistent token counts, tool usage, and code impact metrics for every session across all capture sources.
RCLM now automatically calculates detailed statistics for every captured LLM session, regardless of whether you're using the browser extension, CLI, or automated hooks. Previously, session metadata like token counts and tool usage were only available if the source client explicitly provided them. This often led to incomplete dashboards and unreliable usage analytics. Our new background task ensures that every session is analyzed for its full impact.
The core of this update is a new background service that identifies sessions with missing statistics and processes them systematically:
tiktoken library using the cl100k_base encoding. This provides highly accurate token counts for GPT-4 class models and serves as a reliable industry-standard approximation for other providers like Claude and Gemini.grep_search, read_file, or custom tools) were used most frequently.lines_added, lines_removed, and the programming languages involved in each session.As RCLM has grown to support more ways of capturing interactions, maintaining consistent data became a challenge. Client-side computation is prone to inconsistency and adds overhead to the ingestion process. By moving this logic to a background task, we keep the initial session capture fast while ensuring that enterprise-grade analytics are eventually consistent and accurate. This approach also allows us to backfill statistics for historical sessions that were captured before these metrics were introduced.
While this significantly improves data reliability, there are a few considerations:
cl100k_base is an excellent general-purpose tokenizer, there may be a 5-15% variance compared to the exact counts reported by non-OpenAI providers like Anthropic.We are closely monitoring the performance of this background task as session volumes increase. If you notice any discrepancies in your usage metrics or have specific statistics you'd like to see tracked, please reach out with your feedback.