Repository navigation
Encrypt the Claude configuration with cc - #86
Merged
Merged
Conversation
Move the project instructions to .claude/private/CLAUDE.md, encrypted with sec through a git filter, and leave a clear stub in CLAUDE.md. A SessionStart hook decrypts them when a session has SEC_TOOL_KEY. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013B8vqhYDPMmPdgwixFRmfs
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013B8vqhYDPMmPdgwixFRmfs
Pin actions/checkout to a full commit SHA, as repositories that require pinned actions reject a tag, and give the job a read-only GITHUB_TOKEN. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013B8vqhYDPMmPdgwixFRmfs
The project instructions live encrypted in .claude/private/CLAUDE.md. This stub, in clear, tells Claude where they are when the key is missing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013B8vqhYDPMmPdgwixFRmfs
pietrangelo
force-pushed
the
claude/encrypt-claude-config
branch
3 times, most recently
from
October 24, 2026 14:54
e4f0d41 to
a99faf1
Compare
pietrangelo
marked this pull request as ready for review
October 24, 2026 15:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Pietrangelo · project thread
Applies cc (
cc init) to this repository:.claude/private/CLAUDE.md, stored encrypted with sec v2 through a git filter; the rootCLAUDE.mdis a clear stub..claude/settings.jsonadds the SessionStart hook that decrypts the configuration when the session hasSEC_TOOL_KEY(the key is the one already set in the cloud environment)..gitattributes, a pre-commit hook (local) and.github/workflows/cc-check.ymlkeep protected files from being committed in clear.Checked from a fresh clone: the blob in git is ciphertext,
cc session-startdecrypts it to a file identical to the previousCLAUDE.md. The instructions are about 138 KB, over the 10,000 character hook limit, so the hook tells Claude to read.claude/private/CLAUDE.mdfirst instead of injecting it.History:
mainwas rewritten withgit filter-repo --invert-paths --path CLAUDE.mdto drop the 111 earlier plaintext versions, so until this PR mergesmainhas noCLAUDE.md. Old pull request refs on GitHub still reference the previous commits.🤖 Generated with Claude Code
https://claude.ai/code/session_013B8vqhYDPMmPdgwixFRmfs