---
title: "Discussion on \"Cowork Sandbox -> ClaudeCode & Codex Laughing at It\n\" | Hashnode"
description: "Discussion on \"Cowork Sandbox -> ClaudeCode & Codex Laughing at It\n\". I tried using Cowork, Claude Code and Codex with the same 2nd-brain folder. The difference I kept running into was what each one let me do with the tools already on my Mac.\n\n\nIntro\nWhat do I want? Wel"
url: "https://hashnode.com/posts/cowork-sandbox-claudecode-codex-laughing-at-it/6adb5a37699e191b20126ed8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cowork Sandbox -> ClaudeCode & Codex Laughing at It](https://lukasnotes.dk/cowork-sandbox-claudecode-codex-laughing-at-it?utm_source=hashnode&utm_medium=feed)

I tried using Cowork, Claude Code and Codex with the same 2nd-brain folder. The difference I kept running into was what each one let me do with the tools already on my Mac. Intro What do I want? Wel

Oct 23 · 3 min read · lukasnotes.dk  
Read the article

## Written by

[Lukas](https://hashnode.com/@flexchar)

@flexchar · Copenhagen, DK

  
[View profile](https://hashnode.com/@flexchar)

A developer you can trust.

I've discovered coding back in 2013 and three years later I spent all my summer building my first Laravel app which is still in production by the non-profit I've built for. Now I'm struggling to find the balance between enjoying the power of "I can build this myself" and not chocking myself to death trying to build everything myself. As it is common for developers to be less articulate, I decided to leverage writing about my endeavours, to keep me up.

## Responses 4

Markdown supported · ⌘↵ to post

[Sina Rezaei](https://hashnode.com/@sinarezaei)

[Oct 23](https://hashnode.com/posts/cowork-sandbox-claudecode-codex-laughing-at-it/6adb5a37699e191b20126ed8/comment/6adb77f269dcfbd64b3665a6)

The interesting trade-off here is how much of the local environment an agent actually needs. Take a monorepo where a task requires running a specific Homebrew-installed tool, generating code, and spinning up dependent services for integration tests. A sandbox that blocks those workflows pushes you toward workarounds, but letting the agent escape its boundaries too easily creates a different problem. I’d rather expose the exact binaries, writable paths, and network endpoints the task needs than make broader permissions the default.

[Lukas](https://hashnode.com/@flexchar)

[Oct 26](https://hashnode.com/posts/cowork-sandbox-claudecode-codex-laughing-at-it/6adb5a37699e191b20126ed8/comment/6adb77f269dcfbd64b3665a6#reply-6adf1ad6ef751436395ce8ce)

Yes, indeed... and I am torn between these options.

I both realize very well the potential of the Lethal Trifecta that is possible and on the other hand, if i really want effective VA (virtual assistant), I am forced to make trade offs.

So far I haven't gotten burned but I will also not let my agent read my emails before me nor do it on automated basis, so there is no easy prompt injection, furthermore, I do count on the auto mode and my operating guide to not allow any actions that actually submit data outside (sending emails, uploading files etc).

But it is not ideal. I see Claude Code in Desktop introduced a new environments option so I will be checking that one up. But for short, my biggest deal breaker in Cowork was no way to let the agent access my 1password cli `op`.

[Sina Rezaei](https://hashnode.com/@sinarezaei)

[Oct 29](https://hashnode.com/posts/cowork-sandbox-claudecode-codex-laughing-at-it/6adb5a37699e191b20126ed8/comment/6adb77f269dcfbd64b3665a6#reply-6ae32fcd935722e631a27953)

The `op` limitation is an interesting one because exposing the CLI isn't quite the same as granting safe access to secrets.

Imagine an agent working on a deployment that needs a database credential from 1Password. If it can run arbitrary `op` commands with a broadly privileged service account, a prompt injection hidden in a dependency README could try to turn that convenience into access to unrelated vault items. Even if the agent never sends an email, it could still leak a secret through a build log or an outbound request.

I'd be tempted to put a small host-side broker between the agent and `op`: allow specific secret references, inject values only into the process that needs them, and keep the vault token out of the agent's environment. Add an outbound network allowlist, and you've reduced the blast radius without taking away the workflow.

The tricky part is preserving that boundary when the agent can execute arbitrary shell commands. Have you considered exposing a narrow secret-access interface rather than the full CLI?

[Lukas](https://hashnode.com/@flexchar)

[Nov 5](https://hashnode.com/posts/cowork-sandbox-claudecode-codex-laughing-at-it/6adb5a37699e191b20126ed8/comment/6adb77f269dcfbd64b3665a6#reply-6aecb992b45989dd6cd17e17)

You're right, it's two different things.

The good thing about it is that I can approve via the pop up the access to a credential, unless it's one of the few limited for agents. What's the worst that could happen - well the exhaustion of approval prompts and getting to the muscle memory of approving.

I have thought about different options. There are some very sophisticated write ups about the entire sandboxing and injecting secrets at the request level so the agent doesn't even know about it.

My problem is how far I'm willing to trade the comfort away and how far I'm willing to trust it. Between being very secure with no comfort, and being very insecure with `--dangerously-skip-permissions` mode.

Another problem is to maintain such a proxy/broker requires mental capacity on its own. That is already limited. So I stick with the compromise for now. Worth noting, this is why I don't let my agents read my email or install latest versions of the packages since that would complete the lethal trifecta thus taking me to the riskier area than I have the appetite for.

I feel like the entire area is still very novel and I could probably write an entire piece on it. What have you done?
