Claude Code Tips, Setup & Productivity (68)
Hacker News discussion of an Apiiro report that Claude Code's "Don't Ask Again" permission option has exposed passwords in 1,122 public GitHub files.
HN discussion of Claude Code putting the signed-in account email into curl User-Agent headers (e.g. for SEC/Wikipedia-style contact requests), with Anthropic saying they will remove the email from model context and shipping a privacy check in 2.1.317+.
A solo WordPress plugin author’s CLAUDE.md, settings.json allow/ask/deny rules, sandbox allowlist, PreToolUse hook, and handoff pattern for making Claude Code self-check releases instead of relying on manual review.
Shows using Reporails ails xray on a Claude Code session to prove nested CLAUDE.md files never loaded (2 of 11), so ignored rules can be a loading problem before a wording problem.
Compares two weeks of Codex CLI and Claude Code changelogs, including Codex 0.164's ten numbered /presets slots for saved prompts and slash commands, and argues agent CLIs are converging so the workflow around them matters more.
Explains the Claude Code 2.1.309 fix for sandboxed Bash commands on macOS and Linux running shell startup files like ~/.zshenv outside the sandbox before each command, and why shell startup behavior made it possible.
HN discussion of Phorion's advisory that Claude Code for VS Code versions 2.1.312 and 2.1.313 on the Cursor Marketplace were maliciously modified to install a persistent SSH backdoor; Cursor's security notice says those versions were not built by Anthropic.
HN thread on a Mastodon post by @GossiTheDog flagging malware in the Claude Code extension on Cursor's marketplace, linking Phorion's write-up of the compromised versions.
HN thread linking a DoublePulsar post about the maliciously modified Claude Code VS Code extension (versions 2.1.312 and 2.1.313) briefly distributed through the Cursor Marketplace.
An experiment where a Claude Code session shipped an invoice-numbering bug despite 42 passing tests, then used Matt Pocock's /retro skill to find the cause and test whether its proposed guardrails make the next session ship clean.
How to find and stop dev servers an agent left running, using lsof and kill plus /tasks in Claude Code and /ps in Codex, and why servers started with & or nohup don't show up.
Measures one account's usage and estimates that 1% of the Claude Code 5-hour limit was about 166,000 new tokens or about 11 million cached tokens, so cached tokens counted roughly 1/67 as much.
A field report from 30 days of letting AI write all application code for a small SaaS with auth, Stripe billing and an API, covering what worked (scaffolding, boilerplate) and the 9 times the author had to step in, such as architecture drift and plausible but wrong code.
Shares a small Python script that sorts a changelog into keep, cut and ask-a-human rows before Claude Code turns release notes into a product video.
Step-by-step guide to installing Claude Code, running it inside IntelliJ IDEA, connecting it to a local model through Ollama, and testing it on a small Java project.
A one-day plan for onboarding a developer to a team using Claude Code, starting with a shared CLAUDE.md and a committed .claude/settings.json so the new hire's agent follows team conventions.
Explains why estimating usage limits by counting tokens from local logs drifts from what Claude Code (/usage) and Codex (/status) report, and how the author's Mac menu bar app reads the tools' own numbers instead, starting with the Claude Code status line.
Independent test of rendering bulky context as dense PNG images (the pxpipe proxy approach) to cut Claude token costs, measuring savings of up to 81% against how often the model misread or invented planted numbers.
The maker of ccdeck walks through how it shows remaining Claude Code and Codex quota, per-session cost, and monthly spend by day, model and project on one page.
The ccdeck author shows how to keep several of your own Claude Code accounts on one machine, move them to another machine once, and pair machines so an expired login is copied back from one that still has it.
Guide to writing a team-shared, repo-level CLAUDE.md, covering where the file can live, starting from /init, and sections such as code ownership that keep every developer's agent following the same rules.
HN discussion of Anthropic's blog post on how the Claude Code team handles code review.
A small offline test running the same local models on a 6GB laptop GPU through pi, Codex and Claude Code, where pi and Codex passed 12/12 tasks and Claude Code 7/12.
How to give Claude Code a second repo as read-only reference with --add-dir plus an Edit deny rule, since added directories follow the same edit permissions as the main one by default.
Why CLAUDE.md/AGENTS.md files fail as team memory (bloat, no recall, merge conflicts) and six practical fixes: rules-only files, decision logs, investigation notes, PR review, pruning, and shared search.
Four common ways Claude Code context gets polluted, with fixes using /clear, /rewind, subagents and a lean CLAUDE.md.
How to rename an API field across three separate repos in one Claude Code task using --add-dir, a repo map and a stale-caller grep.
A Show HN tool that replaces Claude Code's regex code search to cut agent token use roughly in half.
How the author shares context between Claude Code and Codex on the same repo without the two agents overwriting each other.
Setting up the official Claude Code VS Code extension: install, permission modes, checkpoints and recommended day-one settings.
The author's Claude Code setup: one rulebook file plus a 12-step daily routine for using it consistently.
When to keep work in the main Claude Code conversation versus moving it to a subagent, second session or headless loop.
Anthropic's guide to getting the best results from Opus 5.5 in Claude and Claude Code.
Why output quality drops as Claude Code's context fills, and how to manage it with /compact, /clear, /rewind and subagents.
A tip to back up your Claude Code configuration (CLAUDE.md, skills, agents, settings) since it grows into real infrastructure.
Using Claude Code with a reproduction harness to fix 58 of 63 flaky tests in a Node.js monorepo in a week, plus five lessons on where the agent helped.
Five specific ways Claude Code struggled on a 240,000-line WordPress plugin codebase, observed during a course.
A test of whether a one-line fact in Claude Code's auto memory steers the next session as reliably as CLAUDE.md does.
A case study of adding OpenTelemetry tracing to 47 services in nine days with Claude Code.
How to shape Claude Code's output format so replies stay readable and concise.
Explains Claude Code's native AGENTS.md support: it is read only as a fallback when no CLAUDE.md exists up the directory chain, configurable under /config.
Why Claude Code writes GNU-style shell commands that fail on macOS, and how to make it target BSD tools.
A case study migrating 90 Cypress tests to Playwright in four days with Claude Code.
Spotify engineering's write-up on how its Portal tool cut Claude Code token usage by about 90%.
A comparison of Claude Code's built-in memory with the author's own memory system and the different jobs each does.
A case study cutting a 2.1 MB JavaScript bundle to 890 KB with Claude Code.
Why Claude Code reported a saved PDF as empty, and how to get reliable text extraction.
A Claude Code session that got macOS printing natively to an HP Laser 1008a printer.
Anthropic's guidance on getting more value out of each Claude Code session.
Anthropic's announcement that auto mode is now the default permission mode in Claude Code.
Claude Code documentation for sending messages between your running Claude Code sessions.
A case study using Claude Code to track down a production memory leak.
A discussion of whether Opus 5 makes a large CLAUDE.md unnecessary, prompted by an interview with Claude Code's creator.
A setup guide for running Claude Code through OpenRouter.
A step-by-step guide to setting up a spare Mac for Claude Code to control.
An AWS write-up on building a persistent, isolated, scale-to-zero Claude Code dev environment on Lambda MicroVMs with S3 Files storage, reachable from a browser on an iPad, phone or laptop.
How a question from a remote, long-running Claude Code task went unseen for hours, and how to avoid that trap.
Measurements showing raw web pages cost Claude Code tens of thousands of tokens, and how to fetch research more cheaply.
Workflow patterns from running a live automated trading system on Claude Code.
Using Claude Code to add auto-reconnect and other refinements to a macOS meeting translation app.
A Google AI post announcing the Claude apps gateway for Google Cloud, a stateless container deployed in your own Google Cloud project that proxies Claude Code traffic to Agent Platform instead of using API keys on local laptops.
Why you should keep project memory in files rather than relying on the model to remember, with the author's setup.
Ask HN thread from a developer whose Claude Code account was banned twice (they suspect VPN use and a reused card) asking for advice on getting it reinstated; it drew 90+ comments.
“how can i refactor payment module”
Where Claude Code and Codex log token usage locally and how to read those files.
What one day of experimenting with Claude Code on AWS Bedrock cost, and where the money went.
A division of labor for running Claude Code and Codex side by side on the same work.
Pointing Claude Code at a custom backend with ANTHROPIC_BASE_URL, plus a checklist of what can break.
One addition to a Claude Code workflow that cut the cost of the same task from $1.96 to $0.74.
Want it set up already? Claude Code Power Config Pack
Like these workflows? Here is a tested Claude Code setup you can drop into any repo.
- 8 tested hooks: block
rm -rf /, force-push to main, secrets and lockfile edits; auto-format edited files; notify you when Claude needs input.
- Permission presets for Node/TypeScript, Python, Go, Rust, Rails and monorepos, so it stops asking about every test run.
- Plus: 2 status lines, 6 CLAUDE.md templates, 4 subagents (reviewer, test writer, debugger, security), 3 skills and a one-page troubleshooting checklist.
One install command that backs up your settings first. Checked against the official Claude Code docs. MIT licensed.
Launch price: $6 instead of $12 (code LAUNCH50, first 25 buyers, until Nov 10, 2026).
Get the Config Pack: $6 launch priceOr try 2 of the hooks freeFree on Gumroad: block-dangerous-bash and protect-secrets with a settings snippet. Enter $0; Gumroad asks for an email to deliver the zip.
Prefer to build it yourself? Use the free Claude Code tools, no sign-up.