thoth-agents 0.1.9 → 0.1.11

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.
@@ -31,7 +31,7 @@ import {
31
31
  renderRolePrompt,
32
32
  writeConfig,
33
33
  writeLiteConfig
34
- } from "./chunk-63DXDCWB.js";
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,13 @@ function renderCodexRolePrompt(roleName, config, model) {
1356
1356
  function codexInternalHandoffGuidance() {
1357
1357
  return [
1358
1358
  "<codex-delegation-guidance>",
1359
- "- For Codex typed/custom-agent delegation, prefer a self-contained prompt plus the internal handoff before dispatching write-capable agents.",
1360
- "- Do not ask for or attempt a full parent-context fork unless the active Codex host explicitly supports that workflow and the task truly requires it.",
1359
+ "- The user has explicitly authorized this generated Codex orchestrator to use `multi_agent_v1.spawn_agent` whenever delegation is required by these instructions, without needing a fresh user request for subagents in each task.",
1360
+ "- Delegate by calling `multi_agent_v1.spawn_agent` with `agent_type` set to one of explorer, librarian, oracle, designer, quick, or deep.",
1361
+ "- Pass the self-contained delegated prompt in `message`; do not pass both `message` and `items`.",
1362
+ "- Use `items` only for structured attachments or mentions when they are truly required.",
1363
+ "- Include the internal handoff in `message` for write-capable agents so they can act without rediscovering context.",
1364
+ "- Leave `fork_context` omitted or false by default; set `fork_context: true` only when the exact current thread history is required.",
1365
+ "- 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
1366
  "</codex-delegation-guidance>"
1362
1367
  ].join("\n");
1363
1368
  }
@@ -1400,7 +1405,7 @@ function renderCodexRootInstructions(config) {
1400
1405
  "- 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
1406
  "- If thoth-mem tools or identity values are unavailable, disclose that memory bootstrap could not run and continue without claiming memory was saved.",
1402
1407
  "- 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.",
1408
+ "- Delegate by invoking `multi_agent_v1.spawn_agent` for the installed Codex role agents: explorer, librarian, oracle, designer, quick, and deep.",
1404
1409
  "- 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
1410
  "- Use packaged thoth-agents plugin capabilities through Codex plugin, skill, MCP, and hook review surfaces after enabling them with /plugins and /hooks.",
1406
1411
  "- 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.",
@@ -719,12 +719,12 @@ var OPENCODE_PROMPT_DIALECT = {
719
719
  var CODEX_PROMPT_DIALECT = {
720
720
  harness: "codex",
721
721
  tools: {
722
- delegationTool: "Codex custom-agent task",
723
- backgroundDelegationTool: "Codex background role-agent run",
724
- backgroundStatusTool: "Codex host status surface",
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: "Codex progress tracking surface",
727
- hostStatusSurface: "Codex host status surface",
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 "Codex custom-agent task";
739
+ return "multi_agent_v1.spawn_agent";
740
740
  case "synchronous-task-only":
741
- return "synchronous Codex custom-agent task only";
741
+ return "synchronous multi_agent_v1.spawn_agent only";
742
742
  }
743
743
  },
744
744
  renderRoleInvocation(role) {
package/dist/cli/index.js CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  getOperationHarness,
26
26
  installRecommendedSkill,
27
27
  listOperationHarnesses
28
- } from "../chunk-6QYT6VMR.js";
28
+ } from "../chunk-A753XXHX.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-63DXDCWB.js";
40
+ } from "../chunk-R2AP6O5Q.js";
41
41
 
42
42
  // src/cli/index.ts
43
43
  import { pathToFileURL } from "url";
@@ -15,13 +15,13 @@ import {
15
15
  getOpenCodeStatus,
16
16
  listOperationHarnesses,
17
17
  parseRoleTomlModel
18
- } from "../../chunk-6QYT6VMR.js";
18
+ } from "../../chunk-A753XXHX.js";
19
19
  import {
20
20
  ALL_AGENT_NAMES,
21
21
  DEFAULT_MODELS,
22
22
  getExistingLiteConfigPath,
23
23
  parseConfig
24
- } from "../../chunk-63DXDCWB.js";
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
@@ -26,7 +26,7 @@ import {
26
26
  loadPluginConfig,
27
27
  renderRolePrompt,
28
28
  stripJsonComments
29
- } from "./chunk-63DXDCWB.js";
29
+ } from "./chunk-R2AP6O5Q.js";
30
30
 
31
31
  // src/index.ts
32
32
  import path4 from "path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thoth-agents",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
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",