Skip to content

GavriloviciEduard/claude-code-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code Config

A secure, privacy-focused configuration for Claude Code with a custom statusline.

Features

  • Read-only permissions - Only allows commands that cannot modify your filesystem
  • Privacy-focused - Hides account info and disables error reporting, bug command, and cost warnings
  • Max effort - Enables always-on thinking at max effort with adaptive thinking disabled
  • Custom statusline - Shows path, git branch, model, cost, token usage, and context window progress bar

Statusline

Installation

git clone https://github.com/GavriloviciEduard/claude-code-config.git
cd claude-code-config
chmod +x install.sh  # not needed on Windows
./install.sh

Restart Claude Code to apply.

What's Allowed

Category Commands
File info ls, pwd, stat, file, du, df
File reading cat, head, tail
Search grep, rg, ag, jq, diff
Archives tar -tf, unzip -l, zipinfo, zcat
System info uname, whoami, date, uptime
Git (read-only) status, log, diff, blame, branch -a, etc.
Editor code (VS Code)

What's NOT Allowed

  • File modification (rm, mv, cp, mkdir, chmod)
  • Git writes (push, commit, checkout, reset)
  • Network tools (curl, wget, ssh)
  • Package managers (npm, pip, brew)
  • Any destructive operations

Customization

Colors

Edit the color constants in statusline.sh:

readonly PATH_COLOR="\033[38;2;0;178;255m"     # Cyan
readonly BRANCH_COLOR="\033[38;2;0;218;0m"     # Green
readonly MODEL_COLOR="\033[38;2;230;113;78m"   # Orange
readonly COST_COLOR="\033[38;2;220;185;100m"   # Gold
readonly TOKENS_COLOR="\033[38;2;173;182;251m" # Purple
readonly CTX_LOW_COLOR="\033[38;2;0;218;0m"    # Green   (<60%)
readonly CTX_MID_COLOR="\033[38;2;220;185;100m" # Gold   (60-84%)
readonly CTX_HIGH_COLOR="\033[38;2;255;85;85m"  # Red    (>=85%)

Environment

"env": {
  "CLAUDE_CODE_HIDE_ACCOUNT_INFO": "1",
  "DISABLE_ERROR_REPORTING": "1",
  "DISABLE_BUG_COMMAND": "1",
  "DISABLE_COST_WARNINGS": "1",
  "CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL": "1",
  "CLAUDE_CODE_EFFORT_LEVEL": "max",
  "CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING": "1"
}

Plugins

  • frontend-design
  • pr-review-toolkit
  • security-guidance
  • code-review
  • feature-dev
  • commit-commands
  • clangd-lsp
  • pyright-lsp
  • swift-lsp
  • typescript-lsp
  • kotlin-lsp
  • superpowers
  • code-simplifier
  • claude-md-management
  • claude-code-setup
  • remember

About

Secure, privacy-focused Claude Code configuration with read-only permissions and custom statusline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages