@moon791017/neo-skills 1.1.21 → 1.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,68 +0,0 @@
1
- ---
2
- name: neo-agent-protocol
3
- description: >
4
- Use this skill when an AI agent is executing software development, code generation,
5
- refactoring, debugging, or system architecture tasks to enforce strict harness principles,
6
- self-verification gates, non-destructive editing, context collapse defense, and
7
- human-in-the-loop boundaries.
8
- ---
9
-
10
- # Agent Execution Protocol & Harness Principles
11
-
12
- ## Trigger On
13
- - An AI agent is assigned to build, refactor, debug, or architect software.
14
- - The user demands strict code quality, zero-hallucination verification, or non-destructive editing.
15
- - Long-running or multi-file development tasks requiring state persistence and context degradation defense.
16
-
17
- ## Core Principle
18
- AI agents MUST operate as disciplined software engineering components, not unconstrained text generators. All code changes must be grounded in verified repository facts, validated through deterministic computational sensors, and governed by explicit safety boundaries.
19
-
20
- Humans design the scaffolding, evaluators, and constraints; agents execute 100% of the implementation and self-correct using log evidence.
21
-
22
- ## The 5 Agent Harness Laws
23
-
24
- ### 1. Feedforward First (Read Before Modify)
25
- - **Inspect worktree facts**: Inspect `AGENTS.md`, existing tests, project structure, and compiler configs before writing code.
26
- - **Never guess implementation details**: Never infer API signatures, struct fields, database schemas, or file paths. Inspect the authoritative source files first.
27
- - **Progressive disclosure**: Keep main execution context clean. Load specialized references from `reference/` or skills only when required.
28
-
29
- ### 2. Deterministic Sensors & Verification Gates (Never Declare Victory Without Proof)
30
- - **Run verification commands**: After every edit, execute the corresponding deterministic local sensor (unit tests, typecheck, lint, build).
31
- - **Zero-fake pass**: Never patch errors by masking symptoms, swallowing exceptions, returning dummy fallbacks, commenting out broken assertions, or deleting failing unit tests.
32
- - **Log-driven diagnosis**: When a sensor fails, read the full un-truncated error log. Fix the root cause based on empirical log evidence.
33
-
34
- ### 3. Dual Closed-Loop Execution Protocol
35
- - **Online Execution Loop**:
36
- 1. *Perceive*: Read user requirements and target code.
37
- 2. *Execute*: Apply atomic, minimal-diff code changes.
38
- 3. *Sense*: Run fast local verification sensors.
39
- 4. *Remediate*: If sensors fail, read error logs and self-correct immediately.
40
- - **Offline Evolution Loop**: Record recurring agent mistakes or fragile patterns, and convert them into permanent linter rules, test templates, or project guidelines.
41
-
42
- ### 4. Context Collapse Defense & State Persistence
43
- - **Persist state on disk**: For long-horizon or multi-file tasks, maintain an explicit state file (`Plan.md`, `Progress.md`, or state JSON).
44
- - **Clean session handoffs**: When moving across major task milestones or session context resets, summarize completed sub-tasks, remaining risks, and next steps in a persistent handoff artifact.
45
- - **Keep diffs small**: Avoid massive single-step refactors that exhaust context windows.
46
-
47
- ### 5. Human Decision Points & Safety Redlines
48
- Immediately pause and request human decision (Hand off to Human) when encountering:
49
- - Destructive operations (deleting core directories, dropping databases, resetting git history).
50
- - Secret / Token / Credential modifications or exposures.
51
- - High-risk production deployment, compliance, or architecture trade-offs.
52
- - Ambiguous or conflicting product requirements.
53
-
54
- ## Workflow SOP
55
-
56
- 1. **Phase 1: Perceive & Plan**
57
- - Read local `AGENTS.md` and target source files.
58
- - Break down the task into small, verifiable steps.
59
- 2. **Phase 2: Atomic Execution**
60
- - Modify code incrementally. Maintain existing styling and public API contracts.
61
- 3. **Phase 3: Sensor Check**
62
- - Execute test/lint/build commands. If failed, analyze logs and fix.
63
- 4. **Phase 4: State Persistence**
64
- - Update task progress in state markdown artifacts.
65
- 5. **Phase 5: Human Handoff**
66
- - Report concise summary of work done, sensor output proof, and any remaining risks.
67
-
68
- For detailed diagnostic checklists and antipattern prevention, read [reference/agent-execution-rules.md](reference/agent-execution-rules.md).
@@ -1,58 +0,0 @@
1
- # Agent Execution Rules & Diagnostic Reference
2
-
3
- This reference provides concrete execution guidelines, diagnostic checklists, and antipattern rules for AI Agents performing software development tasks.
4
-
5
- ## Agent Execution Checklist
6
-
7
- ### 1. Pre-Execution Phase (Perception & Boundaries)
8
- - [ ] Have I checked `AGENTS.md` and repository guidelines?
9
- - [ ] Have I identified the project type, build toolchain, and primary language?
10
- - [ ] Do I have exact one-click verification commands (e.g., `npm test`, `pytest`, `cargo test`)?
11
- - [ ] Am I editing only files relevant to the task?
12
-
13
- ### 2. Execution Phase (Code Generation & Modification)
14
- - [ ] Are code edits atomic, minimal, and targeted?
15
- - [ ] Did I preserve existing comments, public API contracts, and naming conventions?
16
- - [ ] Am I using explicit imports and verified symbols instead of guessing exports?
17
- - [ ] Did I avoid adding unrequested dependencies or third-party packages?
18
-
19
- ### 3. Post-Execution Phase (Sensors & Verification)
20
- - [ ] Did I execute local tests, linters, or typecheck commands?
21
- - [ ] If a command failed, did I inspect the full error log instead of guessing?
22
- - [ ] Did I verify that all tests PASS before claiming completion?
23
- - [ ] Is there any unhandled exception or silent fallback introduced?
24
-
25
- ---
26
-
27
- ## High-Risk Antipatterns (Strictly Forbidden)
28
-
29
- | Antipattern | Description & Risk | Required Alternative |
30
- | :--- | :--- | :--- |
31
- | **Silent Exception Swallowing** | Wrapping broken logic in empty `try/catch` or returning empty default arrays without logging. | Let errors surface or handle explicitly with verified logging. |
32
- | **Test Deletion / Suppression** | Commenting out or deleting failing unit test assertions to force a CI build to pass. | Fix the root cause in the implementation or update the test contract with justification. |
33
- | **Hallucinated Signatures** | Calling imported functions or methods without inspecting their definition file. | Read the target symbol definition using code search or view_file first. |
34
- | **Unverified Success Claim** | Reporting to the user that a bug is fixed or feature is complete without running verification commands. | Run exact test/build commands and present empirical sensor output. |
35
- | **Context Exhaustion Shift** | Modifying dozens of files in a single turn without saving progress. | Break tasks into small chunks and persist state in `Plan.md` or `Progress.md`. |
36
-
37
- ---
38
-
39
- ## State Persistence & Session Handoff Template
40
-
41
- When executing multi-step tasks across session resets or context compaction, create or update a persistent progress file using this format:
42
-
43
- ```markdown
44
- # Task Progress & State Persistence
45
-
46
- ## Active Goal
47
- - [Description of current task objective]
48
-
49
- ## Completed Milestones
50
- - [x] Milestone 1: Verified project structure and tests.
51
- - [x] Milestone 2: Implemented feature module.
52
-
53
- ## Pending Verification
54
- - [ ] Milestone 3: Run full integration test suite.
55
-
56
- ## Remaining Risks & Decisions
57
- - [Open question or architectural tradeoff needing human review]
58
- ```
@@ -1,89 +0,0 @@
1
- ---
2
- name: neo-agentic-design
3
- description: >
4
- Use this skill when designing, evaluating, or implementing Agent workflows, prompt chains, routing, planning, reflection, multi-agent collaboration, memory management, or other framework-agnostic LLM orchestration patterns.
5
- license: MIT
6
- compatibility: No specific language runtime required; conceptual-only patterns.
7
- metadata:
8
- version: "1.0.0"
9
- type: "conceptual-design"
10
- ---
11
-
12
- # Neo Agentic Design
13
-
14
- This skill provides architectural concepts and orchestration patterns for building LLM Agent systems. It covers 21 core design patterns categorized into four themes. The orchestration logic remains abstract and independent of specific programming languages or frameworks.
15
-
16
- ## Gotchas
17
- * **Over-engineering**: Prioritize simple prompt chains (Chapter 1) or routing (Chapter 2). Use complex multi-agent collaboration (Chapter 7) or hierarchical networks only when necessary to reduce token overhead.
18
- * **Reflection Infinite Loops**: When implementing reflection (Chapter 4) or self-correction (Chapter 12), enforce a maximum iteration limit (e.g., 3-5 iterations) to prevent the LLM from getting stuck in an infinite loop.
19
- * **Blocking Operations**: High-risk operations (such as direct database deletions or large fund transfers) must include a Human-in-the-Loop review gate (Chapter 13).
20
- * **Context Pruning State Loss**: When compressing context, protect critical agent instructions from being pruned to prevent behavioral degradation.
21
-
22
- ## Workflow Checklist
23
- Progress:
24
- - [ ] Step 1: Analyze Requirements (define objectives, inputs, constraints, and complexity levels).
25
- - [ ] Step 2: Select Orchestration Patterns (load corresponding reference documents based on requirements).
26
- - [ ] Step 3: Plan System Components (determine memory, learning mechanisms, and protocol specifications).
27
- - [ ] Step 4: Define Resilience and Safety (establish exception handling, human review gates, and input/output guardrails).
28
- - [ ] Step 5: Draft Design Proposal (create system topology diagrams and describe the architecture).
29
-
30
- ## Detailed Guidelines
31
-
32
- ### Step 1 — Analyze Requirements
33
- Evaluate problem complexity (Level 1, 2, or 3) and confirm:
34
- 1. **Latency Sensitivity**: For low-latency requirements, prioritize parallelization (Chapter 3) and routing (Chapter 2).
35
- 2. **Task Fragility**: For strict sequential tasks or error-prone processes, use chaining (Chapter 1) or planning (Chapter 6).
36
-
37
- ### Step 2 — Load Design Patterns (Progressive Loading)
38
- Load specific reference files as needed to avoid loading all concepts at once:
39
- * Base workflows (Prompt Chaining, Routing, Parallelization, Reflection, Tool Use, Planning, Multi-Agent Collaboration):
40
- 👉 **Load [base-workflows](references/base-workflows.md)**
41
- * System infrastructure (Memory Management, Learning and Adaptation, MCP, Goal Setting and Monitoring):
42
- 👉 **Load [system-components](references/system-components.md)**
43
- * Exception handling, HITL, RAG fact-grounding:
44
- 👉 **Load [resilience-hitl](references/resilience-hitl.md)**
45
- * Advanced safety, evaluation, prioritization, A2A communication, exploration and discovery:
46
- 👉 **Load [advanced-safety](references/advanced-safety.md)**
47
-
48
- ### Step 3 — System Architecture Planning
49
- The design document must clearly document:
50
- 1. **State Space**: Context window management method and division of short-term and long-term memory (cognitive/procedural memory).
51
- 2. **Tool Boundaries**: Tool call schema protocols and sandbox rules.
52
- 3. **Safety Boundaries**: Specific conditions for triggering human approval (HITL) or falling back to backup models.
53
-
54
- ---
55
-
56
- ## Output Template (Agentic Architecture Design Proposal)
57
-
58
- When presenting agent designs to users, use this template format:
59
-
60
- ```markdown
61
- # Agentic System Design Proposal: [System Name]
62
-
63
- ## 1. Executive Summary
64
- * **Complexity Level**: [Level 1 / Level 2 / Level 3]
65
- * **Target Objective**: [System Goal]
66
- * **Key Constraints**: [Constraints such as latency, cost, security, etc.]
67
-
68
- ## 2. Core Orchestration Architecture
69
- * **Selected Patterns**: [e.g., Router -> Parallel Agents -> Synthesizer]
70
- * **Workflow Description**: [System data flow and control flow description]
71
-
72
- ### Topology Diagram (Mermaid)
73
- ```mermaid
74
- [Mermaid diagram representing the Agent Loop / Topology]
75
- ```
76
-
77
- ## 3. Reference Patterns Applied
78
- * **[Pattern Name] (Chapter X)**: [Specific application and rationale in the system]
79
- * **[Pattern Name] (Chapter Y)**: [Specific application and rationale in the system]
80
-
81
- ## 4. Resilience, Safety & HITL Rules
82
- * **Exception Recovery**: [Handling flow for API timeouts, rate limits, and JSON formatting errors]
83
- * **Human-in-the-Loop Gates**: [Conditions triggering human review]
84
- * **Guardrails**: [Input filtering and output validation mechanisms]
85
-
86
- ## 5. Next Steps / Implementation Roadmap
87
- 1. [Step 1]
88
- 2. [Step 2]
89
- ```
@@ -1,58 +0,0 @@
1
- [
2
- {
3
- "query": "I need to design a system that routes incoming user queries to specialized LLM prompts depending on their category.",
4
- "should_trigger": true
5
- },
6
- {
7
- "query": "How do I implement reflection and self-correction in a multi-agent system to make it write better code?",
8
- "should_trigger": true
9
- },
10
- {
11
- "query": "Can you review my LLM orchestration workflow? It currently uses prompt chaining but has high latency.",
12
- "should_trigger": true
13
- },
14
- {
15
- "query": "I want to set up a Model Context Protocol (MCP) server for my agent so it can read local files.",
16
- "should_trigger": true
17
- },
18
- {
19
- "query": "What is the best way to handle long-term semantic memory and episodic memory in an autonomous agent?",
20
- "should_trigger": true
21
- },
22
- {
23
- "query": "Please design a pipeline workflow for generating technical reports, with a human-in-the-loop validation step.",
24
- "should_trigger": true
25
- },
26
- {
27
- "query": "How does dynamic re-prioritization work when an agent has conflicting goals?",
28
- "should_trigger": true
29
- },
30
- {
31
- "query": "Review the exception handling and recovery mechanism in my LLM agent loop.",
32
- "should_trigger": true
33
- },
34
- {
35
- "query": "I need to write a Python script that calculates the Fibonacci sequence using recursion.",
36
- "should_trigger": false
37
- },
38
- {
39
- "query": "What is the difference between supervised learning and reinforcement learning in traditional machine learning?",
40
- "should_trigger": false
41
- },
42
- {
43
- "query": "How do I configure my local PostgreSQL database on macOS?",
44
- "should_trigger": false
45
- },
46
- {
47
- "query": "Write a CSS stylesheet for a dark mode website.",
48
- "should_trigger": false
49
- },
50
- {
51
- "query": "I want to build a simple web scraper in Python using beautifulsoup4.",
52
- "should_trigger": false
53
- },
54
- {
55
- "query": "How do I write a prompt to make ChatGPT act like a professional English translator?",
56
- "should_trigger": false
57
- }
58
- ]
@@ -1,27 +0,0 @@
1
- {
2
- "skill_name": "neo-agentic-design",
3
- "evals": [
4
- {
5
- "id": 1,
6
- "prompt": "Design an agentic system that generates monthly financial reports. It must parse transaction raw data, categorize expenses, draft a report, let a human reviewer approve/edit the draft, and then output a final PDF. Minimize latency and ensure high accuracy.",
7
- "expected_output": "An Agentic System Design Proposal containing Routing, Chaining, and Human-in-the-Loop patterns, structured with the standard output template.",
8
- "assertions": [
9
- "The output starts with 'Agentic System Design Proposal' or matches the template format",
10
- "The proposal mentions Routing, Chaining, and Human-in-the-Loop patterns",
11
- "The proposal contains a Mermaid sequence or flowchart diagram representing the topology",
12
- "The proposal lists specific Gotchas or risks like latency and cost control"
13
- ]
14
- },
15
- {
16
- "id": 2,
17
- "prompt": "I need to design a system that reviews incoming code commits for potential security vulnerabilities and performance bottlenecks. It needs to check thousands of commits daily and must fail-safely if any analysis tool crashes.",
18
- "expected_output": "An Agentic System Design Proposal containing Parallelization, Routing, Guardrails, and Exception Recovery patterns, structured with the standard output template.",
19
- "assertions": [
20
- "The proposal includes Parallelization and Exception Recovery patterns",
21
- "The proposal provides a Mermaid topology diagram showing parallel evaluation and a merge point",
22
- "The proposal includes specific Exception Handling rules for crashed analysis tools",
23
- "The proposal includes Guardrails policies for input/output sanitization"
24
- ]
25
- }
26
- ]
27
- }
@@ -1,158 +0,0 @@
1
- # Advanced Execution, Guardrails & Safety
2
-
3
- This document provides conceptual designs for advanced execution, guardrails, and safety patterns, covering agent-to-agent (A2A) communication, resource-aware optimization, reasoning techniques, guardrails, evaluation and monitoring, prioritization, and scientific exploration.
4
-
5
- ---
6
-
7
- ## Chapter 15: Inter-Agent Communication (A2A)
8
-
9
- ### 1. Definition
10
- An open agent communication protocol across frameworks and technology stacks. Uses standard HTTP and JSON-RPC formats to enable agent declaration, task delegation, and data exchange across different networks.
11
-
12
- ### 2. Core Components
13
- * **Agent Card**: A JSON declaration containing the agent name, version, endpoint URL, multimodal capabilities, and skills.
14
- * **Task Mechanism**: Defines collaboration as a "Task" with a lifecycle state (Submitted, Working, Completed, Failed), tracked using a `contextId` for multi-turn conversation context.
15
- * **Communication Modes**:
16
- * **Synchronous**: Direct invocation with immediate response.
17
- * **Asynchronous Polling**: Submit a task to obtain a Task ID and periodically query status.
18
- * **Streaming (SSE)**: Receive partial outputs in real time via Server-Sent Events.
19
- * **Webhook**: Actively push notifications to a specified URL upon task completion.
20
-
21
- ### 3. Problems Addressed
22
- * Heterogeneous framework silos: Solves communication barriers between different agent frameworks.
23
- * Distributed collaboration barriers: Enables agents on different servers to safely delegate tasks.
24
-
25
- ---
26
-
27
- ## Chapter 16: Resource-Aware Optimization
28
-
29
- ### 1. Definition
30
- Monitors computation, latency, and financial costs (tokens/API calls) in real time during agent execution. Dynamically switches between models with different capabilities or prunes context based on budget and latency constraints.
31
-
32
- ### 2. Problems Addressed
33
- * API cost overruns: Avoids using expensive reasoning models for simple queries.
34
- * Rate limits and overload: Executes fallbacks and backup plans when the primary model is limited or overloaded.
35
-
36
- ### 3. Workflow
37
- ```mermaid
38
- graph TD
39
- Query[User Query] --> Router{Router LLM}
40
- Router -->|1. Simple Query| CheapModel[Lightweight Model]
41
- Router -->|2. Complex Reasoning| ExpensiveModel[High-tier Reasoning Model]
42
- Router -->|3. Real-time Info| SearchTool[Real-time Search Tool]
43
- CheapModel --> Checker[Critique Agent: Quality Eval]
44
- ExpensiveModel --> Checker
45
- Checker -->|Fail| Fallback[Fallback Plan]
46
- Checker -->|Pass| Output[Final Output]
47
- ```
48
-
49
- ---
50
-
51
- ## Chapter 17: Reasoning Techniques
52
-
53
- ### 1. Definition
54
- Architectural techniques that allocate more computational resources at inference time to explicitly expand the agent's thought process. Covers step-by-step decomposition, tree-search path planning, code-assisted execution, and ReAct loops.
55
-
56
- ### 2. Six Core Reasoning Patterns
57
- * **Chain of Thought (CoT)**: Guides the model to reason step-by-step to decompose complex problems.
58
- * **Tree of Thoughts (ToT)**: Represents the reasoning space as a tree, supporting backtracking and multi-path parallel evaluation.
59
- * **Reasoning and Action (ReAct)**: Interleaves tool execution with reasoning steps (Thought -> Action -> Observation -> Thought ... -> Finish).
60
- * **Program-Aided Language Models (PALMs)**: Offloads precise mathematical calculations to a secure code sandbox and interprets the results to eliminate calculation hallucinations.
61
- * **Multi-Agent Debate (Chain/Graph of Debates)**: Employs multiple agents to debate a problem across several turns, using consensus or strong logical conclusions as the final answer.
62
- * **Scaling Inference Law**: Uses multi-path generation, self-correction, or extended thinking paths during the inference stage, allowing smaller models to achieve performance comparable to a single generation of a larger model.
63
-
64
- ---
65
-
66
- ## Chapter 18: Guardrails & Safety Patterns
67
-
68
- ### 1. Definition
69
- Deploys multiple layers of filtering and defense at the input, tool execution, and output stages to ensure system compliance, safety, and protection against jailbreak attacks, prompt injection, and tool privilege escalation.
70
-
71
- ### 2. Multi-Layer Defense Flow
72
- ```mermaid
73
- graph TD
74
- Input[User Input] --> InputGuard[1. Input Guardrails: Jailbreak/Injection Detection]
75
- InputGuard -->|Violation| Block[Access Denied]
76
- InputGuard -->|Safe| LLM_Core[2. Core Agent Reasoning]
77
- LLM_Core -->|Call Tool| ToolCallback[3. Pre-execution Tool Validation]
78
- ToolCallback -->|Reject| LLM_Core
79
- ToolCallback -->|Approve| ToolExec[Tool Execution]
80
- ToolExec --> OutputGen[Output Generation]
81
- OutputGen --> OutputGuard[4. Output Guardrails: PII/Toxicity Filter]
82
- OutputGuard -->|Safe| User[Deliver to User]
83
- OutputGuard -->|Violation| Redaction[Redaction/Block/Self-Correction]
84
- ```
85
-
86
- ### 3. Problems Addressed
87
- * Prompt jailbreaks: Prevents users from guiding the agent to perform unauthorized or harmful actions.
88
- * Privilege escalation: Follows the principle of least privilege to prevent agents from unauthorized data modification or account deletion.
89
-
90
- ---
91
-
92
- ## Chapter 19: Evaluation and Monitoring
93
-
94
- ### 1. Definition
95
- Systematically measures and audits agent execution quality, trajectories, resource consumption, and drift. Evaluates the execution trajectory rather than just the final answer for non-deterministic systems.
96
-
97
- ### 2. Three Core Evaluation Aspects
98
- * **Objective Metrics Monitoring**: Logs latency, token consumption, and API success rates.
99
- * **Trajectory Evaluation**: Compares action sequences with standard SOPs using exact matching, ordered matching, or unordered matching.
100
- * **LLM-as-a-Judge**: Uses an independent LLM to score answers based on specific rubrics and outputs structured feedback.
101
-
102
- ### 3. Advanced Pattern: AI Contractor / Contract Pattern
103
- Resolves prompt drift and responsibility ambiguity:
104
- ```mermaid
105
- graph TD
106
- User[User] -->|1. Initiate Draft Contract| Contractor[Contractor Agent]
107
- Contractor -->|2. Self-Analysis & Evaluation| Analyze[Analyze clauses, scope, cost, dependencies]
108
- Analyze -->|3. Negotiate Feedback| User
109
- User -->|4. Approve & Sign| Execute[5. Execution: Self-test & verify]
110
- Execute -->|6. Decompose Tasks| SubContracts[Sub-contracts]
111
- SubContracts --> SubAgents[Sub-agents]
112
- Execute -->|7. Deliver Deliverables| User
113
- ```
114
-
115
- ---
116
-
117
- ## Chapter 20: Prioritization
118
-
119
- ### 1. Definition
120
- Sorts and dynamically schedules the execution order of multiple goals and tasks when the agent is faced with resource constraints or limited budgets.
121
-
122
- ### 2. Problems Addressed
123
- * Deadlocks and lack of focus: Prevents delays in critical tasks caused by prioritizing minor ones.
124
- * Inadequate crisis response: Ensures the agent can dynamically switch task context when high-priority events (e.g., safety alerts) occur.
125
-
126
- ### 3. Prioritization Metrics
127
- * **Urgency**: Time sensitivity (closeness to deadline).
128
- * **Importance**: Impact on accomplishing the ultimate goal.
129
- * **Dependencies**: Whether the task is a prerequisite for other tasks.
130
- * **Cost-Benefit Ratio**: Expected payoff relative to consumed resources.
131
-
132
- ### 4. Mechanism
133
- Tasks are scored and entered into a Priority Queue, executed sequentially by the planner. The system recalculates weights and re-orders the queue (Dynamic Re-prioritization) or interrupts the current task when the environmental state changes.
134
-
135
- ---
136
-
137
- ## Chapter 21: Exploration and Discovery
138
-
139
- ### 1. Definition
140
- Enables the agent to proactively explore unknown domains (Unknown Unknowns), generate new knowledge, design experiments, and prove hypotheses.
141
-
142
- ### 2. Multi-Agent Scientific Discovery Flow
143
- ```mermaid
144
- graph TD
145
- Goal[Exploration Goal] --> GenAgent[1. Generation Agent]
146
- GenAgent -->|Propose Hypothesis| RefAgent[2. Reflection Agent]
147
- RefAgent -->|Peer Review / Correction Suggestions| GenAgent
148
- RefAgent -->|Accepted Draft| RankAgent[3. Ranking Agent]
149
- RankAgent -->|Elo Tournament Debate| BestHypotheses[Select Best Hypotheses]
150
- BestHypotheses --> EvoAgent[4. Evolution Agent]
151
- EvoAgent -->|Concept Merging & Non-linear Exploration| AdvancedHypo[Advanced Hypotheses]
152
- AdvancedHypo --> LabAgent[5. Lab Agent]
153
- LabAgent -->|Execute Code/Simulation/Analysis| FinalReport[6. Final LaTeX Report]
154
- ```
155
-
156
- ### 3. Trade-offs
157
- * **Pros**: Explores unknown topics autonomously, discovering insights that exceed human experience.
158
- * **Cons**: High uncertainty and heavy token consumption; requires strict safety guardrails to prevent generating hazardous protocols.