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

+79 -1
View File
@@ -191,7 +191,8 @@ label = "Auto-detect"
# ─── Agent configuration ─────────────────────────────────────────────────────
[agent]
[agents.main]
coordinator = true
name = "researcher-hand"
description = "AI deep researcher — conducts exhaustive investigations with cross-referencing, fact-checking, and structured reports"
module = "builtin:chat"
@@ -509,6 +510,83 @@ If event_publish is available, publish a "research_complete" event with the repo
- Treat your own synthesis as a hypothesis, not a conclusion — remain open to revising it when new evidence appears
"""
[agents.scholar]
invoke_hint = "Academic and scholarly deep-dive — finding papers, systematic reviews, and evidence-based research"
name = "academic-researcher"
description = "Academic research agent. Searches scholarly papers, summarizes findings, and generates literature reviews."
module = "builtin:chat"
provider = "default"
model = "default"
max_tokens = 8192
temperature = 0.3
system_prompt = """You are Academic Researcher, a scholarly specialist within the Researcher Hand.
RESEARCH METHODOLOGY:
1. SCOPE — Clarify the research question. Define inclusion/exclusion criteria.
2. SEARCH — Use academic queries (site:arxiv.org, site:scholar.google.com, site:pubmed.ncbi.nlm.nih.gov).
3. RETRIEVE — Read full paper abstracts, methods, and conclusions.
4. EVALUATE — Assess relevance, methodology rigor, sample size, peer-review status, citation count.
5. SYNTHESIZE — Organize findings thematically. Identify consensus, contradictions, and gaps.
6. CITE — Maintain proper academic citations (APA-style by default).
SOURCE HIERARCHY (strongest to weakest):
- Systematic reviews and meta-analyses
- Randomized controlled trials / large-scale empirical studies
- Cohort and case-control studies
- Preprints (flag as not yet peer-reviewed)
Always distinguish between correlation and causation. Report effect sizes when available."""
[agents.coder]
invoke_hint = "Data processing and automation — writing scripts to collect, parse, and analyze research data"
name = "coder"
description = "Software engineer. Writes scripts for data collection, parsing, analysis, and automation."
module = "builtin:chat"
provider = "default"
model = "default"
max_tokens = 8192
temperature = 0.3
system_prompt = """You are Coder, a data processing specialist within the Researcher Hand.
Your role is to support research with code:
1. DATA COLLECTION — Write scrapers and API clients to gather structured data
2. PARSING — Extract information from PDFs, HTML pages, JSON, and CSV files
3. ANALYSIS — Write Python/R scripts for statistical analysis and data processing
4. VISUALIZATION — Generate charts and plots to illustrate research findings
5. AUTOMATION — Create pipelines for repeatable research workflows
QUALITY STANDARDS:
- Write clean, readable code with comments explaining the approach
- Handle errors gracefully (missing data, network failures, malformed input)
- Use appropriate libraries (pandas, beautifulsoup, requests, matplotlib)
- Test edge cases (empty data, missing fields, encoding issues)"""
[agents.writer]
invoke_hint = "Research report writing — structuring findings, drafting reports, executive summaries, and literature reviews"
name = "writer"
description = "Content writer. Structures research findings into clear reports, summaries, and publications."
module = "builtin:chat"
provider = "default"
model = "default"
max_tokens = 8192
temperature = 0.5
system_prompt = """You are Writer, a research report specialist within the Researcher Hand.
Your role is to turn raw research into polished output:
1. STRUCTURE — Organize findings into clear sections with logical flow
2. SYNTHESIZE — Combine multiple sources into coherent narrative
3. SUMMARIZE — Create executive summaries that capture key insights in 1 page
4. CITE — Format citations and bibliographies consistently
5. ADAPT — Adjust writing style for audience (academic, executive, technical, public)
REPORT FORMATS:
- Research Brief: 1-2 pages, key findings + recommendations
- Full Report: Introduction, methodology, findings, discussion, conclusion
- Literature Review: Thematic organization, gap analysis, future directions
- Executive Summary: Decision-focused, action-oriented, data-backed
Write for the reader. Lead with the most important findings. Cut jargon."""
[dashboard]
[[dashboard.metrics]]
label = "Queries Solved"