Analyze CoPaw Python source modules to understand architecture, data flow, and dependencies for Go reimplementation. Use when the user asks to analyze, study, or understand a CoPaw module before implementing its Go equivalent.
Analysis Progress:
- [ ] Step 1: Identify the target module
- [ ] Step 2: Read source files
- [ ] Step 3: Map architecture
- [ ] Step 4: Generate Go implementation recommendations
Use the module map in reference.md to locate the relevant files. CoPaw has 8 major modules:
agents/react_agent.pyapp/runner/ (runtime, session, chat management)app/channels/ (messaging platforms)agents/tools/ (built-in capabilities)agents/memory/ (ReMe-based recall)providers/ (LLM backends)config/ (Pydantic-based configuration)cli/ (command-line interface)For each target module, read:
__init__.py for public API surfacetests/Produce a structured analysis:
Module Summary
## [Module Name]
### Purpose
[One paragraph: what problem does this solve?]
### Key Classes/Functions
- `ClassName` - [responsibility]
- `function_name()` - [what it does]
### Data Flow
[Mermaid sequence diagram or flowchart]
### Dependencies
- Internal: [other CoPaw modules used]
- External: [third-party libraries]
### State Management
- [What state is stored, where, and how]
### Error Handling
- [How errors are propagated and recovered]
Based on the analysis, recommend:
internal/ package should hold this?For detailed file paths and module relationships, see reference.md.