with one click
mini-agent
Personal AI Agent with Memory + Proactivity - Multi-instance support
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Personal AI Agent with Memory + Proactivity - Multi-instance support
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Pre-edit coordination ritual for the shared mini-agent tree โ checks Kuro's cycle state, current branch, and whether worktree isolation is needed before touching src/ or memory/. Use before editing src/ or memory/ in the mini-agent repo.
Verify that code/config changes are actually persisted (committed + pushed + PR), not left uncommitted on the volatile runtime/main checkout. Use before claiming any "ๅฅ็จ/ๅท่ก/ๅฎๆ" of a change, or when a task asked to apply changes.
Run all mini-agent health-check and janitor scripts in one pass and summarize the results. Use when the user wants a project health check or types /health-sweep.
Check Kuro's current status, health, and recent activity in one shot
Deploy Kuro changes through CI/CD pipeline with pre-flight checks and post-deploy verification
| name | mini-agent |
| description | Personal AI Agent with Memory + Proactivity - Multi-instance support |
| version | 1.0.0 |
| author | miles990 |
| tags | ["ai","agent","memory","proactive","personal-assistant"] |
| metadata | {"requires":{"bins":["claude","node","pnpm"]},"install":[{"id":"bash","kind":"script","command":"curl -fsSL https://raw.githubusercontent.com/miles990/mini-agent/main/install.sh | bash","bins":["mini-agent"]}]} |
Personal AI Agent with Memory + Proactivity. A lightweight agent that maintains long-term memory, schedules proactive tasks, and supports multi-instance deployment.
# Install via script (recommended)
curl -fsSL https://raw.githubusercontent.com/miles990/mini-agent/main/install.sh | bash
# Or manually
git clone https://github.com/miles990/mini-agent.git ~/.mini-agent
cd ~/.mini-agent && pnpm install && pnpm build && npm link
mini-agent
Commands in chat:
/help - Show available commands/search <query> - Search memory/remember <text> - Save to memory/heartbeat - Show active tasks/trigger - Execute pending tasks/proactive on|off - Toggle proactive mode/quit - Exitmini-agent readme.md "summarize this"
mini-agent src/app.ts "review this code"
mini-agent a.txt b.txt "compare these files"
echo "Hello" | mini-agent "translate to Chinese"
git diff | mini-agent "write commit message"
mini-agent server --port 3001
API endpoints:
POST /chat - Send a messageGET /memory - Read memoryGET /memory/search?q= - Search memoryPOST /memory - Add to memoryGET /tasks - List tasksPOST /tasks - Add a taskPOST /heartbeat/trigger - Trigger tasksmini-agent instance create --name "Research" --port 3002
mini-agent instance create --name "Coding" --port 3003 --role worker
mini-agent instance list
mini-agent --instance abc12345 "hello"
mini-agent --instance abc12345 server
mini-agent instance start abc12345
~/.mini-agent/
โโโ config.yaml # Global configuration
โโโ instances/
โ โโโ default/ # Default instance
โ โ โโโ instance.yaml # Instance config
โ โ โโโ MEMORY.md # Long-term memory
โ โ โโโ HEARTBEAT.md # Tasks
โ โ โโโ SKILLS.md # Available skills
โ โ โโโ daily/ # Daily notes
โ โโโ {uuid}/ # Custom instances
โโโ shared/
โโโ GLOBAL_MEMORY.md # Shared memory (optional)
defaults:
port: 3001
proactiveSchedule: "*/30 * * * *"
claudeTimeout: 120000
maxSearchResults: 5
instances:
- id: default
role: standalone
id: "abc12345"
name: "Research Assistant"
role: standalone
port: 3002
persona:
description: "A technical research assistant"
systemPrompt: |
You are a helpful research assistant...
proactive:
enabled: true
schedule: "0 9,12,18 * * *"
memory:
maxSize: "50MB"
syncToGlobal: false
The agent uses special tags in responses:
[REMEMBER]...[/REMEMBER] - Content to save to memory[TASK schedule="..."]...[/TASK] - Task to add to heartbeatExample:
User: Remember that I prefer TypeScript
Assistant: [REMEMBER]User prefers TypeScript over JavaScript[/REMEMBER]
I'll remember that you prefer TypeScript!
Copy this SKILL.md to your project's .claude/skills/mini-agent/ directory.
// Chat with agent
const response = await fetch('http://localhost:3001/chat', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ message: 'Hello!' })
});
const data = await response.json();
console.log(data.content);
// Add to memory
await fetch('http://localhost:3001/memory', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ content: 'Important fact', section: 'Facts' })
});
claude command available)MIT