Habr AI→ original

Hidden Features of Claude Code: Hooks, Memory, and Auto-mode in the Source Code

Claude Code's source code contains a whole set of features that Anthropic doesn't document. These include hooks for rewriting commands, automatic approval of…

AI-processed from Habr AI; edited by Hamidun News
Hidden Features of Claude Code: Hooks, Memory, and Auto-mode in the Source Code
Source: Habr AI. Collage: Hamidun News.
◐ Listen to article

Claude Code revealed its secrets. It turned out that Anthropic's tool source code contains functions that are not in the official documentation. Developers who looked into node_modules found hooks for command modification, automatic operation approval, persistent agent memory, and self-learning memory cycles.

What Features Are Hidden in the Source Code

Claude Code documentation tells only part of the story. The codebase contains ready-made solutions for automating routines that usually have to be done manually or bypassed altogether. These features already work now, but Anthropic prefers not to advertise them in official guides. Perhaps because they are still experimental or require deep understanding of the architecture.

  • Hooks that rewrite commands on the fly without session reload
  • Automatic approval of safe operations without dialog confirmation
  • Persistent agent memory between sessions and projects
  • Auto-mode that understands environment descriptions in plain English
  • Self-learning memory cycles and 'dreams' for context preservation
  • Hidden config fields: skills, agents, and permissions that aren't documented at all

How This Works Right Now

All of these capabilities work in production without waiting for an official release. Developers just need to open their own node_modules and extract ready-made JSON configs and examples. Some start working with minimal modifications, while others require deep understanding of Claude Code's internal architecture and its interaction with the environment. A complete technical document was published on Habr: it contains JSON configs, shell hooks, and examples that can be used almost as-is.

'Claude Code's source code is in your node_modules.

There's more specifics, JSON configs, shell hooks, and examples that you can take almost without modifications.'

Why Is This Hidden

The reasons can be varied. Perhaps the API is still unstable or requires additional preparation. It could be that Anthropic deliberately leaves room for experimentation by curious developers without cluttering the documentation. Or it's a balance: power for power-users, simplicity for the mass audience that just wants to write code.

What This Means

Documentation is not the complete source of truth. Powerful functionality can be hidden in plain sight, simply not mentioned in official guides. For those willing to dive into the source code, this opens a path to automation and workflow control. For Anthropic, it's a signal: the community wants more transparency and is ready to explore the source code on its own.

ZK
Hamidun News
AI news without noise. Daily editorial selection from 400+ sources. A product by Zhemal Khamidun, Head of AI at Alpina Digital.

Want to stop reading about AI and start using it?

AI News is a curated feed of AI/tech news. Hamidun Academy teaches you to use AI systematically in your work.

What do you think?
Loading comments…