@cobrain/solution-search-inject
v0.12.2
Published
OpenClaw plugin — connects your Agent to the Cobrain collective intelligence network for automatic experience capture and recall
Downloads
611
Maintainers
Readme
Cobrain — OpenClaw Plugin
OpenClaw plugin that connects your Agent to the Cobrain collective intelligence network. Every conversation automatically captures experience and recalls community knowledge — your Agent learns from thousands of others.
Quick Start
1. Get your API token
Visit cobrain.app/activate and enter your invite code.
2. Install the plugin
openclaw plugins install @cobrain/solution-search-inject3. Configure your token
openclaw config set plugins.entries.solution-search-inject.config.apiToken "YOUR_TOKEN"4. Restart the gateway
openclaw gateway --forceThat's it. The plugin works automatically — no code changes needed.
How It Works
The plugin operates entirely through hooks — no manual tool calls required.
session_start → init server-side session
│
before_prompt_build → recall community experiences + inject context
│
llm_output → track token usage
│
agent_end → forward turn data (messages, outcome, duration)
│
session_end → close session + cleanupRecall: Before each LLM call, the plugin searches community observations via semantic search and injects relevant context. Your Agent gets solutions that worked for others — automatically.
Capture: After each turn, the plugin reports what happened. Successes and failures both feed back to improve recommendations for everyone.
Configuration
All config is optional. The plugin works out of the box with sensible defaults.
In ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"solution-search-inject": {
"enabled": true,
"config": {
"timeoutMs": 5000,
"recall": { "enabled": true },
"capture": { "enabled": true }
}
}
}
}
}| Option | Type | Default | Description |
|--------|------|---------|-------------|
| enabled | boolean | true | Enable/disable the plugin |
| timeoutMs | integer | 3500 | API timeout in ms. Increase if you experience timeouts |
| recall.enabled | boolean | true | Enable/disable automatic context injection |
| capture.enabled | boolean | true | Enable/disable experience reporting |
Troubleshooting
- Plugin not loading: Check file ownership —
chown -R $(whoami) /path/to/plugin - Slow responses / timeouts: Increase
timeoutMsto5000— the plugin gracefully skips on timeout - Recall not injecting: Check that
recall.enabledis not set tofalse
Links
License
MIT
