Skip to content

Developer Recipes

GD2BK1NG edited this page Jan 27, 2026 · 1 revision

Developer Recipes

Short, practical guides for common development tasks

These recipes provide quick solutions for common tasks in Syntra Kernel.


🍳 Add a New Lobe

  1. Create file in cortex/
  2. Implement Lobe trait
  3. Register in cortex/mod.rs
  4. Add to scheduler

🍳 Add a New Agent

registry.register("my_agent", MyAgent::new());

🍳 Add a New SL2 Command

sl2.register("world.custom.update", handler);

🍳 Add a New World‑Model Entity

world.entity.create:
  id: "product_42"
  type: "product"

🍳 Add a New Memory Handler

Implement:

SemanticHandler
EpisodicHandler
ProceduralHandler

🍳 Add a New Simulation Module

sandbox.register_simulator("my_sim", MySim::new());

🍳 Add a New Constraint

constraint:
  must_not_exceed_budget(50)

🌟 Summary

Developer recipes accelerate:

  • prototyping
  • extension
  • experimentation
  • plugin development

Clone this wiki locally