How mzpatrick0529-mzyh/claw-code works
This is a Python porting-workspace CLI, not yet a full agent-harness runtime. Its main user workflow is to invoke a CLI command and receive a workspace summary, manifest, or mirrored command/tool inventory; additional commands expose limited runtime simulations and parity reporting. The sampled sources support the summary, session, and several dispatch relationships. Other runtime details are inferred only from documented command surfaces, so uncertain internal wiring is omitted.
Main entry points: main.py CLI dispatcher · query_engine.py Summary engine · port_manifest.py Workspace manifest · commands.py Command inventory
Components 14
CLI workflow
- CLI dispatcher
src/main.py - Summary engine
src/query_engine.py - CLI output
Port inventory
- Workspace manifest
src/port_manifest.py - Port models
src/models.py - Command inventory
src/commands.py - Tool inventory
src/tools.py - Parity audit
src/parity_audit.py
Session state
- Session persistence
src/session_store.py - Transcript state
src/transcript.py
Runtime views
- Prompt runtime
src/runtime.py - Tool pool
src/tool_pool.py - Bootstrap graph
src/bootstrap_graph.py
Other components
- CLI user
Connections 16
- CLI user → CLI dispatcher: invokes
- CLI dispatcher → Workspace manifest: builds manifest
- CLI dispatcher → Summary engine: renders summary
- Summary engine → Workspace manifest: reads workspace
- Summary engine → Command inventory: builds backlog
- Summary engine → Tool inventory: builds backlog
- Summary engine → Session persistence: loads and saves
- Summary engine → Transcript state: updates transcript
- CLI dispatcher → Parity audit: runs audit
- CLI dispatcher → Command inventory: lists or executes
- CLI dispatcher → Tool inventory: lists or executes
- CLI dispatcher → Prompt runtime: runs turn loop
- CLI dispatcher → Tool pool: assembles pool
- CLI dispatcher → Bootstrap graph: builds graph
- Summary engine → CLI output: returns summary
- CLI dispatcher → CLI output: prints result