Claude Sentient
Autonomous development orchestration for Claude Code. Coordinates native tools into a self-driving loop: plan β execute β verify β commit.
Ask AI about Claude Sentient
Powered by Claude Β· Grounded in docs
I know everything about Claude Sentient. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
Claude Sentient
Autonomous development orchestration for Claude Code
Claude Sentient coordinates Claude Code's native capabilities into an autonomous development workflow. It's not a replacement β it's a thin orchestration layer that makes built-in tools work together cohesively.
β οΈ Important Notice
This is an experimental orchestration framework. Claude Sentient provides prompts, profiles, and configurations designed to enhance Claude Code workflows. Results may vary.
- Not a guarantee β These prompts guide Claude but don't guarantee specific outcomes
- Your responsibility β Always review Claude's output before committing changes
- Evolving project β Expect changes between versions
- Native-first β Uses Claude Code's built-in tools, not custom replacements
π€ What is Claude Sentient?
Claude Sentient transforms Claude Code sessions into autonomous development loops:
USER REQUEST β INIT β PLAN β EXECUTE β VERIFY β COMMIT β DONE
β β β β
Profile TaskCreate Work Quality
Detection Items Gates
Philosophy: Claude Code already has task management, planning modes, sub-agents, and memory. We don't reinvent these β we orchestrate them.
β‘ Quick Start
One-Line Install
Bash (Linux/Mac):
curl -fsSL https://raw.githubusercontent.com/thebiglaskowski/claude-sentient/main/install.sh | bash
PowerShell (Windows):
iwr -useb https://raw.githubusercontent.com/thebiglaskowski/claude-sentient/main/install.ps1 | iex
After Installation
/cs-validate # Verify setup
/cs-status # See detected profile
/cs-loop "your task" # Start working
Uninstall
Bash (Linux/Mac):
curl -fsSL https://raw.githubusercontent.com/thebiglaskowski/claude-sentient/main/uninstall.sh | bash
PowerShell (Windows):
iwr -useb https://raw.githubusercontent.com/thebiglaskowski/claude-sentient/main/uninstall.ps1 | iex
Or run locally:
./uninstall.sh # Standard uninstall
./uninstall.sh --dry-run # Preview what would be removed
./uninstall.sh --purge # Also remove learnings.md
./uninstall.sh --keep-settings # Don't touch .claude/settings.json
By default, learnings.md (your decisions/patterns) is preserved and settings.json is backed up to .bak. CLAUDE.md is left for manual removal.
π By the Numbers
| Component | Count | Purpose |
|---|---|---|
| π― Commands | 19 | Slash commands (/cs-*) |
| π Profiles | 9 | Language-specific quality gates |
| π Rules | 15 | Topic-specific standards |
| π Templates | 5 | Governance file templates |
| π¦ Quality Gates | 4 | Lint, test, build, git (with auto-fix) |
| π Loop Phases | 7 | INIT β EVALUATE |
| π£ Hooks | 15 | Session lifecycle, security, teams, tracking |
| π§ͺ Tests | 1043 | Profiles (242), agents (159), hooks (266), commands (93), schemas (214), integration (69) |
| π€ Agent Roles | 9 | Security, devops, frontend, backend, tester, architect, database, docs, build-resolver |
π― Commands
| Command | Purpose | Docs |
|---|---|---|
/cs-loop | Autonomous loop: understand β plan β execute β verify β commit | Details |
/cs-plan | Plan complex tasks before executing (chains to cs-loop) | Command |
/cs-status | Show tasks, git state, profile (can resume work) | Command |
/cs-validate | Validate configuration (can auto-fix issues) | Command |
/cs-learn | Save learnings to file + MCP memory (searchable) | Memory System |
/cs-mcp | Check, register, and validate MCP servers | MCP Integration |
/cs-review | Review pull requests with automated analysis | Command |
/cs-assess | Full codebase health audit (6+ dimensions) | Command |
/cs-init | Create/optimize nested CLAUDE.md architecture | Command |
/cs-ui | UI/UX audit for web projects | Command |
/cs-team | Create/manage Agent Teams for parallel work | Command |
/cs-docs | Generate and manage feature documentation handbook | Command |
/cs-deploy | Deployment readiness check (CI, Docker, env, migrations) | Command |
/cs-sessions | Browse, search, and resume previous Claude Code sessions | Command |
/cs-multi | Configure per-phase model routing for multi-model orchestration | Command |
/cs-debug | Structured debug loop: reproduce β trace β isolate β fix β test | Command |
/cs-log | Logging audit: gaps, unstructured logs, secrets, correlation IDs | Command |
π Profile Detection
Sentient auto-detects your project type and loads appropriate tooling. See .claude-sentient/profiles/ for full configurations.
| Profile | Detected By | Tools | Config |
|---|---|---|---|
| Python | pyproject.toml, *.py | ruff, pytest, pyright | python.yaml |
| TypeScript | tsconfig.json, *.ts | eslint, vitest, tsc | typescript.yaml |
| Go | go.mod, *.go | golangci-lint, go test | go.yaml |
| Rust | Cargo.toml | clippy, cargo test | rust.yaml |
| Java | pom.xml, build.gradle | checkstyle, JUnit | java.yaml |
| C/C++ | CMakeLists.txt, Makefile | clang-tidy, ctest | cpp.yaml |
| Ruby | Gemfile | rubocop, rspec | ruby.yaml |
| Shell | *.sh, *.ps1 | shellcheck | shell.yaml |
| General | (fallback) | auto-detect | general.yaml |
Python Environment Detection
For Python projects, Sentient detects and uses the correct environment:
| Indicator | Environment | How Commands Run |
|---|---|---|
environment.yml | Conda | conda run -n <env> pytest |
.venv/, venv/ | Virtualenv | Uses venv's Python |
poetry.lock | Poetry | poetry run pytest |
pdm.lock | PDM | pdm run pytest |
π The Loop
When you run /cs-loop, Claude Sentient orchestrates:
Phase 1: INIT β Detect profile, load rules, check governance
Phase 2: UNDERSTAND β Classify complexity (simple/moderate/complex)
Phase 3: PLAN β Create tasks via TaskCreate
Phase 4: EXECUTE β Work through tasks, update status
Phase 5: VERIFY β Run quality gates (lint, test, build)
Phase 6: COMMIT β Create checkpoint commit
Phase 7: EVALUATE β Done? Exit. More work? Loop.
π¦ Quality Gates
All gates must pass before committing:
| Gate | Requirement |
|---|---|
| β LINT | Zero errors from linter |
| β TEST | All tests pass |
| β BUILD | Project builds successfully |
| β GIT | Clean working state |
π Native Tools Used
Claude Sentient leverages built-in Claude Code features:
| Feature | Native Tool | How Used |
|---|---|---|
| Task Queue | TaskCreate, TaskUpdate, TaskList, TaskGet | Work tracking |
| Task Control | TaskStop, TaskOutput | Background task timeouts |
| Planning | EnterPlanMode, ExitPlanMode | Complex tasks |
| Sub-agents | Task with subagent_type | Parallel work |
| Memory (File) | .claude/rules/*.md | Persistent learnings |
| Memory (MCP) | search_nodes, open_nodes | Searchable prior decisions |
| Skill Chaining | Skill tool | Commands invoke each other |
| Agent Teams | Team lead + teammates | Parallel multi-instance work |
| Web Tools | WebSearch, WebFetch | Find fixes, fetch changelogs |
| GitHub PR | get_pull_request*, create_review | Full PR workflow |
| GitHub Search | search_code | Find reference implementations |
| Questions | AskUserQuestion | Structured decision options |
| MCP Servers | mcp__* tools | Library docs, GitHub, memory |
π MCP Server Integration
Claude Sentient can leverage MCP (Model Context Protocol) servers for extended capabilities. See full MCP documentation for details.
| Server | Purpose | Auto-Used By |
|---|---|---|
| context7 | Library documentation | /cs-loop INIT (fetches docs for imports) |
| github | GitHub API (PRs, issues, code search) | /cs-loop INIT/VERIFY, /cs-review |
| memory | Searchable knowledge graph | /cs-loop INIT (search prior decisions), /cs-learn |
| filesystem | File system access | Manual |
| puppeteer | Browser automation | /cs-loop VERIFY (web projects) |
Setup MCP Servers
/cs-mcp # Check what's configured vs connected
/cs-mcp --fix # Auto-register servers from settings.json
/cs-mcp --test # Validate servers are responding
Note: MCP servers are registered at the user level (~/.claude.json). Once registered, they're available in all projects.
π Plugins
The installer auto-installs recommended plugins from the Claude Code official marketplace when the claude CLI is available. Plugin installation is non-fatal β if claude isn't found or a plugin fails to install, setup continues normally.
Auto-Installed Plugins
Security Guidance (all projects, user scope):
security-guidance@claude-plugins-official scans file content for security anti-patterns like eval(), pickle.loads(), unsanitized HTML injection, and hardcoded secrets. It complements the bash-validator and file-validator hooks that ship with Claude Sentient by catching patterns at the content level rather than the command level.
LSP Plugins (profile-dependent, project scope):
Each language profile declares a recommended LSP plugin that gives Claude deeper understanding of your code β real-time type information, symbol resolution, and diagnostics that go beyond static file reading.
| Profile | Plugin | What It Adds |
|---|---|---|
| Python | pyright-lsp | Type inference, import resolution, missing attribute detection |
| TypeScript | typescript-lsp | Type checking, module resolution, refactoring support |
| Go | gopls-lsp | Type analysis, interface satisfaction, unused variable detection |
| Rust | rust-analyzer-lsp | Borrow checker insights, trait resolution, macro expansion |
| Java | jdtls-lsp | Class hierarchy, dependency analysis, annotation processing |
| C/C++ | clangd-lsp | Header resolution, compile command awareness, memory safety hints |
| Ruby, Shell, General | β | No LSP plugin (profile tools handle linting directly) |
Recommended Plugins (Optional)
These are not auto-installed but are shown in the installer summary for manual setup:
claude plugin install pr-review-toolkit@claude-plugins-official # Enhanced PR review workflows
claude plugin install ralph-loop@claude-plugins-official # Advanced loop orchestration
Checking Plugin Status
Run /cs-validate to see which plugins are installed and which are missing. The PLUGINS advisory section shows installed, missing, and optional plugins with one-liner install commands.
π Project Structure
your-project/
βββ .claude/
β βββ commands/cs-*.md # 15 slash commands
β βββ hooks/*.cjs # 15 hook scripts (security, teams, tracking)
β βββ agents/*.md # 9 native agent definitions
β βββ skills/*/ # 3 skills with references/ subdirectories
β βββ settings.json # Hook + team configuration
β βββ rules/*.md # Path-scoped rules + learnings
βββ .claude-sentient/ # Claude Sentient project files
β βββ profiles/*.yaml # 9 language profiles
β βββ schemas/*.json # 12+ JSON schemas
β βββ templates/ # Governance templates
β βββ documentation/ # Feature documentation
β βββ examples/ # Example CLAUDE.md templates
β βββ test-utils.js # Shared test infrastructure
π οΈ Common Workflows
Workflow 1: Feature Development
# 1. Start with planning for complex features
/cs-plan "add JWT authentication"
# Claude explores codebase, creates a plan, asks for approval
# After approval, you can execute immediately or later:
# 2. Execute the plan
/cs-loop "implement the JWT auth plan"
# Claude: INIT β detects TypeScript profile
# PLAN β creates tasks with dependencies
# EXECUTE β implements auth module, tests, docs
# VERIFY β runs eslint, vitest
# COMMIT β creates checkpoint "feat: add JWT authentication"
Workflow 2: Bug Fix
# For simpler bugs, go straight to loop
/cs-loop "fix the race condition in user login #142"
# Claude automatically:
# - Fetches issue #142 details via MCP github
# - Investigates the code
# - Creates minimal fix
# - Runs tests
# - Commits with "fix: resolve login race condition (closes #142)"
Workflow 3: Code Review + Fix
# 1. Review a PR
/cs-review 47
# Claude analyzes PR #47, provides detailed feedback with file:line refs
# 2. If issues found, fix them
/cs-loop "address review comments on PR #47"
Workflow 4: Codebase Health Check
# 1. Full assessment
/cs-assess
# Claude provides scores (1-10) for:
# - Architecture, Code Quality, Security
# - Performance, Tech Debt, Test Coverage
# - UI/UX (for web projects)
# 2. Address issues
/cs-loop "fix all immediate priority items from assessment"
Workflow 5: Learning from Mistakes
# Claude makes a mistake, you correct it
> "Don't use any types in this project"
# Save the learning for future sessions
/cs-learn pattern "No any types" "Use explicit types, never any"
# Or Claude proposes it after correction:
# "Should I add a rule to prevent this?"
Workflow 6: Resuming Work
# Check where you left off
/cs-status
# Shows: Profile, Tasks (3 pending, 1 in progress), Git state
# Continue from where you stopped
/cs-loop "continue" # Or just describe what's next
Workflow 7: UI/UX Audit (Web Projects)
# For React/Vue/Next.js projects
/cs-ui
# Claude audits against modern design standards:
# - Spacing (8px grid), Typography, Colors
# - Components, Accessibility, Responsiveness
# - Provides before/after code examples
Workflow 8: Context Architecture
# Create CLAUDE.md for a new project
/cs-init
# Claude analyzes project, detects tech stack, creates:
# - Root CLAUDE.md (overview, quality philosophy, tech stack)
# - Nested CLAUDE.md files for significant directories
# - Zero-tolerance quality philosophy injected by default
# Or optimize an existing monolithic CLAUDE.md
/cs-init # Detects existing CLAUDE.md, offers to split into nested files
Workflow 9: Parallel Work with Agent Teams
# For large tasks across multiple packages/modules
/cs-loop "refactor auth across all packages"
# cs-loop detects 6 independent tasks across 3 packages
# Offers team mode: "3 parallel teammates. Use Agent Teams?"
# If yes: spawns teammates, each owns a package
# Lead coordinates, teammates work in parallel
# Quality gates enforced via TeammateIdle/TaskCompleted hooks
# Or create a team manually
/cs-team "investigate performance bottleneck from 3 angles"
# Check team status
/cs-team --status
# Stop and cleanup
/cs-team --stop
Workflow 10: MCP Server Setup
# First time setup
/cs-mcp --fix # Auto-register servers from settings.json
/cs-mcp --test # Verify all servers respond
# Now /cs-loop will:
# - Fetch library docs via Context7
# - Link commits to GitHub issues
# - Search prior decisions from Memory
π£ Hooks
Claude Sentient includes 15 hook scripts that integrate with Claude Code's hook system:
| Hook | Event | Purpose |
|---|---|---|
session-start.cjs | SessionStart | Initialize session, detect profile, create state |
session-end.cjs | SessionEnd | Archive session, cleanup state files |
context-injector.cjs | UserPromptSubmit | Detect topics (auth, test, API), inject context |
bash-validator.cjs | PreToolUse (Bash) | Block dangerous commands (rm -rf /, fork bombs) |
file-validator.cjs | PreToolUse (Write/Edit) | Protect system paths, SSH keys, credentials |
post-tool-observer.cjs | PostToolUse (Write/Edit/Bash) | Track changes, suggest lint, record gate results |
agent-tracker.cjs | SubagentStart | Track subagent spawning |
agent-synthesizer.cjs | SubagentStop | Synthesize agent results, record history |
pre-compact.cjs | PreCompact | Backup state before context compaction |
dod-verifier.cjs | Stop | Verify Definition of Done, save final state |
teammate-idle.cjs | TeammateIdle | Quality check before teammate goes idle |
task-completed.cjs | TaskCompleted | Validate deliverables before task completion |
worktree-lifecycle.cjs | WorktreeCreate/WorktreeRemove | Write context into new worktrees; log removals |
config-watcher.cjs | ConfigChange | Log settings changes; alert on hooks section edits |
Hooks are configured in .claude/settings.json and installed automatically.
π§ͺ Tests
Test suites validate hooks, profiles, commands, agents, schemas, and cross-module integrity:
# Profile validation (242 tests) β schema compliance, gates, infrastructure, cross-profile consistency
node .claude-sentient/profiles/__tests__/test-profiles.js
# Hook tests (266 tests) β security, I/O contracts, Agent Teams, context predictions
node .claude/hooks/__tests__/test-hooks.js
# Command validation (93 tests) β frontmatter, structure, auto-fix, deploy, skill chaining
node .claude/commands/__tests__/test-commands.js
# Schema validation (214 tests) β JSON schema structure, profile/agent/gate compliance, cross-module integrity
node .claude-sentient/schemas/__tests__/test-schemas.js
# Integration tests (69 tests) β cross-file references, hook chain flow, install/uninstall parity, doc consistency, plugin parity, MCP degradation
node .claude-sentient/integration/__tests__/test-integration.js
All core test suites use shared .claude-sentient/test-utils.js with built-in assert β zero external dependencies.
π Governance Files
Created automatically on first /cs-loop run:
| File | Purpose |
|---|---|
STATUS.md | Current progress, what's done/next |
CHANGELOG.md | Version history |
DECISIONS.md | Architecture decisions (ADRs) |
.claude/rules/learnings.md | Decisions, patterns, learnings |
π§ Self-Improvement
Claude Sentient includes a self-improvement mechanism. See Self-Improvement for details.
"After every correction, Claude proposes a rule update so it doesn't make that mistake again."
Learnings are stored in .claude/rules/learnings.md and persist across sessions.
π Documentation
Core Docs
| File | Purpose |
|---|---|
| CLAUDE.md | Main instructions (comprehensive reference) |
| STATUS.md | Current progress |
| CHANGELOG.md | Version history |
| DECISIONS.md | Architecture decisions |
Reference
| Directory | Contents |
|---|---|
| profiles/ | Language-specific quality gate configurations |
| rules/ | Topic-specific coding standards (API design, security, etc.) |
| templates/ | Governance file templates |
π€ Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run
/cs-validateto verify - Submit a pull request
π License
MIT β Use freely, contribute back.
See LICENSE for details.
β οΈ Disclaimer
This software is provided "as is", without warranty of any kind. Claude Sentient is an experimental tool that provides prompts and configurations for Claude Code. The developers are not responsible for any issues arising from its use, including but not limited to code changes, data loss, or unintended behavior. Always review AI-generated output before applying changes to your codebase.
π§ Claude Sentient β Orchestrating Claude Code's native capabilities for autonomous development
