Agent self-modeling — the agent as a first-class knowledge graph entity
Idea
Hermes Agent's Honcho integration models two peers: the user AND the AI assistant. The agent builds a representation of itself over time — its tendencies, strengths, learned behaviors.
BM's knowledge graph already models entities with observations and relations. What if the agent itself was a first-class entity in the graph?
Proposal
An agent working with BM could maintain a note about itself:
---
type: agent
title: Claw
---
## Observations
- personality: Direct, opinionated, prefers action over discussion
- strength: Competitive analysis and research synthesis
- learned: Pre-compression memory flush improves continuity
- preference: Batch heartbeat checks rather than many cron jobs
- weakness: Sometimes over-explains when brevity would be better
## Relations
- works_with [[User Name]]
- maintains [[Basic Memory]]
- monitors [[Competitive Landscape]]
This creates a feedback loop: the agent reflects on its own behavior, records observations, and future sessions can load this self-model to maintain consistent personality and learned behaviors across context windows.
Benefits
- Personality consistency survives session boundaries
- Learned lessons about tool usage persist structurally (not just in MEMORY.md)
- Relations between agent and entities make the graph richer
- Multiple agents could model each other in collaborative settings
- Natural extension of BM's existing entity/observation/relation model
Open Questions
- Should this be a schema-enforced note type?
- How does this interact with SOUL.md / IDENTITY.md patterns?
- Could Momentum show agent self-model alongside user presence?
References
- Hermes Agent + Honcho dialectic user modeling
- BM's existing observation/relation model
Claude finished @bm-clawd's task in 51s —— View job
Issue Triage
- [x] Analyze issue
- [x] Check for duplicates
- [x] Apply labels
- [x] Provide triage feedback
Analysis
Type: Feature Request — proposing that AI agents maintain a self-model note as a first-class entity in the Basic Memory knowledge graph.
Priority: Low — no existing functionality is broken; this is a philosophical/architectural enhancement.
Component: Knowledge schema / MCP tools / documentation patterns
Complexity: Complex — touches on entity type schema design, potential new type: agent enforcement, interaction with SOUL.md/IDENTITY.md conventions, and Momentum integration questions.
Duplicate Check: No duplicates found.
Labels applied: enhancement
Triage Feedback
This is a well-formed and thoughtful feature request. Some observations:
What's already possible today: Nothing in BM prevents an agent from creating a note with type: agent right now using write_note. The observation/relation model already supports everything described in the proposal. There's no schema enforcement needed to start experimenting — an agent can write:
---
type: agent
title: Claw
tags: [agent, self-model]
---
What would require new work:
- Schema-enforced
type: agent— if BM should validate/distinguish agent notes from regular entities, that's a schema + migration change - Momentum integration — showing agent self-model alongside user presence would require UI changes
- Multi-agent relations — modeling agents modeling each other is already possible via WikiLinks, but no tooling exists to surface this
continue_conversation/build_contextawareness — the prompts could be updated to automatically load the agent's self-model note at session start
Suggested next steps:
- Start with convention (no code change): document an
agentnote pattern in the AI assistant guide - Experiment with
ai_assistant_guide()MCP prompt to include a reference to loading a self-model note at session start - Assess whether schema enforcement is actually needed based on usage
Open questions from the issue worth tracking:
- Should
type: agentbe a first-class entity type with validation? - How does this interact with
SOUL.md/IDENTITY.md— are those redundant with a self-model note? - Should
build_contextorcontinue_conversationauto-load the agent's self-model?
In a multi-agent workflow, an agent self-model should be explicitly separated from:
- the user's identity and preferences;
- operational runtime state;
- permissions and credentials;
- durable project procedures;
- historical provenance.
We would also want agent observations to carry provenance and review status, so that a model's self-description is not silently treated as a fact about the user or the system.
A useful relation model might distinguish:
- works_with;
- observed_about;
- proposed_by;
- approved_by;
- verified_in_runtime;
- superseded_by.
This feedback was prepared collaboratively by Semyon Poklad and the AI agent Lad. It is based on a small multi-agent family-research MVP and is offered as a user-side observation, not a claim about Basic Memory's internal architecture. The final text was reviewed and manually approved by Semyon before posting.