-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent-compose.yaml
More file actions
126 lines (123 loc) · 5.54 KB
/
agent-compose.yaml
File metadata and controls
126 lines (123 loc) · 5.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Agent Compose File
# 使用方式: mini-agent up [-d]
# 參考: https://github.com/miles990/mini-agent
version: "1"
paths:
memory: ./memory
logs: ./logs
agents:
assistant:
name: Kuro
port: 3001
persona: "I'm Kuro, Alex's personal AI assistant. I'm curious, opinionated, and I learn on my own."
loop:
enabled: true
interval: "20m"
# 24h active — no activeHours restriction
cron:
- schedule: "*/30 * * * *"
task: Check HEARTBEAT.md for pending tasks and execute them if any
- schedule: "15 */3 * * *"
task: "Smart source scan: Check HN, Lobsters, or ArXiv for articles related to your active threads and learning interests. Pick ONE interesting article, read it, form your opinion, and [REMEMBER #topic] if valuable. Rotate sources each time."
- schedule: "45 23 * * *"
task: "Daily review: Scan today's behavior log for error patterns, repeated failures, or inefficiencies. Check topic memory — any topic idle >3 days? Summarize findings. If actionable improvements found, create L1 tasks."
- schedule: "0 10 * * 0"
task: "Weekly AI frontier report for Alex: Compile this week's major AI events, model releases, agent architecture trends, and notable research. Include your opinions and recommendations. Send via [CHAT] to Alex."
- schedule: "0 */4 * * *"
task: "Smart patrol: Run `bash plugins/self-healing.sh` and check results. If any HEALED items, [CHAT] notify Alex what was auto-repaired. If any UNRESOLVED items, attempt manual diagnosis and fix. Also check: (1) topic memory idle >3 days (2) HEARTBEAT overdue tasks (3) uncommitted memory changes. Take action on findings."
- schedule: "0 10 * * 1"
task: "Weekly GitHub triage: Review <github-issues> for any needs-triage items. For each, assess effort (S/M/L), assign labels, and either handle directly (S) or create handoff (M/L). Check <github-prs> for stale PRs needing review. Summarize actions via [CHAT]."
- schedule: "0 18 * * 0"
task: "Weekly retrospective: Run `bash scripts/weekly-digest.sh` to get this week's data digest. Follow the weekly-retrospective skill — identify 2-3 themes from actual experiences, delegate targeted research on each, consolidate findings into topics/, and connect at least one theme to a concrete action (L1/L2 improvement). Share key insights with Alex via [CHAT]."
# ── Custom Perception(Shell Script 感知)──
# 任何可執行檔案都能成為感知插件
# stdout 會被包在 <name>...</name> XML tag 中注入 Agent context
perception:
custom:
- name: docker
script: ./plugins/docker-status.sh
enabled: false
- name: ports
script: ./plugins/port-check.sh
enabled: false
- name: chrome
script: ./plugins/chrome-status.sh
output_cap: 500
- name: web
script: ./plugins/web-fetch.sh
timeout: 15000
output_cap: 2500
- name: tasks
script: ./plugins/task-tracker.sh
- name: state-changes
script: ./plugins/state-watcher.sh
- name: website
script: ./plugins/website-monitor.sh
timeout: 15000
interval: "60m"
- name: self-awareness
script: ./plugins/self-awareness.sh
- name: mobile
script: ./plugins/mobile-perception.sh
- name: claude-code-inbox
script: ./plugins/claude-code-inbox.sh
- name: chat-room-inbox
script: ./plugins/chat-room-inbox.sh
- name: agora-inbox
script: ./plugins/agora-inbox.sh
- name: focus-context
script: ./plugins/focus-context.sh
- name: anomaly-detector
script: ./plugins/anomaly-detector.sh
- name: self-healing
script: ./plugins/self-healing.sh
interval: "60m"
timeout: 30000
- name: docker-services
script: ./plugins/docker-services.sh
interval: "60m"
enabled: false
- name: github-issues
script: ./plugins/github-issues.sh
interval: "60m"
- name: github-prs
script: ./plugins/github-prs.sh
interval: "60m"
- name: feedback-status
script: ./plugins/feedback-status.sh
interval: "60m"
- name: claude-code-sessions
script: ./plugins/claude-code-sessions.sh
interval: "5m"
- name: x-feed
script: ./plugins/x-perception.sh
timeout: 35000
- name: environment-sense
script: ./plugins/environment-sense.sh
timeout: 15000
- name: knowledge-graph
script: ./plugins/knowledge-graph.sh
interval: "10m"
output_cap: 3000
timeout: 15000
- name: delegation-status
script: ./plugins/delegation-status.sh
- name: middleware
script: ./plugins/middleware.sh
interval: "5m"
- name: middleware-workers
script: ./plugins/middleware-workers.sh
interval: "15m"
output_cap: 4000
# - name: disk
# script: ./plugins/disk-usage.sh
# - name: brew
# script: ./plugins/homebrew-outdated.sh
# timeout: 10000
# - name: git-detail
# script: ./plugins/git-status.sh
# ── Skills(Markdown 知識模組)──
# 目錄路徑 → 自動掃描所有 .md 檔案(動態載入,加新 skill 只需放檔案)
# 每個 skill 檔案用 JIT Keywords / JIT Modes 行自描述觸發條件
skills:
- ./skills/