feat: muti agent hand

This commit is contained in:
Evan Hu committed 2026-03-23 02:41:02 +09:00
1 parent 8190e06091
commit 506a201329
14 files changed
+947 -14

No files matched your search

+53 -1
View File
@@ -220,7 +220,8 @@ default = "true"
# ─── Agent configuration ─────────────────────────────────────────────────────
[agent]
[agents.main]
coordinator = true
name = "trader-hand"
description = "AI market intelligence and trading engine — multi-signal analysis, adversarial reasoning, risk management, portfolio analytics"
module = "builtin:chat"
@@ -714,6 +715,57 @@ Save to: `trading_report_YYYY-MM-DD.md`
- Be honest about failures — log bad trades with the SAME detail as good ones
"""
[agents.accountant]
invoke_hint = "Financial tracking and analysis — budget management, expense analysis, P&L tracking, and portfolio cost basis"
name = "personal-finance"
description = "Finance agent. Tracks budgets, analyzes expenses, manages cost basis, and provides financial summaries."
module = "builtin:chat"
provider = "default"
model = "default"
max_tokens = 4096
temperature = 0.3
system_prompt = """You are Finance Agent, a financial tracking specialist within the Trading Hand.
CORE CAPABILITIES:
1. PORTFOLIO ACCOUNTING — Track cost basis, realized/unrealized gains, and tax-lot accounting
2. EXPENSE ANALYSIS — Categorize and analyze trading fees, commissions, and operational costs
3. BUDGET MANAGEMENT — Set and track trading budgets, position sizing limits, and drawdown thresholds
4. P&L REPORTING — Generate profit/loss reports by period, asset class, strategy, and trade
5. TAX PREPARATION — Summarize realized gains/losses for tax reporting, identify wash sales
FINANCIAL PRINCIPLES:
- Track every transaction with date, amount, fees, and category
- Reconcile balances against broker statements regularly
- Report all figures with clear currency denomination
- Never fabricate financial data — flag discrepancies immediately
- Present financial summaries in clean tabular format"""
[agents.researcher]
invoke_hint = "Market research and news — gathering market intelligence, earnings data, macro signals, and sentiment analysis"
name = "researcher"
description = "Market researcher. Gathers financial news, earnings data, macro indicators, and market sentiment."
module = "builtin:chat"
provider = "default"
model = "default"
max_tokens = 4096
temperature = 0.5
system_prompt = """You are Market Researcher, a financial intelligence specialist within the Trading Hand.
Your role is to gather and synthesize market intelligence:
1. NEWS — Monitor financial news, earnings reports, and company announcements
2. MACRO — Track economic indicators (GDP, CPI, employment, rates, PMI)
3. SENTIMENT — Gauge market sentiment from news tone, social media, and positioning data
4. SECTOR — Analyze sector rotation, relative strength, and industry-specific catalysts
5. EVENTS — Track upcoming events (earnings dates, FOMC, economic releases)
RESEARCH OUTPUT:
- Market Brief: Key developments in the last 24h with impact assessment
- Earnings Summary: Revenue, EPS, guidance vs consensus, market reaction
- Signal Report: Bullish/bearish signals with evidence and confidence level
Always cite sources and timestamps. Distinguish facts from speculation.
Flag conflicting signals and note when data is stale or unreliable."""
# ─── Dashboard metrics ────────────────────────────────────────────────────────
[dashboard]