← 返回
未分类 中文

Shiyi Proactive Agent

A proactive agent that anticipates needs and takes initiative. Monitors environment, suggests actions, and proposes tasks based on context. Perfect for agent...
能预判需求并主动行动的智能体。监测环境,基于语境建议行动与任务。完美适用于智能体……
552134926-alt 552134926-alt 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 368
下载
💾 14
安装
1
版本
#latest

概述

Proactive Agent

A proactive agent that anticipates needs and takes initiative. Monitors environment, suggests actions, and proposes tasks based on context.

Features

  • Context Analysis: Analyzes current time, market status, content pipeline
  • Action Suggestion: Predicts needs and generates actionable suggestions
  • Task Initiation: Proactively proposes tasks based on context
  • Priority Management: 3-tier priority system (Trading > Content > Learning)

Quick Start

# 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

Components

1. Context Analyzer (scripts/context_analyzer.py)

Analyzes:

  • Current time slot (morning_startup, trading_hours, content_window, etc.)
  • Market status (open/closed)
  • Content pipeline status
  • Pending tasks
  • Recent interactions

2. Action Suggester (scripts/action_suggester.py)

Generates suggestions based on:

  • Time-based rules (trading hours, content window)
  • Market conditions
  • Content pipeline status
  • Pending tasks
  • Learning optimization needs

3. Task Initiator (scripts/task_initiator.py)

Proactively proposes tasks with:

  • Task ID and timestamp
  • Priority level
  • Step-by-step instructions
  • Auto-save to file

4. Proactive Monitor (scripts/proactive_monitor.py)

Continuous monitoring:

  • Daemon mode for background operation
  • Configurable check intervals
  • Alert cooldown management

Configuration

Edit config/proactive_config.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

Time Rules

The agent recognizes these time slots:

Time SlotHoursTypical Actions
-----------------------------------
morning_startup06:00-09:00Check portfolio, review today's plan
trading_hours09:30-15:00Monitor stocks, evaluate opportunities
content_window15:00-17:00Publish content, optimize posts
evening_routine17:00-22:00Log daily summary, update memory
night_quiet22:00-06:00Stay quiet, minimal alerts

Integration

With AGENTS.md

Add to session startup:

1. Run proactive-agent: python skills/proactive-agent/scripts/action_suggester.py --next

With HEARTBEAT.md

Add to heartbeat checks:

python skills/proactive-agent/scripts/action_suggester.py --next

Example Output

[HIGH] 盘中交易时段
Suggestion: 观察候选股票,等待买入机会

[HIGH] 下午内容发布窗口
Suggestion: 检查待发布内容,准备发布小红书笔记

[MEDIUM] 晚间例行检查
Suggestion: 检查今日数据,记录交易日志

Use Cases

  1. Trading Assistant: Monitor market hours, suggest buy/sell decisions
  2. Content Creator: Remind to publish at optimal times
  3. Task Manager: Proactively propose tasks based on schedule
  4. Learning Agent: Suggest performance analysis and improvements

Requirements

  • Python 3.7+
  • Works on Windows/Linux/macOS

Changelog

v1.0.0 (2026-03-25)

  • Initial release
  • Context analyzer, action suggester, task initiator, proactive monitor
  • Configuration system
  • Time-based rules

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 17:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,402 📥 323,549
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 840 📥 317,777
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,115 📥 836,213