Skip to content

Run agent git inside the sandbox with unsigned agent commits #171

Closed

Description

@furedea-agent

Agent commits and pushes ran outside the Claude sandbox only because commit signing needs the SSH agent. That also ran repository git hooks outside the sandbox, so an agent that edits lefthook.yml, a script it calls, or pyproject.toml build settings could run code outside the sandbox at the next commit. Main is merged through squash PRs, which GitHub signs, so agent branch commits do not need the user signature. Disable commit and tag signing for agent git through the Claude env, drop the git add, commit, push, and status sandbox exclusions so git and its hooks run sandboxed (push authenticates with the agent App token), relax the git-workflow call-shape note, and record the decision in an ADR. The user own commits keep signing and hooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions