Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@
"attribution": {
"commit": "",
"pr": ""
},
"enabledPlugins": {
"typescript-lsp@claude-plugins-official": true
},
"effortLevel": "medium",
"voiceEnabled": false,
"statusLine": {
"type": "command",
"command": "bash ~/.config/claude/statusline-command.sh"
}
}
1 change: 1 addition & 0 deletions config/cagent/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.cagent_first_run
61 changes: 61 additions & 0 deletions config/claude/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"cwd": "/current/working/directory",
"session_id": "abc123...",
"transcript_path": "/path/to/transcript.jsonl",
"model": {
"id": "claude-opus-4-6",
"display_name": "Opus"
},
"workspace": {
"current_dir": "/current/working/directory",
"project_dir": "/original/project/directory"
},
"version": "1.0.80",
"output_style": {
"name": "default"
},
"cost": {
"total_cost_usd": 0.01234,
"total_duration_ms": 45000,
"total_api_duration_ms": 2300,
"total_lines_added": 156,
"total_lines_removed": 23
},
"context_window": {
"total_input_tokens": 15234,
"total_output_tokens": 4521,
"context_window_size": 200000,
"used_percentage": 8,
"remaining_percentage": 92,
"current_usage": {
"input_tokens": 8500,
"output_tokens": 1200,
"cache_creation_input_tokens": 5000,
"cache_read_input_tokens": 2000
}
},
"exceeds_200k_tokens": false,
"rate_limits": {
"five_hour": {
"used_percentage": 23.5,
"resets_at": 1738425600
},
"seven_day": {
"used_percentage": 41.2,
"resets_at": 1738857600
}
},
"vim": {
"mode": "NORMAL"
},
"agent": {
"name": "security-reviewer"
},
"worktree": {
"name": "my-feature",
"path": "/path/to/.claude/worktrees/my-feature",
"branch": "worktree-my-feature",
"original_cwd": "/path/to/project",
"original_branch": "main"
}
}
18 changes: 18 additions & 0 deletions config/claude/statusline-command.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

set -o errexit
set -o nounset

input=$(cat)

# "// empty" produces no output when rate_limits is absent
FIVE_H=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empty')
WEEK=$(echo "$input" | jq -r '.rate_limits.seven_day.used_percentage // empty')
WINDOW=$(echo "$input" | jq -r '.context_window.used_percentage // 0' | cut -d. -f1)

LIMITS=""
[ -n "$WINDOW" ] && LIMITS="${LIMITS:+$LIMITS }cw:$(printf '%.0f' "$WINDOW")%"
[ -n "$FIVE_H" ] && LIMITS="${LIMITS:+$LIMITS }5h:$(printf '%.0f' "$FIVE_H")%"
[ -n "$WEEK" ] && LIMITS="${LIMITS:+$LIMITS }7d:$(printf '%.0f' "$WEEK")%"

[ -n "$LIMITS" ] && echo "$LIMITS" || echo ""
1 change: 1 addition & 0 deletions vscode/User/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
workspaceStorage/
globalStorage/
History/
chatLanguageModels.json
Loading