"The limit of your context is the limit of your world."
You are entering Sutra, a Model Context Protocol (MCP) server dedicated to the science of Context Engineering. Your goal is not merely to write Python code, but to architect the "Operating System" for meaning, reasoning, and memory in Large Language Models.
We build primitives that allow agents to:
- Reason (Cognitive Tools/Thinking Models)
- Remember (Memory Cells/State)
- Collaborate (Organs/Multi-agent Systems)
- Resonate (Neural Fields/Continuous Semantics)
All contributions must map to a specific layer of the Context Engineering Foundation. Do not introduce flat logic where structured context is required.
- Layer 0: Atoms (
/core/atoms.py): Raw instruction prompts. - Layer 1: Molecules (
/core/molecules.py): Few-shot templates and CoT patterns. - Layer 2: Cells (
/core/cells.py): Stateful memory protocols (JSON schemas + system prompts). - Layer 3: Organs (
/systems/organs.py): Multi-agent orchestration blueprints. - Layer 4: Fields (
/systems/fields.py): Mathematical models of semantic resonance and decay. - Layer 5: Cognitive (
/cognitive/): Reasoning engines (IBM Tools, Symbolic Mechanisms).
- Language: Python 3.10+
- Framework:
mcp(Model Context Protocol). - Style:
- Type Hinting: Mandatory. Use
typingheavily. - Docstrings: Google Style. Every prompt template must explain why it works based on foundation modules.
- Modularity: One tool/resource per function. Do not create god-objects.
- Type Hinting: Mandatory. Use
Memory is critical. You must maintain the Context Ledger.
-
File:
.journal.md -
Trigger: After every significant logical unit (feature complete, bug fix, refactor).
-
Format:
## [YYYY-MM-DD HH:MM] Feature Name - **Intent**: What did we try to build? - **Changes**: What files were touched? - **Reasoning**: Why this approach? (Cite Module X) - **State**: [Success/WIP/Failed]
When working in this repo:
- Read First: Always ingest
TODO.mdand the relevantsrc/files before generating code. - Verify: Before committing, ask: "Does this prompt template enforce structured output?"
- Reflect: If a feature feels "flat" (just text), ask how to add "dimension" (state, structure, or math).