redact-proxy pre-release
Docs menu

Git in the sandbox

When the workspace is a git repository (a .git directory), the agent's container has no .git. It sees an empty, read-only directory there, and git is a shim: inside /workspace, the command goes to the proxy's git endpoint, which runs the real git on the real repository and returns the output redacted. Outside /workspace, the container's own git runs.

The proxy's git sees the real files; the agent sees only git's output, redacted on the way. A repository's history can hold values committed long ago, which the agent gets only after redaction. Values detection misses come through, as everywhere else.

What works#

KindCommands
Readingstatus, diff, log, show, blame, ls-files, merge-base, rev-parse, rev-list, describe, show-ref, symbolic-ref, remote -v, remote get-url, config --get, config --list, version
Writing .git onlyadd, commit, branch, tag, switch -c, checkout -b, reset (soft and mixed), restore --staged

Commits land in your repository on the host, with your host's effective git identity for that repository. Push them from the host.

A refused command exits with 128 and says why; the proxy logs it as git refused with the subcommand's name.

What is refused, and why#

Known limits#

Pushes from elsewhere#

Repositories outside /workspace use the container's own git, through the gateway. A push over HTTPS is unpacked in a sandboxed child process and blocked if it holds markers or known values that aren't allowed there. For allowlisted git hosts, git@host: and ssh://git@host/ remotes are rewritten to HTTPS in the agent image so pushes stay inspectable.