Possession Mode
Possession mode is a powerful feature that enables Claude (running in the Chucky sandbox) to control your local machine through host tools. This creates a unique “reverse proxy” pattern where:- You send a prompt to Claude in the cloud
- Claude can call tools that execute on your machine
- Results are sent back to Claude to continue the conversation
- Automated coding tasks - Let Claude explore your codebase and make changes
- System administration - Run commands and analyze output
- File processing - Read, transform, and write files
- Development workflows - Build, test, and deploy from natural language
Quick Start
The
--dangerously-skip-permissions flag is required to bypass Claude’s built-in permission prompts for tool execution.Available Host Tools
When possession mode is enabled, Claude has access to these tools:HostBash
Execute any shell command on your machine.command(required): The bash command to executecwd(optional): Working directorytimeout(optional): Timeout in milliseconds (default: 30000)
HostRead
Read file contents from your filesystem. Parameters:path(required): Path to the fileencoding(optional): File encoding (default: utf-8)
HostWrite
Write content to a file. Parameters:path(required): Path to the filecontent(required): Content to writeencoding(optional): File encoding (default: utf-8)
HostEdit
Edit a file by finding and replacing text. Parameters:path(required): Path to the fileold_string(required): String to findnew_string(required): Replacement stringreplace_all(optional): Replace all occurrences (default: false)
HostGlob
Find files matching a glob pattern. Parameters:pattern(required): Glob pattern (e.g.,**/*.ts)cwd(optional): Base directoryignore(optional): Patterns to ignore (default:node_modules/**,.git/**)
HostGrep
Search for patterns in files. Parameters:pattern(required): Regex pattern to search forpath(optional): Directory to search inglob(optional): File pattern filterignoreCase(optional): Case-insensitive searchmaxResults(optional): Maximum results (default: 100)
Example Use Cases
Code Exploration
Automated Refactoring
Build and Test
Git Operations
File Generation
Restricting Tools
You can limit which host tools are available:Security Considerations
- Use in isolated environments - Consider running in a VM or container
- Limit tool access - Use
--allowed-toolsto restrict capabilities - Review before running - For destructive operations, review Claude’s plan first
- Use version control - Have git backups before file modifications
- Network isolation - Be aware that HostBash can make network requests
How It Works
- CLI connects to Chucky sandbox via WebSocket
- Host tools are registered as MCP server tools
- Claude decides when to call tools based on your prompt
- Tool calls are sent back to your CLI
- CLI executes the tool locally and returns results
- Claude continues with the results
Integration with Workspaces
If your project has a deployed workspace, Claude has access to both:- Host tools - Execute on your local machine
- Workspace tools - Execute in the cloud sandbox