How woozheng/aicp_cli works
AICP_CLI is a stateless, protocol-driven agent CLI: a user submits a request, the CLI selects local, remote, or Studio mode, and the selected engine returns a response. In local mode, the AICP runtime coordinates LLM requests and generated-code execution; in remote modes, the CLI posts to a configured endpoint. The README describes broad computer, file, and network tasks, while the excerpts show the sandbox and execution machinery but not every capability implementation. Relationships are limited to those shown in excerpts, the source index, or README.
Main entry points: _aicp_llm.py AICP runtime · aicp.py Chat CLI · _llm.py LLM client · __init__.py Envelop and agent
Components 14
CLI and modes
- Application
aicp.py - Chat CLI
aicp.py - Local engine
aicp.py - Remote engine
aicp.py
Agent runtime
- AICP runtime
runtime/_aicp_llm.py - Envelop and agent
core/__init__.py - Prompt builder
runtime/_aicp_llm.py
Code execution
- Code executor
runtime/_aicp_llm.py
Model and endpoints
- Configuration
runtime/_config.py - LLM client
runtime/_llm.py
Other components
- User
- Local computer
- Model API
- Remote endpoint
Connections 13
- User → Chat CLI: enters request
README.md - Application → Configuration: loads configuration
aicp.py - Application → Chat CLI: starts CLI
aicp.py - Chat CLI → Local engine: sends request
aicp.py - Chat CLI → Remote engine: sends request
aicp.py - Local engine → AICP runtime: calls runtime
aicp.py - Remote engine → Remote endpoint: posts request
aicp.py - AICP runtime → Prompt builder: builds prompt
runtime/_aicp_llm.py - AICP runtime → LLM client: requests completion
runtime/_aicp_llm.py - AICP runtime → Code executor: executes code
runtime/_aicp_llm.py - AICP runtime → Envelop and agent: uses protocol types
runtime/_aicp_llm.py - Code executor → Local computer: runs local operations
runtime/_aicp_llm.py - LLM client → Model API: calls model API
runtime/_llm.py