Architecture Overview
+-------------------+
| SimpleAgent.py |
+-------------------+
|
v
+-------------------+
| core/ |
+-------------------+
| agent/ |
| execution/ |
| conversation/ |
| metacognition/ |
| utils/ |
+-------------------+
|
v
+-------------------+
| commands/ |
+-------------------+
Main Components
- SimpleAgent.py: Entry point and CLI interface.
- core/: Main framework logic, split into submodules:
- agent/: Main agent class and run loop manager.
- execution/: Command execution, tool management, summarization.
- conversation/: Conversation and memory management.
- metacognition/: Self-reflection, loop detection, prompt templates.
- utils/: Security, configuration, versioning.
- commands/: Pluggable tools and commands, loaded dynamically.
How It Works
- User provides an instruction via CLI.
- The agent orchestrates conversation, tool use, and memory.
- Tools are loaded on demand from local or remote sources.
- All file operations are sandboxed and secure.
- The agent uses metacognition to reflect, summarize, and avoid loops.