Token tracking with database scaffolds #2
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kade/choppa#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Token Tracking with Database Scaffolds
Tracking token savings from choppa compression across agent operations requires a comprehensive data collection and visualization system. The system needs to capture compression metrics before and after compression to measure the effectiveness of different compression strategies. This data will help identify which commands benefit most from compression and optimize the compression algorithms accordingly.
The database schema must be designed to store compression metrics including original token count, compressed token count, compression ratio, command type, filter used, and timestamp information. This schema will enable querying for aggregate statistics such as average compression ratios per command type, token savings over time, and peak compression performance. The metrics collection should be integrated into the choppa library to automatically capture data during compression operations.
A dashboard UI is needed to visualize the collected metrics and provide insights into compression performance. The dashboard should show real-time and historical compression statistics, command-specific compression ratios, and overall token savings. Integration with agent workflows will ensure that metrics are collected automatically during normal agent operations without requiring manual intervention.
The implementation plan involves designing the database schema for token tracking, adding metrics collection to choppa, creating database scaffolds, building the dashboard UI, and integrating with the agent execution pipeline. This depends on the completion of issue #635 for choppa adoption.