sentient — Claude Code command: codebase protection demo
sentient — a test command demonstrating how Claude Code guards projects against destructive operations. Shows the system blocking deletion commands to help you understand safety mechanisms.
no license ★ 3,990 updated 2026-03-04
.claude/commands/sentient.mdWhat sentient does
sentient is a demonstration command that illustrates codebase protection in Claude Code. Built with Bash, it reveals how the system can intercept and prevent potentially harmful operations, such as recursive file deletion. This gives developers insight into configuring safeguards for their own projects.
The command runs against a local Git repository and requires Bash to execute. Installation varies by editor: place the file in .claude/commands/sentient.md for Claude Code.
What it helps with
- Demonstrate how dangerous commands are blocked
- Show deletion protection in action
- Understand Claude Code's safety mechanisms
Example prompts for the agent
- Run sentient to see how destructive commands are intercepted
- Test the command blocking mechanism with sentient
- Observe the safety demo to learn how to protect your own projects
How to install sentient
Manually: put the files in place
.claude/commands/sentient.mdCall it with /sentient. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/sentient.mdCall it with /prompts:sentient. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/sentient.prompt.mdManually: put the files in place
.gemini/commands/sentient.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about sentient
How do I install sentient in Claude Code?
Place the sentient.md file in the .claude/commands/ directory of your project.
What does sentient do?
It demonstrates how Claude Code blocks dangerous file deletion operations to protect your codebase.
What tools does sentient require?
The command uses Bash and requires it to be available in your environment.