Skip to main content
Give an Agent memory, but label the drawers before it starts collecting every paperclip.

1. Motivation

A useful Agent needs a bounded data surface, explicit tools, and durable notes. This workshop builds those pieces from HeavenBase primitives without requiring an API key or a separate orchestration runtime.

2. Reconstruct a Workspace

Create a version-2 manifest with one Preset, three requested extensions, and one user Entity:
The replay registers a compatible durable workspace and leaves active selection unchanged. The manifest contains schema and construction, not row data.

3. Write and Query Data

The same workspace supports typed Python expressions, Mongo-style mappings, and query_json. Use explain() when the Agent or operator needs routing evidence.

4. Register a Scoped Profile

Profiles choose Tool groups, Entity visibility, Skill visibility, and serialization.
Profile registration writes through the Context-owned ModuleService. It does not create a second plugin registry.

5. Build the Agent Toolkit

The Toolkit is an in-memory object until explicitly registered in an application workspace. Its profile limits the Entity surface exposed to an Agent.

6. Add Flat Memory

Memory entries are normal HeavenBase rows owned by the optional Memory extension. They are inspectable and queryable through the same workspace boundary.

7. Add Versioned Project State

Use flat Memory for searchable notes and Memstate for versioned project keypaths. Neither surface silently persists an LLMSession; LLM session persistence remains a separate boundary.

Summary

  • Version-2 manifests reconstruct a workspace shell without rows.
  • MCP profiles bound the Agent’s Tools, Entities, Skills, and output format.
  • Memory and Memstate persist through ordinary workspace Entities.
  • Toolkit registration and LLM session persistence remain explicit decisions.

Further Exploration

Related resources: