Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-cartesian-cut-agentic-aigit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-cartesian-cut-agentic-ai/SKILL.md---
name: cartesian-cut-agentic-ai
description: Framework for analyzing control architecture in agentic AI systems, contrasting Cartesian agency with brain-like integrated control. Design patterns for autonomy-robustness-oversight tradeoffs.
version: 1.0.0
author: Hermes Agent
license: MIT
metadata:
source_paper: "arXiv:2604.07745"
paper_title: "The Cartesian Cut in Agentic AI"
authors: "Tim Sainburg, Caleb Weinreb"
published: "2026-04-09"
category: ai-architecture
tags: [agentic-ai, control-architecture, neuroscience-inspired-ai, LLM-agents, brain-inspired-design]
---
# Cartesian Cut in Agentic AI
Framework for analyzing control architecture in agentic AI systems, contrasting Cartesian agency (learned core + engineered runtime) with brain-like integrated control. Provides design patterns for trading off autonomy, robustness, and oversight.
## Core Concept
LLM agents implement a **Cartesian split**: a learned core (the LLM) coupled to an engineered runtime via a symbolic interface. This contrasts with biological brains, which embed prediction within layered feedback controllers calibrated by action consequences.
```
Cartesian Agency (Current LLM Agents):
┌─────────────┐ Symbolic ┌─────────────────┐
│ Learned │◄────Interface────►│ Engineered │
│ Core │ (Text/JSON) │ Runtime │
│ (LLM) │ │ (Tools/Env) │
└─────────────┘ └─────────────────┘
▲ │
└────────── Prediction ────────────┘
Brain-like Integrated Agency:
┌─────────────────────────────────────────────────────┐
│ Layered Feedback Controllers │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Layer 1 │─▶│ Layer 2 │─▶│ Layer 3 │─▶ Action │
│ │(Reflex) │ │(Motor) │ │(Planning)│ │
│ └────┬────┘ └────┬────┘ └────┬────┘ │
│ └─────────────┴─────────────┘ │
│ Prediction embedded in control │
└─────────────────────────────────────────────────────┘
```
## The Cartesian Cut Problem
### What is the Cartesian Cut?
The separation between:
1. **Learned Core**: The LLM that predicts next tokens
2. **Engineered Runtime**: External tools, environment, execution context
3. **Symbolic Interface**: Text/JSON/API calls bridging the two
### Why it Matters
| Aspect | Cartesian | Integrated (Brain-like) |
|--------|-----------|------------------------|
| **Bootstrapping** | ✅ Easy to build | ❌ Hard to initialize |
| **Modularity** | ✅ Clear separation | ❌ Tightly coupled |
| **Governance** | ✅ External oversight | ❌ Opaque control |
| **Sensitivity** | ❌ Brittle to perturbations | ✅ Robust adaptation |
| **Bottlenecks** | ❌ Interface limitations | ✅ Fluid control flow |
| **Autonomy** | ❌ Constrained by interface | ✅ Emergent behavior |
## Three Design Patterns
### 1. Bounded Services
**Concept**: Constrain the Cartesian cut to well-defined, limited scope.
```
┌─────────────────────────────────────────┐
│ Bounded Service │
│ ┌─────────┐ ┌─────────────────┐ │
│ │ LLM │◄────►│ Fixed Runtime │ │
│ │ Core │ │ (Limited API) │ │
│ └─────────┘ └─────────────────┘ │
│ │
│ Scope: Specific task, limited tools │
│ Example: Code completion, SQL query gen │
└─────────────────────────────────────────┘
```
**Characteristics**:
- Narrow, well-defined task scope
- Limited tool set with clear contracts
- External oversight easy to implement
- Low autonomy, high robustness
**Use When**:
- Task is well-understood and bounded
- Safety/oversight is critical
- Tool APIs are stable and limited
### 2. Cartesian Agents
**Concept**: Expand the Cartesian cut with richer interfaces while maintaining separation.
```
┌──────────────────────────────────────────────┐
│ Cartesian Agent │
│ ┌─────────┐ Rich ┌─────────────┐ │
│ │ LLM │◄───Interface──►│ Extensible │ │
│ │ Core │ (Multi-modal)│ Runtime │ │
│ └─────────┘ └─────────────┘ │
│ ▲ │ │
│ └────── State Tracking ──────┘ │
│ │
│ Scope: General tasks, extensible tools │
│ Example: General assistants, coding agents │
└──────────────────────────────────────────────┘
```
**Characteristics**:
- Richer interface (multi-modal, stateful)
- Extensible tool set
- Maintains separation for governance
- Moderate autonomy, moderate robustness
**Use When**:
- Task scope is broad but structured
- Need balance of autonomy and oversight
- Tool set evolves over time
### 3. Integrated Agents
**Concept**: Minimize the Cartesian cut by embedding control within the learned system.
```
┌──────────────────────────────────────────────┐
│ Integrated Agent │
│ ┌───────────────────────────────────────┐ │
│ │ Unified Control Architecture │ │
│ │ ┌─────────┐ ┌─────────┐ ┌───────┐ │ │
│ │ │Predictor│─▶│Controller│─▶│Actor │ │ │
│ │ │ (LLM) │ │(Learned)│ │(Env) │ │ │
│ │ └────┬────┘ └────┬────┘ └───┬───┘ │ │
│ │ └─────────────┴───────────┘ │ │
│ │ Feedback Loop │ │
│ └───────────────────────────────────────┘ │
│ │
│ Scope: Complex adaptive behavior │
│ Example: Embodied agents, robots │
└──────────────────────────────────────────────┘
```
**Characteristics**:
- Prediction and control tightly coupled
- Feedback loops calibrate behavior
- High autonomy, emergent capabilities
- Oversight requires monitoring emergent behavior
**Use When**:
- Task requires adaptive behavior
- Environment is dynamic and uncertain
- Autonomy is valued over direct oversight
## Design Tradeoffs
```
Autonomy
▲
│
Integrated ◄──┼──► Cartesian
Agents │ Agents
│
Robustness ◄───────┼──────► Oversight
│
Bounded ◄─────┴──────► Cartesian
Services Agents (rich interface)
│
▼
Implementation
Complexity
```
## Neuroscience Insights
### Brain Architecture Lessons
1. **Layered Feedback**: Brains use hierarchical feedback controllers
- Reflexes (fast, subcortical)
- Motor control (cortical, learned)
- Planning (prefrontal, deliberative)
2. **Prediction as Control**: Prediction is embedded within control loops
- Not separate from action
- Calibrated by action consequences
3. **No Clear Interface**: No symbolic boundary between "thinking" and "acting"
- Continuous integration
- Distributed representation
### Implications for AI Design
| Brain Feature | AI Implementation |
|---------------|-------------------|
| Layered control | Hierarchical agent architecture |
| Prediction embedded | End-to-end learned policies |
| Feedback calibration | RL with environment feedback |
| Distributed representation | Multi-modal embeddings |
## Implementation Guidelines
### Choosing Your Pattern
```python
def select_pattern(requirements):
"""
requirements: {
'safety_critical': bool,
'task_scope': 'narrow' | 'broad' | 'open',
'environment': 'static' | 'dynamic',
'oversight_need': 'high' | 'medium' | 'low',
'autonomy_desired': 'low' | 'medium' | 'high'
}
"""
if requirements['safety_critical'] or requirements['oversight_need'] == 'high':
if requirements['task_scope'] == 'narrow':
return 'bounded_services'
else:
return 'cartesian_agents'
if requirements['autonomy_desired'] == 'high':
return 'integrated_agents'
return 'cartesian_agents' # default
```
### Interface Design
**For Cartesian Patterns**:
```python
# Rich but structured interface
class AgentInterface:
def observe(self, multi_modal_input) -> Perception:
"""Process sensory input"""
pass
def act(self, action_spec) -> ActionResult:
"""Execute action, return outcome"""
pass
def reflect(self, outcome) -> LearningUpdate:
"""Update from action consequences"""
pass
```
**For Integrated Patterns**:
```python
# Minimal explicit interface
class IntegratedAgent:
def step(self, observation, internal_state) -> (action, new_state):
"""Unified perception-action loop"""
# Internal state includes "thoughts", "plans", "goals"
# No hard boundary between cognition and action
pass
```
## Current LLM Agent Landscape
| System | Pattern | Notes |
|--------|---------|-------|
| ChatGPT Plugins | Bounded Services | Limited tool set, clear API |
| Claude Code | Cartesian Agent | Rich interface, extensible |
| AutoGPT | Cartesian Agent | Tool use loop, stateful |
| Devin | Integrated Agent | Tighter integration, emergent behavior |
## Future Directions
1. **Hybrid Architectures**: Combine patterns for different subsystems
2. **Learned Interfaces**: Reduce Cartesian cut by learning the interface
3. **Feedback Calibration**: Better integration of action consequences
4. **Hierarchical Control**: Multi-level control with different patterns
## References
- Paper: https://arxiv.org/abs/2604.07745
- Categories: cs.AI, q-bio.NC
- Authors: Tim Sainburg, Caleb Weinreb
## Activation Keywords
- Cartesian cut in AI
- agentic AI architecture
- brain-inspired AI design
- LLM agent control
- integrated vs Cartesian agency
- agent autonomy robustness tradeoff
- neuroscience inspired AI agents
- control architecture LLM agents
- Cartesian agency
- integrated agency
- LLM agent design
## Tools Used
- `read`: Read research papers and documentation
- `exec`: Run Python code for agent architecture analysis
- `write`: Save design patterns and implementation results
- `edit`: Modify agent architecture specifications
## Instructions for Agents
When analyzing or designing agentic AI systems using the Cartesian cut framework:
1. **Identify the control pattern**:
- Bounded Services: Narrow scope, limited tools
- Cartesian Agents: Rich interface, extensible tools
- Integrated Agents: Prediction and control coupled
2. **Evaluate design tradeoffs**:
- Autonomy vs. robustness
- Oversight vs. emergence
- Implementation complexity vs. capabilities
3. **Apply neuroscience insights**:
- Layered feedback controllers
- Prediction embedded in control
- Distributed representation
4. **Select implementation approach** based on requirements:
- Safety-critical systems → Bounded Services
- General-purpose → Cartesian Agents
- Adaptive behavior → Integrated Agents
## Examples
### Example 1: Choose Control Pattern
```
User: "帮我设计一个智能客服系统的控制架构"
Agent:
1. 识别需求: 客服任务scope较窄,但需要extensible工具
2. 选择模式: Cartesian Agent - rich interface with extensible tools
3. 应用设计模式: 使用多模态接口(stateful)维持separation
4. 输出: 完整的agent specification with Cartesian split
```
### Example 2: Analyze Existing System
```
User: "分析Devin的控制架构属于哪种模式"
Agent:
1. 识别Devin的特点: tight integration, emergent behavior
2. 分析模式: Integrated Agent - tight coupling of predictor/controller
3. 对比其他模式: prints design tradeoffs for comparison
4. 输出: 架构分析报告 with pattern classification
```