When you run Claude Code through a compliant setup (Bedrock, ZDR, BAA), you lose built-in web search — that's intentional, part of keeping the compliance boundary clean. However, I sometimes need public research: prior published public decisions or current information — nothing about the specific client/private information, but genuinely useful.
The problematic fix is "turn web search on." The problem: once a tool can reach the internet, anything in that conversation is one careless step from ending up in a search query — including your client's name or case facts.
This is my fix, so far - keeping in mind, I'm still developing this process, and I'm sure that some expert has it down:
Claude Code's subagent feature makes this clean. A subagent runs in its own isolated context — it doesn't inherit my conversation or see my open files unless I explicitly hand them to it. So:
- A research subagent gets internet access (via Tavily) plus read-only access to non-private resources in my library/files. It never sees the client/private file — it can't, because it was never given it.
- My main session holds the client file, does the drafting, and has no internet access.
The research agent runs general queries, returns a clean memo, and that memo is the only thing crossing the boundary. Nothing client-specific ever touches the search API — not because the model remembered to be careful, but because there's structurally nothing sensitive in its context to leak.
That's the real value: no reliance on the model's judgment in the moment. Isolation by design beats isolation by instruction.
I'll drop the subagent config and connection command in the comments. Works for anyone handling sensitive data who still wants their AI tooling online — not law-specific. Appreciate any critique that makes it better.