PeakWatch · Guide

Claude Code tips: how to run long sessions without babysitting them

Practical habits for longer Claude Code sessions: scope the task, set permissions deliberately, use a context file, checkpoint with commits, and supervise from a distance.

By the upeak team3 min read1 source
WAITING ON YOUWORKINGMIRROR · IDLEYOUR TURNThree sessions, one blocked. The ranked list tells youwhere to look

Key takeaways

  • Write the goal, done-criteria and constraints up front; keep repo facts in CLAUDE.md.
  • Allow reads and tests silently, keep the gate on writes outside the project and anything destructive.
  • Commit at boundaries and supervise from a distance so long sessions can actually be long.

Short Claude Code sessions run themselves. Long ones, the hour-long refactor or the multi-file feature, need a different set of habits, most of which are about setting things up so you can walk away.

Scope the task before you start

A long session with a vague goal wanders. Write the goal, the definition of done and the constraints in the first prompt, and put anything stable about the repo (build commands, conventions, traps) in a CLAUDE.md so it is read every time. The best long sessions are the ones where the agent never has to guess what you meant.

Set permissions deliberately

Decide up front which tools can run without asking: reads and tests, usually. Keep the gate on writes outside the project, installs, network calls and anything destructive. Use Always for the safe repeats so the asks you do get are the ones that matter, and never switch the gate off wholesale for a session you are not watching.

Checkpoint with commits

Ask the agent to commit at natural boundaries with descriptive messages. A long session then becomes a series of small, revertable steps, and reviewing the diff later is a review of commits rather than a wall of changes. If something goes sideways, you reset to the last good one.

Supervise from a distance

The habit that makes long sessions actually long: leave. The session needs you at unpredictable moments for a few seconds each; be reachable for those moments without being tethered. PeakWatch puts the session list on a Galaxy Watch, ranked by which one is waiting, with the tool and arguments in every approval and a countdown that denies if you do not answer. Dictate the next prompt from wherever you are; ask for a summary when you come back.

Review, then trust

Read the diff. Run the tests yourself once. Long sessions earn trust the same way colleagues do, by being right in ways you checked.

PeakWatch is built for this

Your coding agent, on your wrist. Coming soon, free during the beta.

Explore PeakWatch

Questions

How long can a Claude Code session usefully run?
As long as the task is well scoped and checkpointed. Hours are fine; the limit is your plan's usage, which PeakWatch shows with reset times.
Should I run several sessions at once?
Yes for independent tasks, with each in its own working directory. Ranked supervision makes it manageable.
What goes in CLAUDE.md?
Build and test commands, conventions, known traps, and the things you find yourself repeating in prompts.

Sources

  1. Anthropic. Claude Code documentation: best practices for agentic coding. https://docs.claude.com/en/docs/claude-code/overview