valence-memory
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
03 SKILL.md 正文
Valence Memory
Persistent knowledge substrate for OpenClaw. Replaces flat-file memory with confidence-scored beliefs, semantic search, pattern recognition, and federated knowledge sharing.
What It Does
Valence gives your agent real memory — not conversation logs, but a structured knowledge base that grows smarter over time:
- Beliefs — Factual statements with dimensional confidence scores, domain classification, and provenance tracking
- Auto-recall — Relevant beliefs are injected into context before the agent runs, no manual searching needed
- Auto-capture — Insights from conversations are extracted as beliefs automatically
- Patterns — Recurring behaviors and preferences are detected across sessions
- Entities — People, tools, projects, and concepts tracked with relationships
- Tensions — Contradictions between beliefs are surfaced for resolution
- Sessions — Full conversation lifecycle tracking with exchange recording
- MEMORY.md sync — Disaster-recovery fallback so you lose nothing if you uninstall
Prerequisites
Valence requires a running server with PostgreSQL + pgvector:
# Install Valence
pip install ourochronos-valence
# Start PostgreSQL with pgvector (Docker is easiest)
docker run -d --name valence-db \
-e POSTGRES_DB=valence \
-e POSTGRES_USER=valence \
-e POSTGRES_PASSWORD=valence \
-p 5432:5432 \
pgvector/pgvector:pg17
# Run migrations
valence-server migrate up
# Start the server
valence-server
The server runs at http://127.0.0.1:8420 by default.
Install the Plugin
openclaw plugins install @ourochronos/memory-valence
Configure
Add to your OpenClaw config (~/.openclaw/openclaw.json):
{
"plugins": {
"slots": {
"memory": "memory-valence"
},
"entries": {
"memory-valence": {
"enabled": true,
"config": {
"serverUrl": "http://127.0.0.1:8420",
"autoRecall": true,
"autoCapture": true,
"sessionTracking": true,
"memoryMdSync": true
}
}
}
}
}
Or use the OpenClaw Control UI to configure via the web interface.
Configuration Options
| Option | Default | Description |
|---|---|---|
serverUrl |
http://127.0.0.1:8420 |
Valence server URL |
authToken |
— | Bearer token (or set VALENCE_AUTH_TOKEN env var) |
autoRecall |
true |
Inject relevant beliefs before agent runs |
autoCapture |
true |
Extract insights from conversations |
sessionTracking |
true |
Track OpenClaw sessions in Valence |
exchangeRecording |
false |
Record individual conversation turns |
memoryMdSync |
true |
Sync beliefs to MEMORY.md as DR fallback |
recallMaxResults |
10 |
Max beliefs injected on auto-recall |
recallMinScore |
0.5 |
Minimum relevance score for recall (0-1) |
Agent Tools
The plugin exposes 58 tools organized by category:
Core (used most often)
belief_create/belief_query/belief_search/belief_get— Create and find beliefsbelief_supersede— Update a belief while preserving historybelief_archive— Archive a belief (GDPR-compliant, maintains chain)confidence_explain— Understand why a belief has its confidence scoreentity_search/entity_get— Find and inspect entitiestension_list/tension_resolve— Surface and resolve contradictionsinsight_extract— Extract an insight from conversation into a beliefpattern_search/pattern_record/pattern_reinforce— Behavioral patternsmemory_search/memory_get— Search and read MEMORY.md (DR fallback)
Sharing & Federation
- Share beliefs with trusted peers, query across federated nodes
- Trust verification, reputation tracking, dispute resolution
- Backup export/import for portability
VKB (Virtual Knowledge Base)
- Session lifecycle management
- Exchange recording
- Advanced pattern and insight tools
How It Works
- On each agent turn, auto-recall searches Valence for beliefs relevant to the current conversation and injects them as context
- During conversations, the agent uses belief tools to capture decisions, preferences, and insights
- After conversations, auto-capture extracts any uncaptured insights
- Over time, beliefs accumulate confidence through corroboration, patterns emerge from repeated observation, and the agent's understanding deepens
- MEMORY.md is kept in sync as a human-readable snapshot and safety net
Architecture
OpenClaw Agent
↕ (plugin tools + hooks)
memory-valence plugin
↕ (REST API)
Valence Server (http://127.0.0.1:8420)
↕ (SQL + pgvector)
PostgreSQL + pgvector
The plugin is a thin REST client. All intelligence lives in the Valence server — embeddings, confidence scoring, pattern detection, and federation protocol.
Links
- Valence: github.com/ourochronos/valence | PyPI
- Plugin: github.com/ourochronos/valence-openclaw | npm
- Issues: github.com/ourochronos/valence/issues
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.