Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

git-crypt

$ git-crypt Community High Risk
Andrew Ayer · Code & DevOps · GPL-3.0 · macos / linux / windows

Provides 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.

FCRS-1.0 Score
72 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install git-crypt
CLI vs MCP Decision CLI Only

Local Git filter binary; should not be wrapped in remote MCP servers due to symmetric key and plaintext exposure risks.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 14 / 25

Scriptable subcommands (status, unlock <keyfile>) work in non-TTY shells, but lacks --json, --dry-run, and can stall on GPG passphrase prompts.

  • git-crypt status emits plain human text only
  • GPG-based unlock can invoke interactive pinentry prompts
Trust & Safety 17 / 25

Handles sensitive cryptographic keys and plaintext secrets; export-key or misconfigured .gitattributes risks committing unencrypted secrets permanently.

  • Supports -f (--fix) and export-key with no --dry-run safeguard
Setup & Portability 13 / 15

Available on Homebrew, Linux distros, and Windows, though GPG integration requires separate gnupg setup.

  • Depends on OpenSSL and optional gpg runtime
Utility & Efficiency 11 / 15

Effective for transparent repo-embedded secrets, though modern teams often prefer sops or external secret managers.

  • Transparent .gitattributes workflow once configured
Maintenance & Lineage 8 / 10

Established open-source project (AGWA/git-crypt) under GPL-3.0, though release cadence is slow.

  • Long-standing AGWA/git-crypt repository with infrequent releases
Docs & Verifiability 9 / 10

Concise README and man page documenting .gitattributes, key export, and caveats.

  • Well-documented man page and README

Security, Auth & Guardrails

Auth Modes
OS Keychain Config File
Credential Storage

Uses local GPG keyring (gpg-agent) or symmetric key files saved in .git/git-crypt/keys/ (or exported via git-crypt export-key).

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

GPL-3.0 open-source C++ tool; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Check encryption status of repository files
git-crypt status -e

Lists encrypted files tracked by git-crypt without unlocking or modifying working tree state.

Controlled Writes & Previews

Unlock repository using an explicit symmetric key file
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 git read workflows once unlocked.
  • + git-crypt status -e lets agents verify whether sensitive files are properly marked as encrypted.

Caveats & Pitfalls

  • ! No --json output and no --dry-run preview on key or history-fixing operations.
  • ! GPG-based git-crypt unlock can block on pinentry prompts unless a symmetric key path is supplied or gpg-agent is cached.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI