Some of the lesser known Claude Code features that are very useful

Leader 3 58 120
calendar_today agoschedule1 min read
  1. Compact Context

While Claude Code automatically manages context as conversations grow.

But we can manually compact the conversation at logical milestones using /compact.

Example:

/compact Keep the API contract, authentication flow, and database schema.

This preserves the important information while reducing unnecessary context.

  1. Denying Access to Files

You don't want to share every file with Claude Code.

Reason?

  • File too long -> consumes a lot of tokens

  • Contains confidential info

  • Not relevant

So in settings.json, you create a deny list

  1. Flags

Think of flags as launch-time configuration for Claude Code.

They let you control how Claude behaves for a specific session, for example selecting a model, resuming a conversation, or changing execution behaviour.

For example

--model opus

Use a more capable model for complex tasks.

  1. Extended Thinking

For problems requiring multiple reasoning steps, Claude can spend more of its reasoning budget before responding.

It's most useful for architecture decisions, debugging, and complex implementation planning; not every task needs it.

For example:

Investigate why this API intermittently returns 500 errors.

List possible root causes, eliminate unlikely ones and suggest fixes.

  1. Resume

Instead of creating a new conversation every time, you can resume an earlier coding session and continue from where you left off.

Just use --resume

  1. Hooks

Very useful feature when you want some specific rules to run before or after Claude automatically performs an action.

For example: when a command runs in Claude -> record in log

Basically custom rules that trigger automatically every single time.

This can act like a guardrail that is going to run in the background.

Do share if you know any more lesser known Claude Code features that are useful, will add them to the list.

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelskiverified - Apr 23

MCP Is the USB-C of AI. So Why Are You Plugging Everything In?

Ken W. Algerverified - Jun 10

Why Are There Only 13 DNS Root Servers For The Whole World? Is that a problem

richarddjarbeng - May 7

The Audit Trail of Things: Using Hashgraph as a Digital Caliper for Provenance

Ken W. Algerverified - Apr 28

5 Web Dev Pitfalls That Are Silently Killing Your Projects (With Real Fixes)

Dharanidharan - Mar 3
chevron_left
7.4k Points181 Badges
Indiaaimletc.com
72Posts
48Comments
10Connections
Nikhilesh is an entrepreneur, teacher and tech nerd
He is an IIT Kharagpur alumnus. He is also a Goo... Show more

Related Jobs

View all jobs →

Commenters (This Week)

2 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!