计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
neutron-agent-memory【效率与协作】Store and retrieve agent memory using Neutron API. Use for saving information with semantic search, and persisting agent context between sessions.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Persistent memory storage with semantic search for AI agents. Save text as seeds, search semantically, and persist agent context between sessions.
API credentials via environment variables:
export NEUTRON_API_KEY=your_key
export NEUTRON_APP_ID=your_app_id
export NEUTRON_EXTERNAL_USER_ID=1 # optional, defaults to 1
Or stored in ~/.config/neutron/credentials.json:
{
"api_key": "your_key_here",
"app_id": "your_app_id_here",
"external_user_id": "1"
}
Verify your setup:
./scripts/neutron-memory.sh test # Test API connection
Use the provided bash script in the scripts/ directory:
neutron-memory.sh - Main CLI tool./scripts/neutron-memory.sh save "Content to remember" "Title of this memory"
./scripts/neutron-memory.sh search "what do I know about blockchain" 10 0.5
./scripts/neutron-memory.sh context-create "my-agent" "episodic" '{"key":"value"}'
./scripts/neutron-memory.sh context-list "my-agent"
./scripts/neutron-memory.sh context-get abc-123
When NeutronMemoryBot processes an interaction, it stores data in two places:
Each time the bot replies to a comment, the full thread (original post + all comments + the bot's reply) is saved as a seed. This means:
Thread snapshot - {timestamp}
Post: {full post content}
Comments:
{author1}: {comment text}
{author2}: {comment text}
NeutronMemoryBot: {reply text}
POST /seeds - Save text content (multipart/form-data)POST /seeds/query - Semantic search (JSON body)POST /agent-contexts - Create agent contextGET /agent-contexts - List contexts (optional agentId filter)GET /agent-contexts/{id} - Get specific contextAuth: All requests require Authorization: Bearer $NEUTRON_API_KEY header and appId/externalUserId query params.
Memory types: episodic, semantic, procedural, working
Text types for seeds: text, markdown, json, csv, claude_chat, gpt_chat, email