Loom/
├── src/loom/ # Package root
│ ├── __init__.py # Loom class & public API
│ ├── config.py # LoomConfig (env + YAML)
│ ├── converters.py # Input format converters
│ ├── helpers.py # Forget / sensitive-field utilities
│ ├── plugins.py # Plugin system (LoomPlugin protocol)
│ ├── prompts.py # Default prompts
│ ├── templates.py # Schema templates & TemplateRegistry
│ ├── core/ # Core cognitive memory system
│ │ ├── agent.py # CogAgent — LLM ↔ SCP tool loop
│ │ ├── llm.py # Async LLM client
│ │ ├── protocol.py # Schema Call Protocol (SCP)
│ │ ├── schema.py # UniversalSchemaDomain & SchemaRegistry
│ │ └── state.py # State, StateManager & SchemaFileManager
│ └── server/ # User-facing interfaces
│ ├── api.py # FastAPI REST service
│ ├── cli.py # Click-based CLI
│ └── web/static/ # Web UI
├── loom-openclaw-plugin/ # OpenClaw Context Engine plugin
├── templates/ # Schema templates (JSON)
│ └── custom/ # User custom templates (git-ignored)
├── schemas/ # Standalone schema files (cross-session)
├── configs/ # Configuration files
├── tests/ # Unit tests
└── examples/ # Example code