agentlife-knowledge
v0.2.0
Published
Project memory & knowledge management plugin for OpenClaw. Persistent projects, chat organization, auto-naming, and context injection across sessions.
Downloads
77
Maintainers
Readme
agentlife-knowledge
Project memory & knowledge management plugin for OpenClaw.
What it does
- Persistent projects — organize sessions into projects with instructions, files, and accumulated memory
- Infinite chats — messages survive session resets, archived in SQLite
- Auto-organization — auto-name chats, auto-route to projects based on content
- Context injection — project files and memories automatically injected into new sessions via bootstrap hooks
- Topic drift detection — agent instructions to split conversations when topics diverge
Install
npm install -g agentlife-knowledgeThen add to your OpenClaw config (~/.openclaw/config.yaml):
plugins:
load:
paths:
- agentlife-knowledgeRestart your gateway:
openclaw gateway restartHow it works
The plugin creates a SQLite database at ~/.openclaw/agentlife/knowledge.db with:
- Projects — named containers with instructions and description
- Project files — knowledge documents (specs, plans, research) attached to projects
- Project memories — auto-saved summaries from session resets
- Chats — persistent chat entries linked to sessions and projects
- Chat messages — full message archive (role, content, model, timestamp)
Bootstrap hooks
On every new session, the plugin checks if it's linked to a project and injects:
- Project instructions and description
- All project files as context
- Recent project memories (last 10)
- System rules for proactive saving, topic drift detection, and context building
Agent tool
The project_manage tool gives the agent actions:
list/get/createprojectscontext— get full project contextfiles/add_file/update_file/delete_file— manage knowledge fileslink_session— associate current session with a projectsave_memory/get_memories— project memory CRUD
Works great with
- AgentLife — native OpenClaw client with project-aware sidebar, auto-organization UI, and infinite chat history
Requirements
- Node.js 22+ (uses
node:sqlitebuilt-in) - OpenClaw gateway
License
MIT
