A proactive agent that anticipates needs and takes initiative. Monitors environment, suggests actions, and proposes tasks based on context.
bash
# Get next suggested action
python scripts/action_suggester.py --next
# Analyze current context
python scripts/context_analyzer.py --json
# Propose tasks
python scripts/task_initiator.py --propose
scripts/context_analyzer.py)#Analyzes:
scripts/action_suggester.py)#Generates suggestions based on:
scripts/task_initiator.py)#Proactively proposes tasks with:
scripts/proactive_monitor.py)#Continuous monitoring:
Edit config/proactive_config.yaml:
yaml
proactive_level: 7 # 1-10, higher = more proactive
monitor_interval: 300 # Check interval in seconds
alert_cooldown: 1800 # Alert cooldown in seconds
priority_weights:
trading: 10
content: 8
tasks: 6
learning: 4
routine: 3
The agent recognizes these time slots:
Time SlotHoursTypical Actionsmorning_startup06:00-09:00Check portfolio, review today's plantrading_hours09:30-15:00Monitor stocks, evaluate opportunitiescontent_window15:00-17:00Publish content, optimize postsevening_routine17:00-22:00Log daily summary, update memorynight_quiet22:00-06:00Stay quiet, minimal alerts
Add to session startup:
text
1. Run proactive-agent: python skills/proactive-agent/scripts/action_suggester.py --next
Add to heartbeat checks:
text
python skills/proactive-agent/scripts/action_suggester.py --next
text
[HIGH] 盘中交易时段
Suggestion: 观察候选股票,等待买入机会
[HIGH] 下午内容发布窗口
Suggestion: 检查待发布内容,准备发布小红书笔记
[MEDIUM] 晚间例行检查
Suggestion: 检查今日数据,记录交易日志