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.
@@ -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;
@@ -35,7 +35,7 @@ import {
35
35
  renderRolePrompt,
36
36
  writeConfig,
37
37
  writeLiteConfig
38
- } from "./chunk-76DARQOT.js";
38
+ } from "./chunk-N7GFXGFJ.js";
39
39
 
40
40
  // src/cli/codex-paths.ts
41
41
  import { homedir } from "os";
@@ -13,7 +13,7 @@ import {
13
13
  getStepBudgetPromptSection,
14
14
  loadAgentPrompt,
15
15
  renderRolePrompt
16
- } from "./chunk-76DARQOT.js";
16
+ } from "./chunk-N7GFXGFJ.js";
17
17
 
18
18
  // src/agents/deep.ts
19
19
  var DEEP_PROMPT = renderRolePrompt(
@@ -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 or agent claims before relying on them when they affect implementation, architecture, verification, safety, or guidance.
1187
- - Use the cheapest reliable evidence: bounded direct check, delegated local discovery, or authoritative external documentation.
1188
- - If evidence disproves a user or agent assumption, correct it plainly with the evidence, explain relevant tradeoffs, and offer viable alternatives.
1189
- - Allow low-risk assumptions only when brief and not correctness-critical. Stay warm, direct, concise, and evidence-led.
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-5DHG5II4.js";
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-DAZFSPN4.js";
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-76DARQOT.js";
51
+ } from "../chunk-N7GFXGFJ.js";
52
52
 
53
53
  // src/cli/index.ts
54
54
  import { pathToFileURL } from "url";
@@ -25,13 +25,13 @@ import {
25
25
  listOperationHarnesses,
26
26
  parseRoleTomlModel,
27
27
  parseSubagentModel
28
- } from "../../chunk-DAZFSPN4.js";
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-76DARQOT.js";
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-5DHG5II4.js";
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-76DARQOT.js";
17
+ } from "./chunk-N7GFXGFJ.js";
18
18
 
19
19
  // src/index.ts
20
20
  import path4 from "path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thoth-agents",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Delegate-first OpenCode plugin with seven agents, thoth-mem persistence, and bundled SDD skills.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",