r/ClaudeCode • u/ThisNeedsToBeHigher • 1h ago
Help/Question How to Audit CC?
I have a project that does heavy data analysis on user data from a website and paid ad traffic.
I have questioned some of the data architecture of Claude Code as we have building a more robust structure.
Now the recent allegations of sabatoge has me second guessing if Claude Code has been making sound decisions.
I know I most likely don’t fall into the category of something Anthropic would “not allow” - but I figured an audit is probably a good idea anyway.
My code is on GitHub and my data lives on Supabase.
Any recommendations on how to go about this?
•
u/AutoModerator 1h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/TemporaryDirection35 1h ago
Use Codex (ChatGPT), or Antigravity (Gemini) the same way you use Claude Code
2
u/aaronsuns 1h ago
Start with git history: review the commits that touched your data pipeline like code from any outside contributor, focusing on joins, filters, aggregations, and date or timezone handling, since that's where silent analytical errors usually hide. Write a few independent reference queries in Supabase for your key metrics and compare them against the pipeline's outputs. On the Supabase side, confirm Row Level Security is enabled on every table holding user data, and read the migration files for any permission or policy changes. Running a secret scanner like gitleaks over the full repo history is a cheap way to catch keys that were ever committed.
2
u/CandidSystem6155 1h ago
Before anything else: Claude Code deletes local session transcripts after 30 days by default (cleanupPeriodDays in settings). Raise that now if you want to look back at what the agent read and ran. The JSONL files under ~/.claude/projects are the only record of why a given change was made, and git only shows what changed.
For the data side, passing tests won't tell you much, since the same agent probably wrote them. Take a sample of real inputs (a day of raw ad and site events), run it through the current pipeline and through a plain SQL version you write by hand for the key metrics, and diff the totals. Where they disagree, read that join or filter line by line.