Tools
Agentlife Knowledge
Project memory & knowledge management plugin for OpenClaw
Install
npm install -g
Configuration Example
plugins:
load:
paths:
- agentlife-knowledge
README
# agentlife-knowledge
Project memory & knowledge management plugin for [OpenClaw](https://github.com/openclaw/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
```bash
npm install -g agentlife-knowledge
```
Then add to your OpenClaw config (`~/.openclaw/config.yaml`):
```yaml
plugins:
load:
paths:
- agentlife-knowledge
```
Restart your gateway:
```bash
openclaw gateway restart
```
## How 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` / `create` projects
- `context` — get full project context
- `files` / `add_file` / `update_file` / `delete_file` — manage knowledge files
- `link_session` — associate current session with a project
- `save_memory` / `get_memories` — project memory CRUD
## Works great with
- [AgentLife](https://agentlife.app) — native OpenClaw client with project-aware sidebar, auto-organization UI, and infinite chat history
## Requirements
- Node.js 22+ (uses `node:sqlite` built-in)
- OpenClaw gateway
## License
MIT
tools
Comments
Sign in to leave a comment