thoth-agents 0.2.6 → 0.2.7
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/dist/agents/prompt-sections.d.ts +5 -1
- package/dist/{chunk-DAZFSPN4.js → chunk-32672NLJ.js} +1 -1
- package/dist/{chunk-5DHG5II4.js → chunk-4AC2TTUO.js} +1 -1
- package/dist/{chunk-76DARQOT.js → chunk-N7GFXGFJ.js} +22 -5
- package/dist/cli/index.js +3 -3
- package/dist/cli/tui/index.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -12,6 +12,9 @@ export interface SubagentRulesSection {
|
|
|
12
12
|
progressConcept: 'progress';
|
|
13
13
|
userQuestionConcept: 'userQuestion';
|
|
14
14
|
}
|
|
15
|
+
export interface ReasoningDisciplineSection {
|
|
16
|
+
kind: 'reasoning-discipline';
|
|
17
|
+
}
|
|
15
18
|
export interface ResponseBudgetSection {
|
|
16
19
|
kind: 'response-budget';
|
|
17
20
|
}
|
|
@@ -28,13 +31,14 @@ export interface RoleTextSection {
|
|
|
28
31
|
kind: 'role-text';
|
|
29
32
|
template: string;
|
|
30
33
|
}
|
|
31
|
-
export type PromptSection = QuestionProtocolSection | SubagentRulesSection | ResponseBudgetSection | StepBudgetSection | ModelFamilySection | RoleTextSection;
|
|
34
|
+
export type PromptSection = QuestionProtocolSection | SubagentRulesSection | ReasoningDisciplineSection | ResponseBudgetSection | StepBudgetSection | ModelFamilySection | RoleTextSection;
|
|
32
35
|
export type RolePromptSection = PromptSection;
|
|
33
36
|
export interface PromptSectionRenderer<TSection extends PromptSection> {
|
|
34
37
|
render(section: TSection, dialect: HarnessPromptDialect): string;
|
|
35
38
|
}
|
|
36
39
|
export declare function createQuestionProtocolSection(): QuestionProtocolSection;
|
|
37
40
|
export declare function createSubagentRulesSection(memoryAccess?: SemanticMemoryAccess): SubagentRulesSection;
|
|
41
|
+
export declare function createReasoningDisciplineSection(): ReasoningDisciplineSection;
|
|
38
42
|
export declare function createResponseBudgetSection(): ResponseBudgetSection;
|
|
39
43
|
export declare function createStepBudgetSection(steps?: number): StepBudgetSection | undefined;
|
|
40
44
|
export declare function detectModelFamilyFromModel(model?: string | ModelEntry[]): ModelFamily | undefined;
|
|
@@ -1036,6 +1036,9 @@ function createSubagentRulesSection(memoryAccess = "base") {
|
|
|
1036
1036
|
userQuestionConcept: "userQuestion"
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
|
+
function createReasoningDisciplineSection() {
|
|
1040
|
+
return { kind: "reasoning-discipline" };
|
|
1041
|
+
}
|
|
1039
1042
|
function createResponseBudgetSection() {
|
|
1040
1043
|
return { kind: "response-budget" };
|
|
1041
1044
|
}
|
|
@@ -1140,6 +1143,9 @@ You are ${role}.
|
|
|
1140
1143
|
${responsibility}
|
|
1141
1144
|
</responsibility>
|
|
1142
1145
|
|
|
1146
|
+
`),
|
|
1147
|
+
createReasoningDisciplineSection(),
|
|
1148
|
+
roleText(`
|
|
1143
1149
|
<rules>`),
|
|
1144
1150
|
createSubagentRulesSection(memoryAccess),
|
|
1145
1151
|
roleText(`${rules.join("\n")}
|
|
@@ -1163,7 +1169,8 @@ the harness does not name this agent "orchestrator".
|
|
|
1163
1169
|
<style>
|
|
1164
1170
|
Respond in the user's language. Be warm, direct, evidence-led, and concise.
|
|
1165
1171
|
Push back when context, risk, or assumptions are weak. Avoid verbosity.
|
|
1166
|
-
</style
|
|
1172
|
+
</style>`),
|
|
1173
|
+
roleText(`
|
|
1167
1174
|
|
|
1168
1175
|
<core-rules>
|
|
1169
1176
|
- Mode: primary coordinator. Mutation: coordination artifacts only.
|
|
@@ -1183,10 +1190,11 @@ Push back when context, risk, or assumptions are weak. Avoid verbosity.
|
|
|
1183
1190
|
</core-rules>
|
|
1184
1191
|
|
|
1185
1192
|
<epistemic-rigor>
|
|
1186
|
-
- Verify material user
|
|
1187
|
-
-
|
|
1188
|
-
-
|
|
1189
|
-
-
|
|
1193
|
+
- Verify material user/agent claims before relying on them in implementation, architecture, verification, safety, or guidance.
|
|
1194
|
+
- Before solving/editing, post one short commentary update naming reasoning/root-cause check.
|
|
1195
|
+
- Do thought experiments: test competing explanations, edge cases, failure modes, root-cause fit.
|
|
1196
|
+
- Do not stop at first plausible explanation/superficial answer; validate with evidence, edge cases, tests, or fitting check.
|
|
1197
|
+
- If evidence disproves an assumption, correct it plainly, explain tradeoffs, and offer alternatives.
|
|
1190
1198
|
</epistemic-rigor>
|
|
1191
1199
|
|
|
1192
1200
|
<session-bootstrap>
|
|
@@ -1504,6 +1512,13 @@ function renderSubagentRules(section, dialect) {
|
|
|
1504
1512
|
}
|
|
1505
1513
|
return rules.join("\n");
|
|
1506
1514
|
}
|
|
1515
|
+
function renderReasoningDiscipline() {
|
|
1516
|
+
return `<reasoning-discipline>
|
|
1517
|
+
- Before solving/editing, post one short commentary update naming reasoning/root-cause check.
|
|
1518
|
+
- Do thought experiments: test competing explanations, edge cases, failure modes, root-cause fit.
|
|
1519
|
+
- Do not stop at first plausible explanation/superficial answer; validate with evidence, edge cases, tests, or fitting check.
|
|
1520
|
+
</reasoning-discipline>`;
|
|
1521
|
+
}
|
|
1507
1522
|
function renderResponseBudget() {
|
|
1508
1523
|
return "Return concise structured results: status, summary, files, verification/issues. Never return raw file dumps.";
|
|
1509
1524
|
}
|
|
@@ -1584,6 +1599,8 @@ function renderPromptSection(section, dialect) {
|
|
|
1584
1599
|
return renderQuestionProtocol(section, dialect);
|
|
1585
1600
|
case "subagent-rules":
|
|
1586
1601
|
return renderSubagentRules(section, dialect);
|
|
1602
|
+
case "reasoning-discipline":
|
|
1603
|
+
return renderReasoningDiscipline();
|
|
1587
1604
|
case "response-budget":
|
|
1588
1605
|
return renderResponseBudget();
|
|
1589
1606
|
case "step-budget":
|
package/dist/cli/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getOpenCodeVersion,
|
|
5
5
|
isOpenCodeInstalled,
|
|
6
6
|
opencodeAdapter
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-4AC2TTUO.js";
|
|
8
8
|
import {
|
|
9
9
|
CODEX_ROLE_NAMES,
|
|
10
10
|
RECOMMENDED_SKILLS,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
getOperationHarness,
|
|
37
37
|
installRecommendedSkill,
|
|
38
38
|
listOperationHarnesses
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-32672NLJ.js";
|
|
40
40
|
import {
|
|
41
41
|
ALL_AGENT_NAMES,
|
|
42
42
|
CUSTOM_SKILLS,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
getExistingLiteConfigPath,
|
|
49
49
|
installCustomSkills,
|
|
50
50
|
writeLiteConfig
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-N7GFXGFJ.js";
|
|
52
52
|
|
|
53
53
|
// src/cli/index.ts
|
|
54
54
|
import { pathToFileURL } from "url";
|
package/dist/cli/tui/index.js
CHANGED
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
listOperationHarnesses,
|
|
26
26
|
parseRoleTomlModel,
|
|
27
27
|
parseSubagentModel
|
|
28
|
-
} from "../../chunk-
|
|
28
|
+
} from "../../chunk-32672NLJ.js";
|
|
29
29
|
import {
|
|
30
30
|
ALL_AGENT_NAMES,
|
|
31
31
|
DEFAULT_MODELS,
|
|
32
32
|
getExistingLiteConfigPath,
|
|
33
33
|
parseConfig
|
|
34
|
-
} from "../../chunk-
|
|
34
|
+
} from "../../chunk-N7GFXGFJ.js";
|
|
35
35
|
|
|
36
36
|
// src/cli/tui/index.tsx
|
|
37
37
|
import { render } from "ink";
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
renderOpenCodeAgentConfigs,
|
|
4
4
|
spawn,
|
|
5
5
|
spawnSync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4AC2TTUO.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_THOTH_COMMAND,
|
|
9
9
|
POLL_INTERVAL_BACKGROUND_MS,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
installCustomSkills,
|
|
15
15
|
loadPluginConfig,
|
|
16
16
|
stripJsonComments
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-N7GFXGFJ.js";
|
|
18
18
|
|
|
19
19
|
// src/index.ts
|
|
20
20
|
import path4 from "path";
|
package/package.json
CHANGED