Skip to content

Instantly share code, notes, and snippets.

View krlohnes's full-sized avatar
💻
writing code probably

Keith Lohnes krlohnes

💻
writing code probably
View GitHub Profile
#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior
#
# What this does:
# Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance
# system prompt instructions that cause the model to cut corners, simplify
# excessively, and defer complicated work.
#