thoth-agents 0.1.9 → 0.1.10
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.
|
@@ -719,12 +719,12 @@ var OPENCODE_PROMPT_DIALECT = {
|
|
|
719
719
|
var CODEX_PROMPT_DIALECT = {
|
|
720
720
|
harness: "codex",
|
|
721
721
|
tools: {
|
|
722
|
-
delegationTool: "
|
|
723
|
-
backgroundDelegationTool: "
|
|
724
|
-
backgroundStatusTool: "
|
|
722
|
+
delegationTool: "multi_agent_v1.spawn_agent",
|
|
723
|
+
backgroundDelegationTool: "multi_agent_v1.spawn_agent",
|
|
724
|
+
backgroundStatusTool: "multi_agent_v1.wait_agent",
|
|
725
725
|
userQuestionTool: "request_user_input",
|
|
726
|
-
progressTool: "
|
|
727
|
-
hostStatusSurface: "
|
|
726
|
+
progressTool: "functions.update_plan",
|
|
727
|
+
hostStatusSurface: "multi_agent_v1.wait_agent",
|
|
728
728
|
roleReference: (role) => `${role} role agent`
|
|
729
729
|
},
|
|
730
730
|
capabilities: {
|
|
@@ -736,9 +736,9 @@ var CODEX_PROMPT_DIALECT = {
|
|
|
736
736
|
case "root-coordinator":
|
|
737
737
|
return "ambient Codex root session coordinator";
|
|
738
738
|
case "task":
|
|
739
|
-
return "
|
|
739
|
+
return "multi_agent_v1.spawn_agent";
|
|
740
740
|
case "synchronous-task-only":
|
|
741
|
-
return "synchronous
|
|
741
|
+
return "synchronous multi_agent_v1.spawn_agent only";
|
|
742
742
|
}
|
|
743
743
|
},
|
|
744
744
|
renderRoleInvocation(role) {
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
renderRolePrompt,
|
|
32
32
|
writeConfig,
|
|
33
33
|
writeLiteConfig
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-R2AP6O5Q.js";
|
|
35
35
|
|
|
36
36
|
// src/harness/adapters/codex.ts
|
|
37
37
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -1356,8 +1356,12 @@ function renderCodexRolePrompt(roleName, config, model) {
|
|
|
1356
1356
|
function codexInternalHandoffGuidance() {
|
|
1357
1357
|
return [
|
|
1358
1358
|
"<codex-delegation-guidance>",
|
|
1359
|
-
"-
|
|
1360
|
-
"-
|
|
1359
|
+
"- Delegate by calling `multi_agent_v1.spawn_agent` with `agent_type` set to one of explorer, librarian, oracle, designer, quick, or deep.",
|
|
1360
|
+
"- Pass the self-contained delegated prompt in `message`; do not pass both `message` and `items`.",
|
|
1361
|
+
"- Use `items` only for structured attachments or mentions when they are truly required.",
|
|
1362
|
+
"- Include the internal handoff in `message` for write-capable agents so they can act without rediscovering context.",
|
|
1363
|
+
"- Leave `fork_context` omitted or false by default; set `fork_context: true` only when the exact current thread history is required.",
|
|
1364
|
+
"- Use `multi_agent_v1.wait_agent` only when the root needs the result, `multi_agent_v1.send_input` for follow-up or redirect, `multi_agent_v1.resume_agent` only for a closed agent that must continue, and `multi_agent_v1.close_agent` after completion.",
|
|
1361
1365
|
"</codex-delegation-guidance>"
|
|
1362
1366
|
].join("\n");
|
|
1363
1367
|
}
|
|
@@ -1400,7 +1404,7 @@ function renderCodexRootInstructions(config) {
|
|
|
1400
1404
|
"- On each new root session, when thoth-mem tools are installed and session/project identity is known, call mem_session_start with the active project and session identity, then save the real user prompt with mem_save_prompt before later delegation.",
|
|
1401
1405
|
"- If thoth-mem tools or identity values are unavailable, disclose that memory bootstrap could not run and continue without claiming memory was saved.",
|
|
1402
1406
|
"- Use the ambient Codex root session as the delegate-first root coordinator; do not generate or select an orchestrator TOML.",
|
|
1403
|
-
"- Delegate by invoking the installed Codex role agents: explorer, librarian, oracle, designer, quick, and deep.",
|
|
1407
|
+
"- Delegate by invoking `multi_agent_v1.spawn_agent` for the installed Codex role agents: explorer, librarian, oracle, designer, quick, and deep.",
|
|
1404
1408
|
"- After receiving a delegated subagent response, close that subagent session unless you will retry or intentionally keep using that exact same session; explorer and librarian sessions must always be closed immediately after their response, and retry sessions must be closed after the retry result unless explicit same-session reuse is still required.",
|
|
1405
1409
|
"- Use packaged thoth-agents plugin capabilities through Codex plugin, skill, MCP, and hook review surfaces after enabling them with /plugins and /hooks.",
|
|
1406
1410
|
"- For blocking user decisions in Codex Default mode, use request_user_input after features.default_mode_request_user_input is enabled; do not ask those questions in plain prose.",
|
package/dist/cli/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getOperationHarness,
|
|
26
26
|
installRecommendedSkill,
|
|
27
27
|
listOperationHarnesses
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-U5FPYFMX.js";
|
|
29
29
|
import {
|
|
30
30
|
ALL_AGENT_NAMES,
|
|
31
31
|
CUSTOM_SKILLS,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
getExistingLiteConfigPath,
|
|
38
38
|
installCustomSkills,
|
|
39
39
|
writeLiteConfig
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-R2AP6O5Q.js";
|
|
41
41
|
|
|
42
42
|
// src/cli/index.ts
|
|
43
43
|
import { pathToFileURL } from "url";
|
package/dist/cli/tui/index.js
CHANGED
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
getOpenCodeStatus,
|
|
16
16
|
listOperationHarnesses,
|
|
17
17
|
parseRoleTomlModel
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-U5FPYFMX.js";
|
|
19
19
|
import {
|
|
20
20
|
ALL_AGENT_NAMES,
|
|
21
21
|
DEFAULT_MODELS,
|
|
22
22
|
getExistingLiteConfigPath,
|
|
23
23
|
parseConfig
|
|
24
|
-
} from "../../chunk-
|
|
24
|
+
} from "../../chunk-R2AP6O5Q.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/tui/index.tsx
|
|
27
27
|
import { render } from "ink";
|
package/dist/index.js
CHANGED
package/package.json
CHANGED