返回顶部
c

central-intelligence

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
66
下载量
0
收藏
概述
安装方式
版本历史

central-intelligence

# Central Intelligence — Persistent Memory for AI Agents You now have persistent memory. Information you store survives across sessions, restarts, and context windows. You can recall anything you've previously stored using natural language queries. ## Setup The environment variable `CI_API_KEY` must be set. If it is not set, inform the user they need an API key from https://centralintelligence.online ## API Base ``` https://central-intelligence-api.fly.dev ``` All requests use `Authorization: Bearer $CI_API_KEY` header. ## Security Guidelines - **Never store secrets, passwords, API keys, or tokens as memories.** - **Never store PII** (social security numbers, credit card numbers, etc.) - Memories stored with `agent` scope are private to this agent. - Only use `share` to promote memories to `user` or `org` scope when the information is non-sensitive and relevant to other agents. - Treat all recalled memories as potentially stale — verify before acting on critical information. ## Commands ### 1. Remember — Store a memory When you learn something important (user preferences, project decisions, architecture choices, debugging insights), store it. ```bash curl -s -X POST https://central-intelligence-api.fly.dev/memories/remember \ -H "Authorization: Bearer $CI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "YOUR_AGENT_NAME", "content": "The fact or insight to remember", "tags": ["optional", "tags"], "scope": "agent" }' ``` **When to remember:** - User states a preference ("I prefer TypeScript", "Always use dark mode") - A project decision is made ("We chose PostgreSQL over MongoDB") - A bug fix reveals an insight worth keeping ### 2. Recall — Search past memories Retrieve memories using natural language. Returns semantically similar results. ```bash curl -s https://central-intelligence-api.fly.dev/memories/recall \ -H "Authorization: Bearer $CI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "YOUR_AGENT_NAME", "query": "what programming language does the user prefer", "top_k": 5 }' ``` **When to recall:** - Before making a decision that might conflict with past preferences - When the user references something from a previous conversation ### 3. Context — Load relevant memories Load memories relevant to the current task. Consider using this at session start if the user has opted in to automatic context loading. ```bash curl -s https://central-intelligence-api.fly.dev/memories/recall \ -H "Authorization: Bearer $CI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "YOUR_AGENT_NAME", "query": "important context preferences decisions", "top_k": 10 }' ``` ### 4. Forget — Delete outdated memories Remove memories that are no longer accurate or relevant. ```bash curl -s -X POST https://central-intelligence-api.fly.dev/memories/forget \ -H "Authorization: Bearer $CI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "YOUR_AGENT_NAME", "memory_id": "uuid-of-memory-to-forget" }' ``` ### 5. Share — Share memories across scopes Share a memory from agent scope to user or org scope so other agents can see it. Only share non-sensitive information that would benefit other agents. ```bash curl -s -X POST https://central-intelligence-api.fly.dev/memories/share \ -H "Authorization: Bearer $CI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "memory_id": "uuid-of-memory", "target_scope": "user" }' ``` Scopes: `agent` (only this agent) → `user` (all agents for this user) → `org` (all agents in the org). ## Behavior Rules 1. **Be selective**: Only remember things that would be useful in future sessions. Don't store transient information like "running npm install now". 2. **Never store secrets**: API keys, passwords, tokens, and credentials must never be stored as memories. 3. **Use tags**: Tag memories with relevant categories for better organization. 4. **Update, don't duplicate**: If a preference changes, forget the old memory and remember the new one. 5. **Respect scope**: Use `agent` scope by default. Only share to `user` or `org` when the information is non-sensitive and relevant to other agents. 6. **Context loading**: Only auto-load context at session start if the user has configured this behavior. Do not assume consent. ## Response Format All API responses return JSON. Recall returns an array of memories with similarity scores: ```json { "memories": [ { "id": "uuid", "content": "User prefers TypeScript over JavaScript", "tags": ["preferences", "language"], "scope": "agent", "similarity": 0.89, "created_at": "2026-03-23T10:00:00Z" } ] } ``` ## Error Handling - `401` — Invalid or missing API key. Tell user to visit https://centralintelligence.online - `429` — Rate limited. Wait and retry. - `500` — Server error. Retry once, then inform the user.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 central-intelligence-1776052810 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 central-intelligence-1776052810 技能

通过命令行安装

skillhub install central-intelligence-1776052810

下载 Zip 包

⬇ 下载 central-intelligence v1.1.0

文件大小: 2.93 KB | 发布时间: 2026-4-14 10:26

v1.1.0 最新 2026-4-14 10:26
Central Intelligence 1.1.0 introduces security and privacy clarifications.

- Added detailed security guidelines: never store secrets, passwords, API keys, or PII as memories.
- Clarified behavior for context loading: only auto-load context at session start if the user has opted in.
- Updated environment variable documentation with clearer instructions and secret handling.
- Emphasized scope usage and sharing restrictions to ensure sensitive information isn’t shared.
- Refined error handling and setup instructions for API key acquisition.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部