feat(agent-toolkit): shrink get_board_activity responses - #475
Open
stasshw wants to merge 1 commit into
Open
Conversation
- Return `data` as a parsed object instead of a JSON string. - Drop `previous_value` when it deep-equals `value` (via fast-deep-equal), add `previous_value_omitted: "equals_value"` marker. `action_record_uuid` and other fields are preserved so undo_action keeps working. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small, independent changes to
get_board_activity.1. Return
dataas a parsed object (not a JSON string)The
datafield on each activity row is now parsed and returned as a nested object.Improves: fewer LLM tokens (no
\"escape doubling) and no agent-side parsing to reach fields likeaction_record_uuid. Applies to 96.7% of outbound bytes on this tool —includeData=truerows carry 2.64 GB of the 2.73 GB weekly total.2. Drop
previous_valuewhen it deep-equalsvalueWhen a row's
previous_valueandvalueare structurally identical (common onfile/asset column events),previous_valueis dropped and replaced withprevious_value_omitted: "equals_value".Improves: response bytes on the tail. Top board
18403136209alone ships 166 MB / week across 80 calls (avg 2.08 MB, max 19.65 MB) — allincludeData=true, all dominated by file-array duplication, all shrunk. Estimated 40–60% reduction on the tool's tail bytes.Notes
fast-deep-equal(~1 KB, 60M weekly downloads) rather than hand-rolling equality.undo_actiononly needsaction_record_uuid, which is preserved on every trimmed row.includeDataschema description updated so LLMs know about the new marker.🤖 Generated with Claude Code