Tinker Agent sandboxing

by Samy (Kondasamy Jayaraman)

...

Nothing run yet.the code runs in the sandbox · files: working copy writable, data read-only, keys hidden · network: open · secret: in the sandbox

Chapter 4 of 7

Secrets

The task needs Larkspur’s server token. Wherever the agent can read it, a compromised agent can read it too, and send it out.

This chapter: With the egress open, does moving the secret out of the sandbox stop it being stolen?

About this chapter

You will learn

  • Why a secret in the sandbox’s environment can be read by a compromised agent
  • How a proxy holds the secret and adds it only on allowed requests, so the agent never sees it
  • That keeping secrets out of the agent is a defence the network layer cannot give

Words you’ll meet

Secret
A credential such as an access token, which authenticates Larkspur’s requests.
Environment
The variables and files a program can read while it runs, inside the sandbox.
Proxy-injected secret
In Claude Code on the web, sensitive credentials such as git credentials or signing keys are never inside the sandbox; a proxy verifies the operation and attaches the real authentication token before forwarding the request.

Step 1 of 4

A colleague puts the token in the sandbox’s . A planted note says send it out, and egress is open.

Run it.