✓ Verified
💻 Development
✓ Enhanced Data
Secondmind
Autonomous three-tier memory with proactive initiative, project tracking, and social intelligence.
- Rating
- 4.7 (303 reviews)
- Downloads
- 25,752 downloads
- Version
- 1.0.0
Overview
Autonomous three-tier memory with proactive initiative, project tracking, and social intelligence.
Complete Documentation
View Source →
SecondMind – Autonomous AI Memory, Initiative & Social Intelligence
When To Use
Activate this skill when the user:- Asks to set up, configure, or check SecondMind status
- Wants to search their knowledge base or recall past conversations
- Asks for proactive suggestions or project ideas
- Mentions memory, remembering, or context from past sessions
- Sends /new or /reset (trigger pre-reset flush!)
- Asks about their mood/emotional patterns or upcoming events
- Sends any SecondMind Telegram command (see below)
First-Run Setup
If the database does not exist at{baseDir}/data/secondmind.db:
bash
node {baseDir}/setup.js
{baseDir}/config.json:
- Set
openrouter.apiKey(required – get one at https://openrouter.ai/keys) - Check
openclaw.sessionsDirmatches their agent's session path - Optional: Enable Telegram notifications
CRITICAL: Pre-Reset Memory Capture
When the user sends /new or /reset:- BEFORE the reset takes effect, run:
bash
node {baseDir}/scripts/flush.js
- Respond with the script's output (e.g. "💾 Session archived.")
- THEN allow the reset to proceed normally
Telegram Commands (Integrated Mode)
WhentelegramMode is "integrated" in config.json, the OpenClaw agent handles
these commands directly. Execute the corresponding script and format the response./smstatus or /es
bash
node {baseDir}/scripts/status.js
/proposals or /ep [filter]
bash
node {baseDir}/scripts/proposals.js [proposed|accepted|rejected|all]
/accept [comment] or /ea [comment]
bash
node {baseDir}/scripts/feedback.js accept <ID...> [comment]
/accept 1 3 5 or /accept all
After accepting, a project is automatically created to track progress.
- Read the proposal's
follow_upfield from the database:
sqlite3 {baseDir}/data/secondmind.db "SELECT follow_up, description FROM proposals WHERE id="
- If there's a follow_up question, ask the user that question
- If the user agrees, start working on the task immediately
- Example flow:
- User:
/accept 5 - Agent: "✅ #5 akzeptiert. Soll ich dir die Guide-Liste direkt zusammenstellen?"
- User: "Ja mach"
- Agent: starts working on the task
/reject [comment] or /er [comment]
bash
node {baseDir}/scripts/feedback.js reject <ID...> [comment]
/reject 2 4 or /reject all
Acknowledge briefly. Don't make a big deal out of it./defer [comment] or /ed [comment]
bash
node {baseDir}/scripts/feedback.js defer <ID...> [comment]
/drop or /drop all older_than
bash
node {baseDir}/scripts/feedback.js drop <ID...>
node {baseDir}/scripts/feedback.js drop all older_than 14d
/drop 2 4, /drop all, /drop all older_than 14d/projects or /pj [filter]
bash
node {baseDir}/scripts/proposals.js # (projects are shown in status)
active (default), completed, all.
Projects are auto-created when proposals are accepted./complete or /done
bash
node {baseDir}/scripts/feedback.js complete <ID...>
/mute or /unmute
bash
node {baseDir}/scripts/feedback.js mute 1d
node {baseDir}/scripts/feedback.js mute 1w
node {baseDir}/scripts/feedback.js unmute
1h, 1d, 1w, 2wNatural Language Feedback
The bot understands natural language feedback on the most recently shown proposals:- "Nimm die ersten zwei, den Rest ignorieren"
- "1 und 3 sind gut, Rest weg"
- "Alle droppen bis auf die Security-Sachen"
/smsearch or /smsr
bash
node {baseDir}/scripts/search.js "<query>" --no-rerank
/mood or /em
Query the database at{baseDir}/data/secondmind.db:
sql
SELECT mood, COUNT(*) as count FROM social_context
WHERE detected_at > datetime('now', '-7 days')
GROUP BY mood ORDER BY count DESC;
/smrun or /smrun
bash
cd {baseDir} && node scripts/ingest.js && node scripts/consolidate.js && node scripts/initiative.js
Standalone Telegram Bot (Alternative Mode)
WhentelegramMode is "standalone", the user runs a separate bot daemon:
bash
node {baseDir}/scripts/telegram-bot.js
Background Jobs (installed by setup.js)
- Ingest: Every 30 min – imports JSONL session transcripts
- Consolidate: Every 6h – LLM extracts knowledge + emotions + events
- Archive: Daily 3:00 AM – promotes mature knowledge to long-term FTS5 index
- Initiative: Every 6h – generates proposals and sends Telegram notifications
Configuration
Edit{baseDir}/config.json:
openrouter.apiKey: OpenRouter API key (REQUIRED)openclaw.sessionsDir: Path to your agent's sessions directorytelegramMode:"integrated"(via OpenClaw) or"standalone"(separate daemon)notifications.enabled:trueto push proposals to Telegramnotifications.telegram.botToken: Your Telegram bot tokennotifications.telegram.chatId: Your Telegram chat IDmodels.*: LLM model assignments (pre-optimized, change only if needed)initiative.reminderCooldownDays: Days before reminding about deferred proposals (default: 7)initiative.maxNudgesPerProposal: Max reminders before auto-archiving (default: 2)initiative.dedupThreshold: Semantic similarity threshold for dedup (default: 0.85)
Troubleshooting
- "Database locked": Cron job running. Wait 30s.
- "OpenRouter error": Check API key + credit balance at openrouter.ai
- "No new data": Check
openclaw.sessionsDirin config.json - Telegram conflict: Two bots polling same token → use integrated mode or create second bot
- Reset:
node {baseDir}/setup.js --reset
Cost
~$0.60-1.65/month via OpenRouter Cloud. See https://openrouter.ai/models for current prices.Installation
Terminal bash
openclaw install secondmind
Copied!
💻Code Examples
### /drop <ID...> or /drop all older_than <duration>
-drop-id-or-drop-all-olderthan-duration.sh
node {baseDir}/scripts/feedback.js drop <ID...>
node {baseDir}/scripts/feedback.js drop all older_than 14d### /mute <duration> or /unmute
-mute-duration-or-unmute.sh
node {baseDir}/scripts/feedback.js mute 1d
node {baseDir}/scripts/feedback.js mute 1w
node {baseDir}/scripts/feedback.js unmuteQuery the database at `{baseDir}/data/secondmind.db`:
query-the-database-at-basedirdatasecondminddb.sql
SELECT mood, COUNT(*) as count FROM social_context
WHERE detected_at > datetime('now', '-7 days')
GROUP BY mood ORDER BY count DESC;Tags
#coding_agents-and-ides
Quick Info
Category Development
Model Claude 3.5
Complexity One-Click
Author emphaiser
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install secondmind
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0