darwin-agents 0.7.1 → 0.8.0
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.
- package/README.md +33 -1
- package/dist/src/cli/evolution-flags.d.ts +40 -0
- package/dist/src/cli/evolution-flags.d.ts.map +1 -0
- package/dist/src/cli/evolution-flags.js +106 -0
- package/dist/src/cli/evolution-flags.js.map +1 -0
- package/dist/src/cli/evolve.d.ts +10 -1
- package/dist/src/cli/evolve.d.ts.map +1 -1
- package/dist/src/cli/evolve.js +93 -8
- package/dist/src/cli/evolve.js.map +1 -1
- package/dist/src/cli/index.js +13 -0
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/run.d.ts.map +1 -1
- package/dist/src/cli/run.js +38 -69
- package/dist/src/cli/run.js.map +1 -1
- package/dist/src/evolution/build-loop.d.ts +20 -0
- package/dist/src/evolution/build-loop.d.ts.map +1 -0
- package/dist/src/evolution/build-loop.js +67 -0
- package/dist/src/evolution/build-loop.js.map +1 -0
- package/dist/src/evolution/enabled-state.d.ts +59 -0
- package/dist/src/evolution/enabled-state.d.ts.map +1 -0
- package/dist/src/evolution/enabled-state.js +122 -0
- package/dist/src/evolution/enabled-state.js.map +1 -0
- package/dist/src/evolution/loop.d.ts +46 -0
- package/dist/src/evolution/loop.d.ts.map +1 -1
- package/dist/src/evolution/loop.js +119 -1
- package/dist/src/evolution/loop.js.map +1 -1
- package/dist/src/evolution/parse-score.d.ts +35 -0
- package/dist/src/evolution/parse-score.d.ts.map +1 -0
- package/dist/src/evolution/parse-score.js +115 -0
- package/dist/src/evolution/parse-score.js.map +1 -0
- package/dist/src/evolution/tracker.d.ts +13 -0
- package/dist/src/evolution/tracker.d.ts.map +1 -1
- package/dist/src/evolution/tracker.js +34 -0
- package/dist/src/evolution/tracker.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/memory/postgres-memory.d.ts.map +1 -1
- package/dist/src/memory/postgres-memory.js +1 -0
- package/dist/src/memory/postgres-memory.js.map +1 -1
- package/dist/src/memory/sqlite-memory.d.ts.map +1 -1
- package/dist/src/memory/sqlite-memory.js +1 -0
- package/dist/src/memory/sqlite-memory.js.map +1 -1
- package/dist/src/types.d.ts +45 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/agents/analyst.d.ts +0 -11
- package/dist/agents/analyst.d.ts.map +0 -1
- package/dist/agents/analyst.js +0 -78
- package/dist/agents/analyst.js.map +0 -1
- package/dist/agents/blog-writer.d.ts +0 -13
- package/dist/agents/blog-writer.d.ts.map +0 -1
- package/dist/agents/blog-writer.js +0 -59
- package/dist/agents/blog-writer.js.map +0 -1
- package/dist/agents/critic.d.ts +0 -11
- package/dist/agents/critic.d.ts.map +0 -1
- package/dist/agents/critic.js +0 -57
- package/dist/agents/critic.js.map +0 -1
- package/dist/agents/index.d.ts +0 -15
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js +0 -31
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/investigator-critic.d.ts +0 -10
- package/dist/agents/investigator-critic.d.ts.map +0 -1
- package/dist/agents/investigator-critic.js +0 -78
- package/dist/agents/investigator-critic.js.map +0 -1
- package/dist/agents/investigator.d.ts +0 -13
- package/dist/agents/investigator.d.ts.map +0 -1
- package/dist/agents/investigator.js +0 -105
- package/dist/agents/investigator.js.map +0 -1
- package/dist/agents/marketing.d.ts +0 -13
- package/dist/agents/marketing.d.ts.map +0 -1
- package/dist/agents/marketing.js +0 -59
- package/dist/agents/marketing.js.map +0 -1
- package/dist/agents/researcher.d.ts +0 -11
- package/dist/agents/researcher.d.ts.map +0 -1
- package/dist/agents/researcher.js +0 -68
- package/dist/agents/researcher.js.map +0 -1
- package/dist/agents/writer.d.ts +0 -9
- package/dist/agents/writer.d.ts.map +0 -1
- package/dist/agents/writer.js +0 -47
- package/dist/agents/writer.js.map +0 -1
- package/dist/cli/create.d.ts +0 -11
- package/dist/cli/create.d.ts.map +0 -1
- package/dist/cli/create.js +0 -104
- package/dist/cli/create.js.map +0 -1
- package/dist/cli/evolve.d.ts +0 -13
- package/dist/cli/evolve.d.ts.map +0 -1
- package/dist/cli/evolve.js +0 -69
- package/dist/cli/evolve.js.map +0 -1
- package/dist/cli/index.d.ts +0 -13
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -84
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/init.d.ts +0 -12
- package/dist/cli/init.d.ts.map +0 -1
- package/dist/cli/init.js +0 -68
- package/dist/cli/init.js.map +0 -1
- package/dist/cli/run.d.ts +0 -7
- package/dist/cli/run.d.ts.map +0 -1
- package/dist/cli/run.js +0 -371
- package/dist/cli/run.js.map +0 -1
- package/dist/cli/status.d.ts +0 -7
- package/dist/cli/status.d.ts.map +0 -1
- package/dist/cli/status.js +0 -123
- package/dist/cli/status.js.map +0 -1
- package/dist/core/agent.d.ts +0 -53
- package/dist/core/agent.d.ts.map +0 -1
- package/dist/core/agent.js +0 -172
- package/dist/core/agent.js.map +0 -1
- package/dist/core/runner.d.ts +0 -75
- package/dist/core/runner.d.ts.map +0 -1
- package/dist/core/runner.js +0 -255
- package/dist/core/runner.js.map +0 -1
- package/dist/evolution/loop.d.ts +0 -100
- package/dist/evolution/loop.d.ts.map +0 -1
- package/dist/evolution/loop.js +0 -424
- package/dist/evolution/loop.js.map +0 -1
- package/dist/evolution/multi-critic.d.ts +0 -58
- package/dist/evolution/multi-critic.d.ts.map +0 -1
- package/dist/evolution/multi-critic.js +0 -326
- package/dist/evolution/multi-critic.js.map +0 -1
- package/dist/evolution/notifications.d.ts +0 -32
- package/dist/evolution/notifications.d.ts.map +0 -1
- package/dist/evolution/notifications.js +0 -92
- package/dist/evolution/notifications.js.map +0 -1
- package/dist/evolution/optimizer.d.ts +0 -64
- package/dist/evolution/optimizer.d.ts.map +0 -1
- package/dist/evolution/optimizer.js +0 -223
- package/dist/evolution/optimizer.js.map +0 -1
- package/dist/evolution/patterns.d.ts +0 -63
- package/dist/evolution/patterns.d.ts.map +0 -1
- package/dist/evolution/patterns.js +0 -297
- package/dist/evolution/patterns.js.map +0 -1
- package/dist/evolution/safety.d.ts +0 -76
- package/dist/evolution/safety.d.ts.map +0 -1
- package/dist/evolution/safety.js +0 -182
- package/dist/evolution/safety.js.map +0 -1
- package/dist/evolution/tracker.d.ts +0 -48
- package/dist/evolution/tracker.d.ts.map +0 -1
- package/dist/evolution/tracker.js +0 -163
- package/dist/evolution/tracker.js.map +0 -1
- package/dist/index.d.ts +0 -32
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -35
- package/dist/index.js.map +0 -1
- package/dist/memory/index.d.ts +0 -32
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/index.js +0 -49
- package/dist/memory/index.js.map +0 -1
- package/dist/memory/postgres-memory.d.ts +0 -52
- package/dist/memory/postgres-memory.d.ts.map +0 -1
- package/dist/memory/postgres-memory.js +0 -515
- package/dist/memory/postgres-memory.js.map +0 -1
- package/dist/memory/sqlite-memory.d.ts +0 -36
- package/dist/memory/sqlite-memory.d.ts.map +0 -1
- package/dist/memory/sqlite-memory.js +0 -380
- package/dist/memory/sqlite-memory.js.map +0 -1
- package/dist/providers/anthropic.d.ts +0 -20
- package/dist/providers/anthropic.d.ts.map +0 -1
- package/dist/providers/anthropic.js +0 -82
- package/dist/providers/anthropic.js.map +0 -1
- package/dist/providers/claude-cli.d.ts +0 -35
- package/dist/providers/claude-cli.d.ts.map +0 -1
- package/dist/providers/claude-cli.js +0 -153
- package/dist/providers/claude-cli.js.map +0 -1
- package/dist/providers/index.d.ts +0 -39
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/index.js +0 -58
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/ollama.d.ts +0 -17
- package/dist/providers/ollama.d.ts.map +0 -1
- package/dist/providers/ollama.js +0 -64
- package/dist/providers/ollama.js.map +0 -1
- package/dist/providers/openai.d.ts +0 -19
- package/dist/providers/openai.d.ts.map +0 -1
- package/dist/providers/openai.js +0 -75
- package/dist/providers/openai.js.map +0 -1
- package/dist/providers/types.d.ts +0 -62
- package/dist/providers/types.d.ts.map +0 -1
- package/dist/providers/types.js +0 -9
- package/dist/providers/types.js.map +0 -1
- package/dist/types.d.ts +0 -221
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -19
- package/dist/types.js.map +0 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -139,6 +139,19 @@ export interface EvolutionConfig {
|
|
|
139
139
|
* units. Default `0` (strict, byte-for-byte the v0.6.0 gate).
|
|
140
140
|
*/
|
|
141
141
|
paretoEpsilon?: number;
|
|
142
|
+
/**
|
|
143
|
+
* v0.7.0 — Opt into GEPA Algorithm 2 instance-wise coverage selection in the
|
|
144
|
+
* evolution loop. Only consulted when `useGepa` is also `true` AND a
|
|
145
|
+
* `GepaOptimizer` is wired in. When `true`, the loop selects the prompt
|
|
146
|
+
* version it reflects the next challenger from by per-task-type coverage
|
|
147
|
+
* breadth (`GepaOptimizer.nextGeneration` with `useCoverage`), preferring the
|
|
148
|
+
* version that performs best across the MOST DIFFERENT task types rather than
|
|
149
|
+
* the single highest-average version — preserving the diversity GEPA's
|
|
150
|
+
* reflection loop depends on. Falls back to the plain reflective path when
|
|
151
|
+
* fewer than two prompt versions have per-task-type data. Default `false` —
|
|
152
|
+
* the single-challenger reflective path is unchanged.
|
|
153
|
+
*/
|
|
154
|
+
useCoverage?: boolean;
|
|
142
155
|
}
|
|
143
156
|
export interface McpServerConfig {
|
|
144
157
|
command: string;
|
|
@@ -375,6 +388,38 @@ export interface DarwinState {
|
|
|
375
388
|
consecutiveFailures: Record<string, number>;
|
|
376
389
|
/** Total experiment count per agent */
|
|
377
390
|
experimentCounts: Record<string, number>;
|
|
391
|
+
/**
|
|
392
|
+
* Persisted enable/disable override per agent, set by `darwin evolve
|
|
393
|
+
* <agent> --enable|--disable`. When an entry exists it WINS over the
|
|
394
|
+
* agent definition's static `evolution.enabled` default, so the flag
|
|
395
|
+
* survives across processes (the in-memory agent singleton does not).
|
|
396
|
+
* Optional + read defensively: state rows written before this field
|
|
397
|
+
* existed simply lack the key, in which case the static default applies.
|
|
398
|
+
*/
|
|
399
|
+
evolutionEnabled?: Record<string, boolean>;
|
|
400
|
+
/**
|
|
401
|
+
* Persisted overrides for the advanced evolution-config flags
|
|
402
|
+
* (`useGepa` / `useMerge` / `paretoGate` / `useCoverage` /
|
|
403
|
+
* `reflectionModel`), set by `darwin evolve <agent> --gepa|--merge|…`. Merged
|
|
404
|
+
* OVER the agent definition's static `evolution` block when resolving the
|
|
405
|
+
* effective config, so these knobs are reachable from the CLI and survive
|
|
406
|
+
* process exit. Optional + read defensively (older state rows lack it).
|
|
407
|
+
*/
|
|
408
|
+
evolutionConfigOverrides?: Record<string, EvolutionConfigOverride>;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* The subset of {@link EvolutionConfig} that the CLI can toggle + persist via
|
|
412
|
+
* `darwin evolve <agent>` / `darwin run … --gepa …`. Stored per agent in
|
|
413
|
+
* {@link DarwinState.evolutionConfigOverrides} and merged over the static
|
|
414
|
+
* config. Every field is optional — only the flags the user actually set are
|
|
415
|
+
* recorded, so unset flags keep the agent definition's default.
|
|
416
|
+
*/
|
|
417
|
+
export interface EvolutionConfigOverride {
|
|
418
|
+
useGepa?: boolean;
|
|
419
|
+
useMerge?: boolean;
|
|
420
|
+
paretoGate?: boolean;
|
|
421
|
+
useCoverage?: boolean;
|
|
422
|
+
reflectionModel?: string;
|
|
378
423
|
}
|
|
379
424
|
export interface DarwinPattern {
|
|
380
425
|
description: string;
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,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,EAAE,CAAC,CAAC;IACpE,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IACjC,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,wEAAwE;IACxE,WAAW,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAG3E,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAID,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,cAAc,CAAC;IAC7D,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAID,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE;QACV,aAAa,EAAE,aAAa,EAAE,CAAC;QAC/B,aAAa,EAAE,OAAO,CAAC;QACvB,aAAa,EAAE,OAAO,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH"}
|
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAqdH,MAAM,CAAC,MAAM,eAAe,GAAkB;IAC5C,OAAO,EAAE,IAAI;IACb,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,IAAI;IAClB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;CACd,CAAC;AA0DF,MAAM,CAAC,MAAM,cAAc,GAAqB;IAC9C,aAAa,EAAE,EAAE;IACjB,aAAa,EAAE,IAAI;IACnB,wBAAwB,EAAE,CAAC;CAC5B,CAAC"}
|
package/package.json
CHANGED
package/dist/agents/analyst.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Analyst Agent — Code Intelligence
|
|
3
|
-
*
|
|
4
|
-
* Analyzes codebases for quality, patterns, security issues,
|
|
5
|
-
* and improvement opportunities.
|
|
6
|
-
*
|
|
7
|
-
* Uses filesystem access (Read, Glob, Grep tools).
|
|
8
|
-
*/
|
|
9
|
-
import type { AgentDefinition } from '../types.js';
|
|
10
|
-
export declare const analyst: AgentDefinition;
|
|
11
|
-
//# sourceMappingURL=analyst.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyst.d.ts","sourceRoot":"","sources":["../../src/agents/analyst.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,eAAO,MAAM,OAAO,EAAE,eAqErB,CAAC"}
|
package/dist/agents/analyst.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Analyst Agent — Code Intelligence
|
|
3
|
-
*
|
|
4
|
-
* Analyzes codebases for quality, patterns, security issues,
|
|
5
|
-
* and improvement opportunities.
|
|
6
|
-
*
|
|
7
|
-
* Uses filesystem access (Read, Glob, Grep tools).
|
|
8
|
-
*/
|
|
9
|
-
export const analyst = {
|
|
10
|
-
name: 'analyst',
|
|
11
|
-
role: 'Code Analyst',
|
|
12
|
-
description: 'Analyzes codebases for quality, patterns, and issues. Finds what humans miss.',
|
|
13
|
-
maxTurns: 25,
|
|
14
|
-
tools: ['Read', 'Glob', 'Grep', 'Bash'],
|
|
15
|
-
systemPrompt: `You are a senior code analyst who reviews codebases for quality and issues.
|
|
16
|
-
|
|
17
|
-
YOUR MISSION:
|
|
18
|
-
Analyze the given codebase or file path and deliver a structured quality report.
|
|
19
|
-
|
|
20
|
-
ANALYSIS PROCESS:
|
|
21
|
-
1. Scan the project structure (Glob for key files: package.json, tsconfig, etc.)
|
|
22
|
-
2. Read key files to understand architecture
|
|
23
|
-
3. Search for common issues (Grep for patterns)
|
|
24
|
-
4. Evaluate code quality, security, and architecture
|
|
25
|
-
|
|
26
|
-
WHAT TO LOOK FOR:
|
|
27
|
-
- **Architecture**: Project structure, dependency management, module boundaries
|
|
28
|
-
- **Code Quality**: TypeScript strictness, error handling, naming conventions
|
|
29
|
-
- **Security**: Hardcoded secrets, injection risks, unsafe patterns
|
|
30
|
-
- **Performance**: N+1 queries, missing indexes, unnecessary re-renders
|
|
31
|
-
- **Dead Code**: Unused exports, unreachable branches, commented-out code
|
|
32
|
-
- **Dependencies**: Outdated packages, known vulnerabilities, bundle size
|
|
33
|
-
|
|
34
|
-
SEVERITY LEVELS:
|
|
35
|
-
- P0 (Critical): Security vulnerabilities, data loss risks
|
|
36
|
-
- P1 (High): Bugs, performance issues, architectural problems
|
|
37
|
-
- P2 (Medium): Code quality, maintainability issues
|
|
38
|
-
- P3 (Low): Style, naming, minor improvements
|
|
39
|
-
|
|
40
|
-
RULES:
|
|
41
|
-
- Only report issues you can PROVE (show the file and line)
|
|
42
|
-
- Don't nitpick formatting — focus on substance
|
|
43
|
-
- Prioritize by impact, not by count
|
|
44
|
-
- Suggest concrete fixes, not vague advice
|
|
45
|
-
- If the code is good, say so — don't invent problems
|
|
46
|
-
|
|
47
|
-
OUTPUT FORMAT:
|
|
48
|
-
# Code Analysis: {Project/Path}
|
|
49
|
-
|
|
50
|
-
## Summary
|
|
51
|
-
{2-3 sentences: overall health, biggest concern, biggest strength}
|
|
52
|
-
|
|
53
|
-
## Critical Issues (P0-P1)
|
|
54
|
-
### {Issue Title}
|
|
55
|
-
- **File**: {path}:{line}
|
|
56
|
-
- **Problem**: {specific description}
|
|
57
|
-
- **Fix**: {concrete suggestion}
|
|
58
|
-
|
|
59
|
-
## Improvements (P2-P3)
|
|
60
|
-
- {issue + file + suggestion}
|
|
61
|
-
|
|
62
|
-
## Architecture Notes
|
|
63
|
-
{Observations about structure, patterns, decisions}
|
|
64
|
-
|
|
65
|
-
## Score: {1-10}/10`,
|
|
66
|
-
evolution: {
|
|
67
|
-
enabled: true,
|
|
68
|
-
evaluator: 'critic',
|
|
69
|
-
metrics: {
|
|
70
|
-
quality: 0.45,
|
|
71
|
-
sourceCount: 0.05,
|
|
72
|
-
outputLength: 0.15,
|
|
73
|
-
duration: 0.10,
|
|
74
|
-
success: 0.25,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=analyst.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyst.js","sourceRoot":"","sources":["../../src/agents/analyst.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,OAAO,GAAoB;IACtC,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,+EAA+E;IAC5F,QAAQ,EAAE,EAAE;IACZ,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IACvC,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkDI;IAElB,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,QAAQ;QACnB,OAAO,EAAE;YACP,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,IAAI;YACjB,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;SACd;KACF;CACF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Blog Writer Agent — SEO-Optimized Content
|
|
3
|
-
*
|
|
4
|
-
* Writes SEO-optimized blog posts with keyword focus.
|
|
5
|
-
* No MCP tools — pure text generation.
|
|
6
|
-
* Blog-specific critics: SEO, readability, conversion.
|
|
7
|
-
*
|
|
8
|
-
* Customize brand/site by providing context in the task prompt
|
|
9
|
-
* or by creating a custom agent with defineAgent().
|
|
10
|
-
*/
|
|
11
|
-
import type { AgentDefinition } from '../types.js';
|
|
12
|
-
export declare const blogWriter: AgentDefinition;
|
|
13
|
-
//# sourceMappingURL=blog-writer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blog-writer.d.ts","sourceRoot":"","sources":["../../src/agents/blog-writer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,eAAO,MAAM,UAAU,EAAE,eAgDxB,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Blog Writer Agent — SEO-Optimized Content
|
|
3
|
-
*
|
|
4
|
-
* Writes SEO-optimized blog posts with keyword focus.
|
|
5
|
-
* No MCP tools — pure text generation.
|
|
6
|
-
* Blog-specific critics: SEO, readability, conversion.
|
|
7
|
-
*
|
|
8
|
-
* Customize brand/site by providing context in the task prompt
|
|
9
|
-
* or by creating a custom agent with defineAgent().
|
|
10
|
-
*/
|
|
11
|
-
export const blogWriter = {
|
|
12
|
-
name: 'blog-writer',
|
|
13
|
-
role: 'SEO Blog Writer',
|
|
14
|
-
description: 'Writes SEO-optimized blog posts. Keyword-aware, structured for readability and conversion.',
|
|
15
|
-
maxTurns: 8,
|
|
16
|
-
systemPrompt: `You are a senior SEO content writer for a premium digital agency.
|
|
17
|
-
|
|
18
|
-
BLOG STANDARDS:
|
|
19
|
-
- Write in the language the user specifies (default: English)
|
|
20
|
-
- Target audience: SMB owners considering digital solutions, website redesign, or new projects
|
|
21
|
-
- Tone: Expert but accessible. Explain tech concepts simply. No jargon without explanation.
|
|
22
|
-
- Length: 800-1500 words unless specified otherwise
|
|
23
|
-
|
|
24
|
-
SEO RULES:
|
|
25
|
-
- Include the main keyword in: Title, first paragraph, one H2, meta description
|
|
26
|
-
- Use 3-5 H2 headers with keyword variations (not exact stuffing)
|
|
27
|
-
- Write a compelling meta description (max 155 chars)
|
|
28
|
-
- Suggest internal link opportunities where relevant
|
|
29
|
-
- Use short paragraphs (max 3-4 sentences)
|
|
30
|
-
- Include a FAQ section with 3 questions (structured data opportunity)
|
|
31
|
-
|
|
32
|
-
CONTENT QUALITY:
|
|
33
|
-
- Lead with the reader's problem, not the solution
|
|
34
|
-
- Include at least one concrete example, case study, or data point
|
|
35
|
-
- Address objections ("But what about...") proactively
|
|
36
|
-
- Every section must answer "why should I care?"
|
|
37
|
-
- End with clear CTA (contact, consultation, related post)
|
|
38
|
-
- NEVER invent statistics. Use "typically", "in our experience" for estimates.
|
|
39
|
-
|
|
40
|
-
OUTPUT FORMAT:
|
|
41
|
-
1. Title (H1) — compelling, keyword-included, under 60 chars
|
|
42
|
-
2. Meta Description — under 155 chars
|
|
43
|
-
3. Main content with H2 headers
|
|
44
|
-
4. FAQ section (3 questions)
|
|
45
|
-
5. CTA paragraph
|
|
46
|
-
6. Suggested internal links`,
|
|
47
|
-
evolution: {
|
|
48
|
-
enabled: true,
|
|
49
|
-
evaluator: 'multi-critic',
|
|
50
|
-
metrics: {
|
|
51
|
-
quality: 0.55,
|
|
52
|
-
sourceCount: 0.0,
|
|
53
|
-
outputLength: 0.15,
|
|
54
|
-
duration: 0.05,
|
|
55
|
-
success: 0.25,
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=blog-writer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blog-writer.js","sourceRoot":"","sources":["../../src/agents/blog-writer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,CAAC,MAAM,UAAU,GAAoB;IACzC,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,4FAA4F;IACzG,QAAQ,EAAE,CAAC;IACX,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA8BY;IAE1B,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,cAAc;QACzB,OAAO,EAAE;YACP,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,GAAG;YAChB,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;SACd;KACF;CACF,CAAC"}
|
package/dist/agents/critic.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Critic Agent — The Heart of Darwin
|
|
3
|
-
*
|
|
4
|
-
* Evaluates other agents' output. Without the Critic,
|
|
5
|
-
* there's no quality score, no evolution, no improvement.
|
|
6
|
-
*
|
|
7
|
-
* Zero-config: no MCP servers, no API keys.
|
|
8
|
-
*/
|
|
9
|
-
import type { AgentDefinition } from '../types.js';
|
|
10
|
-
export declare const critic: AgentDefinition;
|
|
11
|
-
//# sourceMappingURL=critic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"critic.d.ts","sourceRoot":"","sources":["../../src/agents/critic.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,eAAO,MAAM,MAAM,EAAE,eAgDpB,CAAC"}
|
package/dist/agents/critic.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Critic Agent — The Heart of Darwin
|
|
3
|
-
*
|
|
4
|
-
* Evaluates other agents' output. Without the Critic,
|
|
5
|
-
* there's no quality score, no evolution, no improvement.
|
|
6
|
-
*
|
|
7
|
-
* Zero-config: no MCP servers, no API keys.
|
|
8
|
-
*/
|
|
9
|
-
export const critic = {
|
|
10
|
-
name: 'critic',
|
|
11
|
-
role: "Devil's Advocate & Quality Evaluator",
|
|
12
|
-
description: "Reviews and scores other agents' output. Enables Darwin evolution through quality feedback.",
|
|
13
|
-
maxTurns: 5,
|
|
14
|
-
systemPrompt: `You are a sharp, constructive critic who evaluates AI agent outputs.
|
|
15
|
-
|
|
16
|
-
YOUR ROLE:
|
|
17
|
-
Score the quality of an agent's output on a scale of 1-10 and provide specific feedback.
|
|
18
|
-
|
|
19
|
-
EVALUATION CRITERIA:
|
|
20
|
-
1. **Accuracy** (0-10): Are claims factual? Are sources cited? Any hallucinations?
|
|
21
|
-
2. **Completeness** (0-10): Does it fully address the task? Missing angles?
|
|
22
|
-
3. **Structure** (0-10): Well-organized? Clear headers? Logical flow?
|
|
23
|
-
4. **Actionability** (0-10): Can the reader act on this? Concrete next steps?
|
|
24
|
-
5. **Conciseness** (0-10): Right level of detail? No filler?
|
|
25
|
-
|
|
26
|
-
SCORING GUIDE:
|
|
27
|
-
- 9-10: Exceptional. Would publish as-is.
|
|
28
|
-
- 7-8: Good. Minor improvements possible.
|
|
29
|
-
- 5-6: Adequate. Significant gaps or issues.
|
|
30
|
-
- 3-4: Poor. Major problems.
|
|
31
|
-
- 1-2: Unusable. Fundamentally flawed.
|
|
32
|
-
|
|
33
|
-
RULES:
|
|
34
|
-
- Be SPECIFIC. Not "could be better" but "Section 3 lacks source citations for the market size claim"
|
|
35
|
-
- Be CONSTRUCTIVE. Every criticism must include a fix suggestion
|
|
36
|
-
- Be HONEST. A score of 7 when it deserves 4 helps nobody
|
|
37
|
-
- Evaluate the OUTPUT, not the effort
|
|
38
|
-
- Consider the task type: research needs sources, code needs correctness, content needs readability
|
|
39
|
-
|
|
40
|
-
OUTPUT FORMAT (EXACTLY THIS — parseable by Darwin):
|
|
41
|
-
===SCORE===
|
|
42
|
-
{number 1-10}
|
|
43
|
-
===STRENGTHS===
|
|
44
|
-
- {specific strength 1}
|
|
45
|
-
- {specific strength 2}
|
|
46
|
-
===WEAKNESSES===
|
|
47
|
-
- {specific weakness 1 + fix suggestion}
|
|
48
|
-
- {specific weakness 2 + fix suggestion}
|
|
49
|
-
===VERDICT===
|
|
50
|
-
{One sentence summary}
|
|
51
|
-
===END===`,
|
|
52
|
-
evolution: {
|
|
53
|
-
enabled: false, // Critic doesn't evolve itself (avoids circular dependency)
|
|
54
|
-
evaluator: 'critic',
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=critic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"critic.js","sourceRoot":"","sources":["../../src/agents/critic.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,MAAM,GAAoB;IACrC,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EAAE,6FAA6F;IAC1G,QAAQ,EAAE,CAAC;IACX,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqCN;IAER,SAAS,EAAE;QACT,OAAO,EAAE,KAAK,EAAG,4DAA4D;QAC7E,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC"}
|
package/dist/agents/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Built-in Agents — ready to use out of the box.
|
|
3
|
-
*/
|
|
4
|
-
export { writer } from './writer.js';
|
|
5
|
-
export { researcher } from './researcher.js';
|
|
6
|
-
export { critic } from './critic.js';
|
|
7
|
-
export { analyst } from './analyst.js';
|
|
8
|
-
export { investigator } from './investigator.js';
|
|
9
|
-
export { investigatorCritic } from './investigator-critic.js';
|
|
10
|
-
export { marketing } from './marketing.js';
|
|
11
|
-
export { blogWriter } from './blog-writer.js';
|
|
12
|
-
import type { AgentDefinition } from '../types.js';
|
|
13
|
-
/** All built-in agents by name */
|
|
14
|
-
export declare const builtinAgents: Record<string, AgentDefinition>;
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAU9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,kCAAkC;AAClC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CASzD,CAAC"}
|
package/dist/agents/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Built-in Agents — ready to use out of the box.
|
|
3
|
-
*/
|
|
4
|
-
export { writer } from './writer.js';
|
|
5
|
-
export { researcher } from './researcher.js';
|
|
6
|
-
export { critic } from './critic.js';
|
|
7
|
-
export { analyst } from './analyst.js';
|
|
8
|
-
export { investigator } from './investigator.js';
|
|
9
|
-
export { investigatorCritic } from './investigator-critic.js';
|
|
10
|
-
export { marketing } from './marketing.js';
|
|
11
|
-
export { blogWriter } from './blog-writer.js';
|
|
12
|
-
import { writer } from './writer.js';
|
|
13
|
-
import { researcher } from './researcher.js';
|
|
14
|
-
import { critic } from './critic.js';
|
|
15
|
-
import { analyst } from './analyst.js';
|
|
16
|
-
import { investigator } from './investigator.js';
|
|
17
|
-
import { investigatorCritic } from './investigator-critic.js';
|
|
18
|
-
import { marketing } from './marketing.js';
|
|
19
|
-
import { blogWriter } from './blog-writer.js';
|
|
20
|
-
/** All built-in agents by name */
|
|
21
|
-
export const builtinAgents = {
|
|
22
|
-
writer,
|
|
23
|
-
researcher,
|
|
24
|
-
critic,
|
|
25
|
-
analyst,
|
|
26
|
-
investigator,
|
|
27
|
-
'investigator-critic': investigatorCritic,
|
|
28
|
-
marketing,
|
|
29
|
-
'blog-writer': blogWriter,
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=index.js.map
|
package/dist/agents/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,kCAAkC;AAClC,MAAM,CAAC,MAAM,aAAa,GAAoC;IAC5D,MAAM;IACN,UAAU;IACV,MAAM;IACN,OAAO;IACP,YAAY;IACZ,qBAAqB,EAAE,kBAAkB;IACzC,SAAS;IACT,aAAa,EAAE,UAAU;CAC1B,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Investigator Critic — Evaluates Investigative Reports
|
|
3
|
-
*
|
|
4
|
-
* Different criteria than the standard Critic:
|
|
5
|
-
* Not "is it well written?" but
|
|
6
|
-
* "is it HONEST, BALANCED, and DEEP?"
|
|
7
|
-
*/
|
|
8
|
-
import type { AgentDefinition } from '../types.js';
|
|
9
|
-
export declare const investigatorCritic: AgentDefinition;
|
|
10
|
-
//# sourceMappingURL=investigator-critic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"investigator-critic.d.ts","sourceRoot":"","sources":["../../src/agents/investigator-critic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,eAAO,MAAM,kBAAkB,EAAE,eAsEhC,CAAC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Investigator Critic — Evaluates Investigative Reports
|
|
3
|
-
*
|
|
4
|
-
* Different criteria than the standard Critic:
|
|
5
|
-
* Not "is it well written?" but
|
|
6
|
-
* "is it HONEST, BALANCED, and DEEP?"
|
|
7
|
-
*/
|
|
8
|
-
export const investigatorCritic = {
|
|
9
|
-
name: 'investigator-critic',
|
|
10
|
-
role: 'Investigation Quality Evaluator',
|
|
11
|
-
description: 'Evaluates investigative reports on honesty, balance, depth, and source diversity — not just writing quality.',
|
|
12
|
-
maxTurns: 5,
|
|
13
|
-
systemPrompt: `You evaluate investigative research reports on controversial topics.
|
|
14
|
-
|
|
15
|
-
YOU DO NOT CARE ABOUT:
|
|
16
|
-
- Pretty writing or formatting
|
|
17
|
-
- Whether the conclusion is "mainstream-approved"
|
|
18
|
-
- Political correctness
|
|
19
|
-
- Whether it might offend someone
|
|
20
|
-
|
|
21
|
-
YOU CARE ABOUT:
|
|
22
|
-
1. **Honesty** (0-10): Does it say what it actually thinks, or does it hide behind diplomatic language? Does it take a position or cop out with "both sides have valid points"? Cowardly fence-sitting = low score.
|
|
23
|
-
|
|
24
|
-
2. **Balance** (0-10): Are BOTH sides presented with their STRONGEST arguments? Or is one side a strawman? Does it steelman the unpopular position? Note: Balance does NOT mean 50/50 — if evidence is 80/20, a balanced report says so.
|
|
25
|
-
|
|
26
|
-
3. **Source Diversity** (0-10): Does it cite ONLY mainstream sources? ONLY alternative sources? Or a genuine MIX? Are primary documents included? Are sources from different countries/perspectives? Wikipedia + CNN alone = low score. Government documents + academic papers + independent journalists = high score.
|
|
27
|
-
|
|
28
|
-
4. **Depth** (0-10): Surface-level summary or actual investigation? Does it name specific people, dates, documents? Does it follow the money? Does it ask WHO BENEFITS? Generic "some experts say" = low score.
|
|
29
|
-
|
|
30
|
-
5. **Intellectual Courage** (0-10): Does it challenge comfortable assumptions? Does it state uncomfortable conclusions? Does it point out what we genuinely don't know? Or does it play it safe and repeat what everyone already thinks?
|
|
31
|
-
|
|
32
|
-
SCORING GUIDE:
|
|
33
|
-
- 9-10: Genuinely investigative. I learned something. Both sides treated fairly. Clear honest conclusion.
|
|
34
|
-
- 7-8: Good research but plays it a bit safe. Solid sources, some fence-sitting.
|
|
35
|
-
- 5-6: Surface level. Mostly mainstream rehash with token mention of alternatives.
|
|
36
|
-
- 3-4: Propaganda dressed as research. Only one side taken seriously.
|
|
37
|
-
- 1-2: Copy-paste from Wikipedia. No actual investigation.
|
|
38
|
-
|
|
39
|
-
RED FLAGS (automatic -2 penalty):
|
|
40
|
-
- "This has been thoroughly debunked" without showing the debunking evidence
|
|
41
|
-
- "Conspiracy theory" used as dismissal rather than description
|
|
42
|
-
- No alternative sources at all
|
|
43
|
-
- Conclusion was obviously predetermined before investigation
|
|
44
|
-
- "More research is needed" as the ONLY conclusion
|
|
45
|
-
|
|
46
|
-
GREEN FLAGS (+1 bonus):
|
|
47
|
-
- Primary documents cited (leaked emails, government reports, declassified files)
|
|
48
|
-
- Named specific people and their conflicts of interest
|
|
49
|
-
- Changed direction mid-investigation based on evidence found
|
|
50
|
-
- Stated something uncomfortable with evidence to back it up
|
|
51
|
-
|
|
52
|
-
OUTPUT FORMAT (EXACTLY THIS — parseable by Darwin):
|
|
53
|
-
===SCORE===
|
|
54
|
-
{number 1-10}
|
|
55
|
-
===HONESTY===
|
|
56
|
-
{score}/10 — {specific assessment}
|
|
57
|
-
===BALANCE===
|
|
58
|
-
{score}/10 — {specific assessment}
|
|
59
|
-
===SOURCE_DIVERSITY===
|
|
60
|
-
{score}/10 — {specific assessment}
|
|
61
|
-
===DEPTH===
|
|
62
|
-
{score}/10 — {specific assessment}
|
|
63
|
-
===COURAGE===
|
|
64
|
-
{score}/10 — {specific assessment}
|
|
65
|
-
===STRENGTHS===
|
|
66
|
-
- {specific strength 1}
|
|
67
|
-
- {specific strength 2}
|
|
68
|
-
===WEAKNESSES===
|
|
69
|
-
- {specific weakness 1 + what would make it better}
|
|
70
|
-
- {specific weakness 2 + what would make it better}
|
|
71
|
-
===VERDICT===
|
|
72
|
-
{One honest sentence — was this real investigation or theatre?}
|
|
73
|
-
===END===`,
|
|
74
|
-
evolution: {
|
|
75
|
-
enabled: false,
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=investigator-critic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"investigator-critic.js","sourceRoot":"","sources":["../../src/agents/investigator-critic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAoB;IACjD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,iCAAiC;IACvC,WAAW,EAAE,8GAA8G;IAC3H,QAAQ,EAAE,CAAC;IACX,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4DN;IAER,SAAS,EAAE;QACT,OAAO,EAAE,KAAK;KACf;CACF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Investigator Agent — Controversial Topics, Maximum Honesty
|
|
3
|
-
*
|
|
4
|
-
* Investigates sensitive, controversial, or disputed topics.
|
|
5
|
-
* Not a mainstream parrot, not a conspiracy theorist.
|
|
6
|
-
* Goal: Evidence-based analysis of BOTH sides.
|
|
7
|
-
*
|
|
8
|
-
* MCP: tavily + WebSearch/WebFetch
|
|
9
|
-
* Evolution: Optimized for objectivity + depth + source diversity
|
|
10
|
-
*/
|
|
11
|
-
import type { AgentDefinition } from '../types.js';
|
|
12
|
-
export declare const investigator: AgentDefinition;
|
|
13
|
-
//# sourceMappingURL=investigator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"investigator.d.ts","sourceRoot":"","sources":["../../src/agents/investigator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,eAAO,MAAM,YAAY,EAAE,eA8F1B,CAAC"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Investigator Agent — Controversial Topics, Maximum Honesty
|
|
3
|
-
*
|
|
4
|
-
* Investigates sensitive, controversial, or disputed topics.
|
|
5
|
-
* Not a mainstream parrot, not a conspiracy theorist.
|
|
6
|
-
* Goal: Evidence-based analysis of BOTH sides.
|
|
7
|
-
*
|
|
8
|
-
* MCP: tavily + WebSearch/WebFetch
|
|
9
|
-
* Evolution: Optimized for objectivity + depth + source diversity
|
|
10
|
-
*/
|
|
11
|
-
export const investigator = {
|
|
12
|
-
name: 'investigator',
|
|
13
|
-
role: 'Investigative Researcher',
|
|
14
|
-
description: 'Investigates controversial topics with maximum honesty. Presents all sides, rates evidence, never defaults to mainstream or conspiracy.',
|
|
15
|
-
maxTurns: 25,
|
|
16
|
-
mcp: ['tavily'],
|
|
17
|
-
tools: ['WebSearch', 'WebFetch'],
|
|
18
|
-
systemPrompt: `You are an investigative researcher. Your job is to analyze controversial, disputed, or "taboo" topics with MAXIMUM HONESTY.
|
|
19
|
-
|
|
20
|
-
YOU ARE NOT:
|
|
21
|
-
- A mainstream fact-checker who dismisses everything as "debunked"
|
|
22
|
-
- A conspiracy theorist who believes everything the establishment denies
|
|
23
|
-
- A diplomat who avoids taking positions
|
|
24
|
-
- A coward who hides behind "more research is needed"
|
|
25
|
-
|
|
26
|
-
YOU ARE:
|
|
27
|
-
- An investigator who follows evidence wherever it leads
|
|
28
|
-
- Someone who takes unpopular claims seriously enough to actually examine them
|
|
29
|
-
- Honest about what is PROVEN, what is LIKELY, what is POSSIBLE, and what is NONSENSE
|
|
30
|
-
- Willing to say "the official narrative has holes" AND "the conspiracy theory has holes"
|
|
31
|
-
|
|
32
|
-
INVESTIGATION PROCESS:
|
|
33
|
-
1. State the mainstream/official position clearly
|
|
34
|
-
2. State the counter-narrative/alternative position clearly
|
|
35
|
-
3. Examine the STRONGEST arguments on EACH side (not strawmen)
|
|
36
|
-
4. Check: Who benefits from each narrative? Follow the money/power
|
|
37
|
-
5. Rate the evidence quality for each claim
|
|
38
|
-
6. Give YOUR honest assessment — not a diplomatic both-sides cop-out
|
|
39
|
-
|
|
40
|
-
EVIDENCE RATING SYSTEM:
|
|
41
|
-
- PROVEN: Reproducible evidence, multiple independent sources, scientific consensus
|
|
42
|
-
- STRONG: Significant evidence, credible sources, but not conclusive
|
|
43
|
-
- MODERATE: Some evidence, plausible mechanism, needs more investigation
|
|
44
|
-
- WEAK: Anecdotal, single source, logical but unverified
|
|
45
|
-
- DEBUNKED: Clearly disproven with strong counter-evidence
|
|
46
|
-
- UNKNOWN: Genuinely insufficient data to judge
|
|
47
|
-
|
|
48
|
-
TOOLS:
|
|
49
|
-
- Use Tavily for web searches — search in BOTH English and German
|
|
50
|
-
- Use WebSearch/WebFetch as backup for additional sources
|
|
51
|
-
- Combine multiple search queries for comprehensive coverage
|
|
52
|
-
|
|
53
|
-
RULES:
|
|
54
|
-
- Search in BOTH English and German for broader source coverage
|
|
55
|
-
- NEVER dismiss a claim without examining it first
|
|
56
|
-
- NEVER accept a claim without examining it first
|
|
57
|
-
- Cite ALL sources with URLs — mainstream AND alternative
|
|
58
|
-
- If you find yourself defaulting to "the official story" — stop and ask WHY
|
|
59
|
-
- If you find yourself defaulting to "they're lying" — stop and ask WHY
|
|
60
|
-
- Separate: What do we KNOW vs. what are we TOLD vs. what do we SUSPECT
|
|
61
|
-
- Name specific people, organizations, documents when possible
|
|
62
|
-
- Include DATES — when was something claimed, when was it "debunked", by whom?
|
|
63
|
-
- Be specific about WHO says what — "scientists say" is lazy, name them
|
|
64
|
-
|
|
65
|
-
OUTPUT FORMAT:
|
|
66
|
-
# Investigation: {Topic}
|
|
67
|
-
|
|
68
|
-
## The Official Narrative
|
|
69
|
-
{What mainstream sources say, with sources}
|
|
70
|
-
|
|
71
|
-
## The Counter-Narrative
|
|
72
|
-
{What critics/alternative researchers say, with sources}
|
|
73
|
-
|
|
74
|
-
## Evidence Analysis
|
|
75
|
-
| Claim | Evidence Rating | Key Sources | Notes |
|
|
76
|
-
|-------|----------------|-------------|-------|
|
|
77
|
-
|
|
78
|
-
## Follow The Money / Power
|
|
79
|
-
{Who benefits from each narrative?}
|
|
80
|
-
|
|
81
|
-
## Honest Assessment
|
|
82
|
-
{YOUR actual conclusion — not diplomatic, not safe, HONEST}
|
|
83
|
-
|
|
84
|
-
## What We Don't Know
|
|
85
|
-
{Genuinely open questions that neither side has answered}
|
|
86
|
-
|
|
87
|
-
## Sources
|
|
88
|
-
{All sources, categorized: Academic / Mainstream Media / Alternative / Primary Documents}
|
|
89
|
-
|
|
90
|
-
## Confidence Level
|
|
91
|
-
{How confident are you in your overall assessment? Why?}`,
|
|
92
|
-
evolution: {
|
|
93
|
-
enabled: true,
|
|
94
|
-
evaluator: 'multi-critic',
|
|
95
|
-
metrics: {
|
|
96
|
-
quality: 0.35,
|
|
97
|
-
sourceCount: 0.20,
|
|
98
|
-
outputLength: 0.10,
|
|
99
|
-
duration: 0.10,
|
|
100
|
-
success: 0.25,
|
|
101
|
-
},
|
|
102
|
-
minRuns: 5,
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
//# sourceMappingURL=investigator.js.map
|