-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.sh.example
More file actions
52 lines (45 loc) · 1.98 KB
/
env.sh.example
File metadata and controls
52 lines (45 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env bash
# Claude Code environment configuration
#
# Two ways to use this file:
#
# Option 1 - shell profile (applies to all Claude Code sessions in this shell):
# Add to ~/.zshrc or ~/.bashrc:
# source ~/.claude/skills/tripod/env.sh.example
#
# Option 2 - settings.json env block (recommended):
# Copy individual variables into ~/.claude/settings.json under the "env" key.
# They apply at session start without requiring shell config changes.
# See settings.json.example for the full format.
# Output limits
# Prevents response truncation on long outputs (default is much lower).
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=65536
# Bash timeouts and output limits
# 5 minutes default prevents premature kills on slow commands (builds, migrations, tests).
export BASH_DEFAULT_TIMEOUT_MS=300000
# 10 minutes ceiling for long-running operations.
export BASH_MAX_TIMEOUT_MS=600000
# Captures full output from verbose commands without truncation.
export BASH_MAX_OUTPUT_LENGTH=100000
# MCP output cap
# Prevents MCP servers from flooding context with verbose output.
export MAX_MCP_OUTPUT_TOKENS=50000
# Agent teams (research preview, Feb 2026)
# Enables parallel agent spawning via the Task tool.
# Required in settings.json env block for agents spawned in sessions.
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Context compaction
# Triggers compaction at 80% context usage instead of the default 95%.
# Keeps more working headroom during long sessions.
export CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=80
# Privacy and noise reduction
# Disables telemetry pings during sessions.
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
# Silences cost warnings (useful on Max plan where token costs are flat).
export DISABLE_COST_WARNINGS=1
# Silences periodic feedback survey prompts.
export CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1
# Shell behavior
# Preserves the project working directory across tool calls.
# Without this, the shell cwd can drift between Bash invocations.
export CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR=1