git-crypt
$ git-crypt Community High RiskProvides transparent AES-256 encryption and decryption of selected files inside a Git repository using .gitattributes clean/smudge filters, GPG keys, or symmetric key files. High sensitivity around key handling and lack of JSON/dry-run flags require strict agent guardrails.
brew install git-crypt Local Git filter binary; should not be wrapped in remote MCP servers due to symmetric key and plaintext exposure risks.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Scriptable subcommands (status, unlock <keyfile>) work in non-TTY shells, but lacks --json, --dry-run, and can stall on GPG passphrase prompts.
git-crypt statusemits plain human text only- GPG-based
unlockcan invoke interactive pinentry prompts
Handles sensitive cryptographic keys and plaintext secrets; export-key or misconfigured .gitattributes risks committing unencrypted secrets permanently.
- Supports
-f(--fix) andexport-keywith no--dry-runsafeguard
Available on Homebrew, Linux distros, and Windows, though GPG integration requires separate gnupg setup.
- Depends on OpenSSL and optional
gpgruntime
Effective for transparent repo-embedded secrets, though modern teams often prefer sops or external secret managers.
- Transparent
.gitattributesworkflow once configured
Established open-source project (AGWA/git-crypt) under GPL-3.0, though release cadence is slow.
- Long-standing
AGWA/git-cryptrepository with infrequent releases
Concise README and man page documenting .gitattributes, key export, and caveats.
- Well-documented man page and README
Security, Auth & Guardrails
Uses local GPG keyring (gpg-agent) or symmetric key files saved in .git/git-crypt/keys/ (or exported via git-crypt export-key).
GPL-3.0 open-source C++ tool; free to use.
# git-crypt Agent Rules - NEVER run `git-crypt export-key` into the workspace or log decrypted secret files to stdout. - Check `git-crypt status` before committing new secret paths to confirm `.gitattributes` filter coverage. - Avoid `git-crypt unlock` with GPG in headless environments unless `gpg-agent` is pre-unlocked.
Agent-Ready Command Recipes
Safe Read-Only Queries
git-crypt status -e
Lists encrypted files tracked by git-crypt without unlocking or modifying working tree state.
Controlled Writes & Previews
git-crypt unlock /path/to/git-crypt-key
Decrypts protected files in the working tree non-interactively using a pre-provisioned symmetric key.
Strengths for Agents
- + Transparent Git filter integration requires zero changes to normal
gitread workflows once unlocked. - +
git-crypt status -elets agents verify whether sensitive files are properly marked as encrypted.
Caveats & Pitfalls
- ! No
--jsonoutput and no--dry-runpreview on key or history-fixing operations. - ! GPG-based
git-crypt unlockcan block onpinentryprompts unless a symmetric key path is supplied orgpg-agentis cached.