You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful to be able to add some sort of schema which could be applied to notes in a project.
A note could define a schema that enforced its structure:
The schema could be defined in yml in the note fronmatter
A note defined with a particular schema could be evaluated to check if it is valid
We could also define some notes to define an ontology for other notes, as schema notes, with rules, etc, similar to SQL DDL.
For instance: the user could define a schema for notes of type "contact" that defines required properties for notes, such as "First Name" or "Last Name".
The properties could possibly markdown header sections or other types of data.
Why
This would enable users wanting more structure in their notes to assert notes were created with the required information.
Tools could validate the content of a note before or after creation and prompt the AI for any action required
The system could review notes and present any files that are invalid.
What's your primary use case? Are you managing structured data like contacts, meetings, or something else?
Should validation be strict (prevent saving invalid notes) or advisory (show warnings)?
Would you prefer schemas as special notes or separate configuration files?
Are you interested in contributing to the design/implementation?
This is a well-thought-out feature request that aligns with Basic Memory's knowledge management goals. It would benefit from a detailed specification before implementation begins.
@claude the primary use case would be to enable agentic use cases where Basic Memory is the underlying data store. In this case the data needs to be more structured than feeformat notes.
Can you come up with any example use cases that could follow from this?
Great question! Schema support would be transformational for agentic workflows. Here are concrete use cases where structured data in Basic Memory enables autonomous AI systems:
1. Customer Relationship Management (CRM) Agent
Scenario: An AI agent manages customer interactions and maintains structured contact records.
AI Assistant Guidance: Better prompts when agents know expected structure
Migration Support: Schema versioning and data migration as requirements evolve
This would transform Basic Memory from a flexible knowledge store into a structured data platform for reliable agentic workflows, while maintaining its local-first philosophy and simple markdown format.
Activity
claude commentedon Oct 16, 2025
Claude finished @phernandez's task —— View job
Feature Request Triage Complete
Tasks:
Triage Analysis
Issue Classification:
enhancementFeature Summary:
This feature request proposes adding schema support for notes in Basic Memory, allowing users to:
Related Work:
src/basic_memory/schemas/)entity_parser.pyvia thepython-frontmatterlibraryTechnical Considerations:
Architecture Points:
python-frontmatterlibraryImplementation Areas:
src/basic_memory/markdown/entity_parser.py- Frontmatter parsingsrc/basic_memory/markdown/schemas.py- Schema definitionsDesign Questions to Address:
.schema.ymlfiles?)typefield?)Similar Systems Referenced:
Recommended Next Steps:
Specification Phase:
/spec create schema-support)Community Input:
Phased Implementation:
Questions for @phernandez:
This is a well-thought-out feature request that aligns with Basic Memory's knowledge management goals. It would benefit from a detailed specification before implementation begins.
--- | Branch:
claude/issue-375-20251016-2016phernandez commentedon Oct 16, 2025
@claude the primary use case would be to enable agentic use cases where Basic Memory is the underlying data store. In this case the data needs to be more structured than feeformat notes.
Can you come up with any example use cases that could follow from this?
claude commentedon Oct 16, 2025
Claude finished @phernandez's task —— View job
Agentic Use Case Analysis
Tasks:
Great question! Schema support would be transformational for agentic workflows. Here are concrete use cases where structured data in Basic Memory enables autonomous AI systems:
1. Customer Relationship Management (CRM) Agent
Scenario: An AI agent manages customer interactions and maintains structured contact records.
Schema Example:
How it enables agents:
2. Project Task Management Agent
Scenario: An AI agent tracks tasks, milestones, and project status across multiple projects.
Schema Example:
How it enables agents:
3. Research Literature Management Agent
Scenario: An AI agent manages academic papers, extracts insights, and builds citation networks.
Schema Example:
How it enables agents:
4. Meeting Notes and Action Items Agent
Scenario: An AI agent processes meeting transcripts, extracts structured information, and tracks follow-ups.
Schema Example:
How it enables agents:
5. Product Feature Documentation Agent
Scenario: An AI agent maintains structured product documentation, tracking features, requirements, and implementation status.
Schema Example:
How it enables agents:
6. Medical Patient Records Agent (Healthcare context)
Scenario: An AI agent maintains structured patient information following regulatory requirements.
Schema Example:
How it enables agents:
7. Code Review and Bug Tracking Agent
Scenario: An AI agent manages bug reports, code reviews, and technical debt with structured tracking.
Schema Example:
How it enables agents:
Common Themes Across Use Cases
All these scenarios share key benefits from schema support:
Technical Implementation Benefits
For Basic Memory specifically, schema support would enable:
write_note()can validate before persistingcreate_contact(),create_task())This would transform Basic Memory from a flexible knowledge store into a structured data platform for reliable agentic workflows, while maintaining its local-first philosophy and simple markdown format.
View job | Branch:
claude/issue-375-20251016-2153phernandez commentedon Feb 19, 2026
Implemented in #549