Repository navigation
feat: scrub captured calls on this machine before they are sent - #9
Merged
Merged
Conversation
With capture on, emails, payment cards, phone numbers and account numbers in each call's request and answer become keyed tokens (<email:3f9a1c2e>) before anything is queued or sent: the same rules and token format as AgentCompile's server, checked against vectors generated by the server's own scrubber, so the same value always gives the same token and matching still works. Tool arguments and results stored as JSON text are scrubbed field by field; ids are left alone. The key stays here: AGENTCOMPILE_SCRUB_KEY (share it across your servers), else one created once in ~/.agentcompile/scrub.key (owner-only). On by default with capture; wrap(..., scrub=False) sends calls as they are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <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.
What
With capture on, personal data in each captured call becomes keyed tokens (
<email:3f9a1c2e>) on this machine, before anything is queued or sent:Same tokens as the server. The rules and token format are identical to AgentCompile's server and the other SDK, checked against shared vectors generated by the server's own scrubber (
tests/data/scrub-vectors.json). The same value always gives the same token, so matching across a conversation still works.The key stays on the machine:
AGENTCOMPILE_SCRUB_KEY(share it across servers), else one created once in~/.agentcompile/scrub.key, owner-only. Records are marked"scrubbed": true, and the server stores them without needing its own key.Default: on with capture; turn it off with the
scruboption. The README now has a Privacy section.🤖 Generated with Claude Code