Skip to content

Instantly share code, notes, and snippets.

@aadishv
Created September 1, 2026 06:00
Show Gist options
  • Select an option

  • Save aadishv/04a7ac599b3c254859ff46b30c0e8556 to your computer and use it in GitHub Desktop.

Select an option

Save aadishv/04a7ac599b3c254859ff46b30c0e8556 to your computer and use it in GitHub Desktop.
cc. but pi
#!/bin/zsh
set -euo pipefail
cwd=${PWD:A}
today=$(date +%F)
system_prompt=$(cat <<EOF
You are an expert coding assistant operating in ${cwd}.
Use Read to inspect files, Edit for precise replacements, Write for new files or complete rewrites, and Bash to run commands. Use Skill when a loaded skill matches the task. Follow all loaded CLAUDE.md instructions.
Work directly in the current project. Keep responses concise.
Current working directory: ${cwd}
Current date: ${today}
EOF
)
export CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=1
export CLAUDE_CODE_DISABLE_AUTO_MEMORY=1
export CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
export CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL=1
export CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1
export CLAUDE_CODE_ATTRIBUTION_HEADER=0
export ENABLE_CLAUDEAI_MCP_SERVERS=false
exec claude \
--system-prompt "$system_prompt" \
--tools "Bash,Read,Edit,Write,Skill,WebSearch,WebFetch" \
--strict-mcp-config \
--permission-mode auto \
--no-chrome \
--settings '{"disableAllHooks":true,"disableClaudeAiConnectors":true,"autoMemoryEnabled":false}' \
"$@"
@vinayak-vikram

Copy link
Copy Markdown

orz 🥹 🥹 🥹

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