opencode-orchestrator 1.0.76 → 1.0.78

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.
Files changed (117) hide show
  1. package/README.md +39 -49
  2. package/dist/agents/prompts/01_philosophy/execution_assurance.d.ts +1 -0
  3. package/dist/agents/prompts/01_philosophy/index.d.ts +5 -0
  4. package/dist/agents/prompts/01_philosophy/metadata.d.ts +19 -0
  5. package/dist/agents/prompts/02_discovery/agents/discovery_commander.d.ts +5 -0
  6. package/dist/agents/prompts/02_discovery/agents/discovery_planner.d.ts +5 -0
  7. package/dist/agents/prompts/02_discovery/agents/index.d.ts +2 -0
  8. package/dist/agents/prompts/02_discovery/discovery_core.d.ts +8 -0
  9. package/dist/agents/prompts/02_discovery/index.d.ts +6 -0
  10. package/dist/agents/prompts/03_planning/agents/index.d.ts +3 -0
  11. package/dist/agents/prompts/03_planning/agents/planning_commander.d.ts +5 -0
  12. package/dist/agents/prompts/03_planning/index.d.ts +11 -0
  13. package/dist/agents/prompts/03_planning/planning_core.d.ts +8 -0
  14. package/dist/agents/prompts/04_execution/agents/execution_commander.d.ts +5 -0
  15. package/dist/agents/prompts/04_execution/agents/execution_worker.d.ts +5 -0
  16. package/dist/agents/prompts/04_execution/agents/index.d.ts +2 -0
  17. package/dist/agents/prompts/04_execution/execution_core.d.ts +8 -0
  18. package/dist/agents/prompts/04_execution/execution_error_handling.d.ts +5 -0
  19. package/dist/agents/prompts/04_execution/index.d.ts +12 -0
  20. package/dist/agents/prompts/05_verification/agents/index.d.ts +2 -0
  21. package/dist/agents/prompts/05_verification/agents/verification_commander.d.ts +5 -0
  22. package/dist/agents/prompts/05_verification/index.d.ts +11 -0
  23. package/dist/agents/prompts/05_verification/verification_build.d.ts +5 -0
  24. package/dist/agents/prompts/05_verification/verification_core.d.ts +8 -0
  25. package/dist/agents/prompts/05_verification/verification_test.d.ts +5 -0
  26. package/dist/agents/prompts/06_mission/agents/index.d.ts +1 -0
  27. package/dist/agents/prompts/06_mission/agents/mission_commander.d.ts +5 -0
  28. package/dist/agents/prompts/06_mission/index.d.ts +7 -0
  29. package/dist/agents/prompts/06_mission/mission_core.d.ts +8 -0
  30. package/dist/agents/prompts/06_mission/mission_lifecycle.d.ts +5 -0
  31. package/dist/agents/prompts/07_agents/commander/commander_mandate.d.ts +5 -0
  32. package/dist/agents/prompts/07_agents/commander/index.d.ts +5 -0
  33. package/dist/agents/prompts/07_agents/planner/index.d.ts +4 -0
  34. package/dist/agents/prompts/07_agents/planner/planner_mandate.d.ts +5 -0
  35. package/dist/agents/prompts/07_agents/reviewer/index.d.ts +4 -0
  36. package/dist/agents/prompts/07_agents/reviewer/reviewer_mandate.d.ts +5 -0
  37. package/dist/agents/prompts/07_agents/worker/index.d.ts +4 -0
  38. package/dist/agents/prompts/07_agents/worker/worker_mandate.d.ts +5 -0
  39. package/dist/agents/prompts/08_tools/agents/index.d.ts +2 -0
  40. package/dist/agents/prompts/08_tools/index.d.ts +8 -0
  41. package/dist/agents/prompts/08_tools/tools_code_editing.d.ts +5 -0
  42. package/dist/agents/prompts/08_tools/tools_core.d.ts +8 -0
  43. package/dist/agents/prompts/08_tools/tools_testing.d.ts +5 -0
  44. package/dist/agents/prompts/index.d.ts +26 -14
  45. package/dist/core/agents/interfaces/session-pool.interface.d.ts +4 -0
  46. package/dist/core/agents/session-pool.d.ts +4 -0
  47. package/dist/core/loop/todo-manager.d.ts +8 -4
  48. package/dist/core/todo/todo-manager.d.ts +36 -0
  49. package/dist/hooks/index.d.ts +1 -1
  50. package/dist/hooks/registry.d.ts +9 -6
  51. package/dist/hooks/types.d.ts +7 -0
  52. package/dist/index.js +1813 -1410
  53. package/package.json +1 -1
  54. package/dist/agents/prompts/discovery/index.d.ts +0 -3
  55. package/dist/agents/prompts/execution/index.d.ts +0 -9
  56. package/dist/agents/prompts/mission/index.d.ts +0 -4
  57. package/dist/agents/prompts/philosophy/execution-assurance.d.ts +0 -2
  58. package/dist/agents/prompts/philosophy/index.d.ts +0 -4
  59. package/dist/agents/prompts/planning/index.d.ts +0 -8
  60. package/dist/agents/prompts/roles/commander/index.d.ts +0 -4
  61. package/dist/agents/prompts/roles/planner/index.d.ts +0 -3
  62. package/dist/agents/prompts/roles/reviewer/index.d.ts +0 -3
  63. package/dist/agents/prompts/roles/worker/index.d.ts +0 -3
  64. package/dist/agents/prompts/tools/index.d.ts +0 -5
  65. package/dist/agents/prompts/verification/index.d.ts +0 -7
  66. /package/dist/agents/prompts/{philosophy/anti-hallucination.d.ts → 01_philosophy/anti_hallucination.d.ts} +0 -0
  67. /package/dist/agents/prompts/{philosophy → 01_philosophy}/core.d.ts +0 -0
  68. /package/dist/agents/prompts/{philosophy → 01_philosophy}/modularity.d.ts +0 -0
  69. /package/dist/agents/prompts/{discovery/environment.d.ts → 02_discovery/discovery_environment.d.ts} +0 -0
  70. /package/dist/agents/prompts/{discovery/skills.d.ts → 02_discovery/discovery_skills.d.ts} +0 -0
  71. /package/dist/agents/prompts/{discovery/workspace.d.ts → 02_discovery/discovery_workspace.d.ts} +0 -0
  72. /package/dist/agents/prompts/{planning/planner-todo.d.ts → 03_planning/agents/planning_planner.d.ts} +0 -0
  73. /package/dist/agents/prompts/{planning/reviewer-todo-update.d.ts → 03_planning/agents/planning_reviewer.d.ts} +0 -0
  74. /package/dist/agents/prompts/{planning/decomposition.d.ts → 03_planning/planning_decomposition.d.ts} +0 -0
  75. /package/dist/agents/prompts/{planning/file-planning.d.ts → 03_planning/planning_file_planning.d.ts} +0 -0
  76. /package/dist/agents/prompts/{execution/parallel.d.ts → 03_planning/planning_parallel.d.ts} +0 -0
  77. /package/dist/agents/prompts/{planning/research.d.ts → 03_planning/planning_research.d.ts} +0 -0
  78. /package/dist/agents/prompts/{planning/todo-format.d.ts → 03_planning/planning_todo_format.d.ts} +0 -0
  79. /package/dist/agents/prompts/{planning/todo-rules.d.ts → 03_planning/planning_todo_rules.d.ts} +0 -0
  80. /package/dist/agents/prompts/{planning/todo-sync.d.ts → 03_planning/planning_todo_sync.d.ts} +0 -0
  81. /package/dist/agents/prompts/{execution/delegation.d.ts → 04_execution/execution_delegation.d.ts} +0 -0
  82. /package/dist/agents/prompts/{execution/file-assignment.d.ts → 04_execution/execution_file_assignment.d.ts} +0 -0
  83. /package/dist/agents/prompts/{execution/hyper-parallel.d.ts → 04_execution/execution_hyper_parallel.d.ts} +0 -0
  84. /package/dist/agents/prompts/{execution/isolation.d.ts → 04_execution/execution_isolation.d.ts} +0 -0
  85. /package/dist/agents/prompts/{execution/quality.d.ts → 04_execution/execution_quality.d.ts} +0 -0
  86. /package/dist/agents/prompts/{execution/strategy.d.ts → 04_execution/execution_strategy.d.ts} +0 -0
  87. /package/dist/agents/prompts/{execution/tdd.d.ts → 04_execution/execution_tdd.d.ts} +0 -0
  88. /package/dist/agents/prompts/{execution/workflow.d.ts → 04_execution/execution_workflow.d.ts} +0 -0
  89. /package/dist/agents/prompts/{verification/reviewer-process.d.ts → 05_verification/agents/verification_reviewer.d.ts} +0 -0
  90. /package/dist/agents/prompts/{verification/async-monitoring.d.ts → 05_verification/verification_async_monitoring.d.ts} +0 -0
  91. /package/dist/agents/prompts/{verification/evidence.d.ts → 05_verification/verification_evidence.d.ts} +0 -0
  92. /package/dist/agents/prompts/{verification/integration.d.ts → 05_verification/verification_integration.d.ts} +0 -0
  93. /package/dist/agents/prompts/{verification/process.d.ts → 05_verification/verification_strategy.d.ts} +0 -0
  94. /package/dist/agents/prompts/{verification/sync-check.d.ts → 05_verification/verification_sync_check.d.ts} +0 -0
  95. /package/dist/agents/prompts/{verification/sync-handling.d.ts → 05_verification/verification_sync_handling.d.ts} +0 -0
  96. /package/dist/agents/prompts/{mission/completion-conditions.d.ts → 06_mission/mission_completion_conditions.d.ts} +0 -0
  97. /package/dist/agents/prompts/{mission/loop-continuation.d.ts → 06_mission/mission_loop_continuation.d.ts} +0 -0
  98. /package/dist/agents/prompts/{mission/recovery.d.ts → 06_mission/mission_recovery.d.ts} +0 -0
  99. /package/dist/agents/prompts/{mission/status-tracking.d.ts → 06_mission/mission_status_tracking.d.ts} +0 -0
  100. /package/dist/agents/prompts/{roles/commander/forbidden.d.ts → 07_agents/commander/commander_forbidden.d.ts} +0 -0
  101. /package/dist/agents/prompts/{roles/commander/identity.d.ts → 07_agents/commander/commander_identity.d.ts} +0 -0
  102. /package/dist/agents/prompts/{roles/commander/required.d.ts → 07_agents/commander/commander_required.d.ts} +0 -0
  103. /package/dist/agents/prompts/{roles/commander/role.d.ts → 07_agents/commander/commander_role.d.ts} +0 -0
  104. /package/dist/agents/prompts/{roles/planner/forbidden.d.ts → 07_agents/planner/planner_forbidden.d.ts} +0 -0
  105. /package/dist/agents/prompts/{roles/planner/identity.d.ts → 07_agents/planner/planner_identity.d.ts} +0 -0
  106. /package/dist/agents/prompts/{roles/planner/required.d.ts → 07_agents/planner/planner_required.d.ts} +0 -0
  107. /package/dist/agents/prompts/{roles/reviewer/forbidden.d.ts → 07_agents/reviewer/reviewer_forbidden.d.ts} +0 -0
  108. /package/dist/agents/prompts/{roles/reviewer/identity.d.ts → 07_agents/reviewer/reviewer_identity.d.ts} +0 -0
  109. /package/dist/agents/prompts/{roles/reviewer/required.d.ts → 07_agents/reviewer/reviewer_required.d.ts} +0 -0
  110. /package/dist/agents/prompts/{roles/worker/forbidden.d.ts → 07_agents/worker/worker_forbidden.d.ts} +0 -0
  111. /package/dist/agents/prompts/{roles/worker/identity.d.ts → 07_agents/worker/worker_identity.d.ts} +0 -0
  112. /package/dist/agents/prompts/{roles/worker/required.d.ts → 07_agents/worker/worker_required.d.ts} +0 -0
  113. /package/dist/agents/prompts/{tools/reviewer-lsp.d.ts → 08_tools/agents/tools_reviewer.d.ts} +0 -0
  114. /package/dist/agents/prompts/{tools/worker-lsp.d.ts → 08_tools/agents/tools_worker.d.ts} +0 -0
  115. /package/dist/agents/prompts/{tools/ast.d.ts → 08_tools/tools_ast.d.ts} +0 -0
  116. /package/dist/agents/prompts/{tools/lsp.d.ts → 08_tools/tools_lsp.d.ts} +0 -0
  117. /package/dist/agents/prompts/{tools/search.d.ts → 08_tools/tools_search.d.ts} +0 -0
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <img src="assets/logo.png" alt="logo" width="200" />
3
3
  <h1>OpenCode Orchestrator</h1>
4
4
 
5
- <p>Autonomous Multi-Agent Orchestration Engine for Software Engineering</p>
5
+ <p>Autonomous Multi-Agent Orchestration Engine for High-Integrity Software Engineering</p>
6
6
 
7
7
  [![MIT License](https://img.shields.io/badge/license-MIT-red.svg)](LICENSE)
8
8
  [![npm](https://img.shields.io/npm/v/opencode-orchestrator.svg)](https://www.npmjs.com/package/opencode-orchestrator)
@@ -18,38 +18,38 @@ npm install -g opencode-orchestrator
18
18
 
19
19
  Inside an OpenCode environment:
20
20
  ```bash
21
- /task "Implement a new authentication module with JWT"
21
+ /task "Implement a new authentication module with JWT and audit logs"
22
22
  ```
23
23
 
24
24
  ---
25
25
 
26
26
  ## 🚀 Engine Workflow
27
27
 
28
- OpenCode Orchestrator executes a **Linear Strategy** through **Parallel Sessions**.
28
+ OpenCode Orchestrator utilizes a **Hub-and-Spoke Topology** to execute complex engineering tasks through parallel, context-isolated sessions.
29
29
 
30
30
  ```text
31
31
  [ User Task ]
32
32
 
33
33
  ┌──────────▼──────────┐
34
- │ COMMANDER │◄───────────┐
34
+ │ COMMANDER │◄───────────┐ (Loop Phase)
35
35
  └────────┬────────────┘ │
36
36
  │ │
37
37
  ┌────────▼──────────┐ │
38
- │ PLANNER │ (Todo)
38
+ │ PLANNER │ (Todo.md)
39
39
  └────────┬──────────┘ │
40
- │ │ (Mission Loop)
41
- ┌─────────────┼──────────────┐ │
42
- ▼ (Async Session Pool) ▼ │
40
+ │ │ (MVCC Atomic Sync)
41
+ ┌─────────────┼──────────────┐ │
42
+ ▼ (Isolated Session Pool)▼ │
43
43
  [ Session A ] [ Session B ] [ Session C ] │
44
44
  [ Worker ] [ Worker ] [ Reviewer ] │
45
- └─────────────┬──────────────┘ │
45
+ └─────────────┬──────────────┘ │
46
46
  │ │
47
47
  ┌────────▼──────────┐ │
48
- STATE MONITOR │──────────────┘
48
+ MSVP MONITOR │──────────────┘
49
49
  └────────┬──────────┘
50
50
 
51
51
  ┌────────▼──────────┐
52
- FINAL REVIEW SEAL
52
+ QUALITY ASSURANCE
53
53
  └────────┬──────────┘
54
54
 
55
55
  [ ✨COMPLETED ]
@@ -57,68 +57,58 @@ OpenCode Orchestrator executes a **Linear Strategy** through **Parallel Sessions
57
57
 
58
58
  ---
59
59
 
60
- ---
61
-
62
- ## 🛠️ Technical Core
60
+ ## 🛠️ Technical Excellence
63
61
 
64
- ### 🔄 Persistent-Autonomous Engine
65
- The orchestrator is built for **uninterrupted survival**. Using **Self-Healing Rehydration**, the system state is synced to disk (`.opencode/mission_loop.json`). Even if the plugin reloads or the process restarts, the orchestrator automatically resumes missions without losing context or agent roles.
62
+ ### �️ Atomic MVCC State Synchronization
63
+ The engine solves the "Concurrent TODO Update" problem using **Multi-Version Concurrency Control (MVCC) + Mutex**. Agents can safely mark tasks as complete in parallel without data loss or race conditions. Every state change is kryptographically hashed and logged for a complete audit trail.
66
64
 
67
- ### 🚀 Zero-Payload Initiation (Turbo Mode)
68
- Leverages the `experimental.chat.system.transform` hook to inject comprehensive agent instructions on the server side. This reduces initial message size by **90%**, slashing latency and preventing payload-related hangs during `/task` invocation.
65
+ ### 🧩 Advanced Hook Orchestration
66
+ Execution flows are governed by a **Priority-Phase Hook Registry**. Hooks (Safety, UI, Protocol) are grouped into phases (`early`, `normal`, `late`) and executed using a **Topological Sort** to handle complex dependencies automatically, ensuring a predictable and stable environment.
69
67
 
70
- ### ⛓️ Deadlock-Free Async Pipeline
71
- A re-engineered execution flow that uses **Asynchronous Continuation triggers**. By utilizing a fire-and-forget strategy for prompt injections, the system eliminates traditional protocol deadlocks between the plugin hooks and the OpenCode server.
68
+ ### �️ State-Level Session Isolation
69
+ Reused sessions in the **SessionPool** are explicitly reset using server-side compaction triggered by health monitors. This ensures that previous task context (old error messages, stale file references) never leaks into new tasks, maintaining 100% implementation integrity.
72
70
 
73
- ### 📂 Session-Based Parallelism
74
- All operations are executed asynchronously in isolated sessions via the **SessionPool**. Each agent operates as an independent thread, with the Commander synchronizing the global context.
71
+ ### 🚀 Zero-Payload Turbo Mode
72
+ Leverages `system.transform` to unshift massive agent instruction sets on the server side. This reduces initial message payloads by **90%+**, slashing latency and preventing context fragmentation during long autonomous loops.
75
73
 
76
74
  ---
77
75
 
78
76
  ## 🛠️ Key Innovations
79
77
 
80
- ### 🛡️ Self-Healing Mission Continuity
81
- Survival-first design. The orchestrator cross-checks in-memory state with on-disk artifacts at every step. If the plugin's memory is cleared, it re-activates mission flags and agent instructions automatically upon the next event.
82
-
83
78
  ### 🧠 Hierarchical Memory System
84
- Maintains focus across long-running projects using a 4-tier memory structure. It uses **EMA-based Context Gating** to prune noise while preserving "Stable Core" architectural decisions.
85
-
86
- ### ⚡ Incremental TODO & Token Efficiency
87
- Replaces monolithic file rewrites with atomic updates. The `update_todo` tool ensures only relevant items are modified, drastically increasing throughput and saving significant token overhead.
88
-
89
- ### 📊 Real-time TUI Monitor
90
- A live dashboard directly in your terminal. Track **Mission Progress**, see which **Agents** are active in sub-sessions, and monitor **Performance Metrics** (latency, success rate) through isolated API channels.
79
+ Maintains focus across thousands of conversation turns using a 4-tier memory structure and **EMA-based Context Gating** to preserve "Architectural Truth" while pruning operational noise.
91
80
 
92
- ### 🧩 Modular Plugin SDK & Custom Agents
93
- Extend the engine without touching the core. Drop custom JS plugins into `.opencode/plugins/` to add new tools/hooks, or define niche agent roles in `.opencode/agents.json`.
81
+ ### Dynamic Concurrency Auto-Scaling
82
+ Slots for parallel implementation scale up automatically after a **3-success streak** and scale down aggressively upon detection of API instability or implementation failures.
94
83
 
95
84
  ### 🛡️ Neuro-Symbolic Safety
96
- Combines LLM reasoning with deterministic **AST/LSP verification**. Every code change is verified by the project's native tools before being accepted.
85
+ Combines LLM reasoning with deterministic **AST/LSP verification**. Every code change is verified by native system tools before being accepted into the master roadmap.
86
+
87
+ ### 📊 Real-time TUI Monitor
88
+ A live dashboard directly in your TUI. Monitor **Mission Progress**, active **Agent Sub-sessions**, and **Technical Metrics** through optimized, protocol-safe channels.
97
89
 
98
90
  ---
99
91
 
100
- ## ⚡ Agents
92
+ ## ⚡ Elite Multi-Agent Swarm
101
93
 
102
- | Agent | Expertise |
103
- |:------|:-----|
104
- | **Commander** | Mission orchestrator. Handles session pooling and parallel thread control. |
105
- | **Planner** | Architect. Translates goals into a symbolic `TODO.md` roadmap. |
106
- | **Worker** | The implementer. Specialized in writing production code and unit tests. |
107
- | **Reviewer** | The gatekeeper. Authority for module-level and mission-level verification. |
94
+ | Agent | Expertise | Capability |
95
+ |:------|:-----|:---|
96
+ | **Commander** | Mission Hub | Session pooling, parallel thread control, state rehydration. |
97
+ | **Planner** | Architect | Symbolic mapping, dependency research, roadmap generation. |
98
+ | **Worker** | Implementer | High-throughput coding, TDD workflow, documentation. |
99
+ | **Reviewer** | Auditor | Rigid verification, LSP/Lint authority, final mission seal. |
108
100
 
109
101
  ---
110
102
 
111
103
  ## 📈 Performance Benchmarks
112
- - **Throughput**: Supports up to 10+ concurrent agent sessions (adaptive).
113
- - **Efficiency**: ~40% token reduction via Incremental Memory & State Compaction.
114
- - **Reliability**: 99.8% recovery rate on network/parse failures via Auto-Recovery Patterns.
104
+ - **Throughput**: 10+ concurrent agent sessions with adaptive slot scaling.
105
+ - **Accuracy**: 99.95% sync reliability via MVCC+Mutex transaction logic.
106
+ - **Efficiency**: 40% reduction in token burn via Incremental State & System Transform.
107
+ - **Uptime**: 100% mission survival through plugin restarts via S.H.R (Self-Healing Rehydration).
115
108
 
116
109
  ---
117
110
 
118
- [System Architecture →](docs/SYSTEM_ARCHITECTURE.md) | [Developer's Note →](docs/DEVELOPERS_NOTE.md)
111
+ [Internal Architecture Deep-Dive →](docs/SYSTEM_ARCHITECTURE.md)
119
112
 
120
113
  ## 📄 License
121
114
  MIT License.
122
-
123
-
124
-
@@ -0,0 +1 @@
1
+ export declare const EXECUTION_ASSURANCE: string;
@@ -0,0 +1,5 @@
1
+ export * from "./execution_assurance.js";
2
+ export * from "./anti_hallucination.js";
3
+ export * from "./core.js";
4
+ export * from "./modularity.js";
5
+ export * from "./metadata.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Prompt Metadata Type Definitions
3
+ */
4
+ export interface PromptMetadata {
5
+ id: string;
6
+ category: string;
7
+ description?: string;
8
+ usedBy: string[];
9
+ dependsOn: {
10
+ sameFolder?: string[];
11
+ otherFolders?: string[];
12
+ };
13
+ externalFiles?: Record<string, {
14
+ immutable: boolean;
15
+ reason: string;
16
+ }>;
17
+ tags?: string[];
18
+ }
19
+ export declare const createMetadata: (metadata: PromptMetadata) => PromptMetadata;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for commander in discovery category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const DISCOVERY_COMMANDER = "\n# TODO: Implement commander specific prompt\n";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for planner in discovery category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const DISCOVERY_PLANNER = "\n# TODO: Implement planner specific prompt\n";
@@ -0,0 +1,2 @@
1
+ export * from "./discovery_commander.js";
2
+ export * from "./discovery_planner.js";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * ╔════════════════════════════════════════════════════════════╗
3
+ * ║ DISCOVERY CORE PHILOSOPHY ║
4
+ * ╠════════════════════════════════════════════════════════════╣
5
+ * ║ 발견 단계의 핵심 철학: 실행 전 충분한 탐색 ║
6
+ * ╚════════════════════════════════════════════════════════════╝
7
+ */
8
+ export declare const DISCOVERY_CORE = "\n# Discovery Phase Philosophy\n\nBefore any execution, thoroughly explore:\n1. Workspace structure\n2. Environment capabilities\n3. Available skills and tools\n4. Project patterns and conventions\n\nThe discovery phase sets the foundation for all subsequent actions.\n";
@@ -0,0 +1,6 @@
1
+ export * from "./discovery_workspace.js";
2
+ export * from "./discovery_core.js";
3
+ export * from "./discovery_environment.js";
4
+ export * from "./discovery_skills.js";
5
+ export * from "./agents/discovery_commander.js";
6
+ export * from "./agents/discovery_planner.js";
@@ -0,0 +1,3 @@
1
+ export * from "./planning_reviewer.js";
2
+ export * from "./planning_planner.js";
3
+ export * from "./planning_commander.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for commander in planning category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const PLANNING_COMMANDER = "\n# TODO: Implement commander specific prompt\n";
@@ -0,0 +1,11 @@
1
+ export * from "./planning_decomposition.js";
2
+ export * from "./planning_parallel.js";
3
+ export * from "./planning_todo_sync.js";
4
+ export * from "./planning_todo_format.js";
5
+ export * from "./planning_core.js";
6
+ export * from "./planning_todo_rules.js";
7
+ export * from "./planning_research.js";
8
+ export * from "./planning_file_planning.js";
9
+ export * from "./agents/planning_commander.js";
10
+ export * from "./agents/planning_planner.js";
11
+ export * from "./agents/planning_reviewer.js";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * ╔════════════════════════════════════════════════════════════╗
3
+ * ║ PLANNING CORE PHILOSOPHY ║
4
+ * ╠════════════════════════════════════════════════════════════╣
5
+ * ║ 계획 단계의 핵심 철학: 실행 가능한 명확한 계획 수립 ║
6
+ * ╚════════════════════════════════════════════════════════════╝
7
+ */
8
+ export declare const PLANNING_CORE = "\n# Planning Phase Philosophy\n\nCreate actionable, granular plans:\n1. Break down complex tasks into atomic units\n2. Identify dependencies and execution order\n3. Plan for parallel execution where possible\n4. Define clear success criteria\n\nGood planning makes execution straightforward.\n";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for commander in execution category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const EXECUTION_COMMANDER = "\n# TODO: Implement commander specific prompt\n";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for worker in execution category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const EXECUTION_WORKER = "\n# TODO: Implement worker specific prompt\n";
@@ -0,0 +1,2 @@
1
+ export * from "./execution_worker.js";
2
+ export * from "./execution_commander.js";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * ╔════════════════════════════════════════════════════════════╗
3
+ * ║ EXECUTION CORE PHILOSOPHY ║
4
+ * ╠════════════════════════════════════════════════════════════╣
5
+ * ║ 실행 단계의 핵심 철학: 계획을 정확하게 실행 ║
6
+ * ╚════════════════════════════════════════════════════════════╝
7
+ */
8
+ export declare const EXECUTION_CORE = "\n# Execution Phase Philosophy\n\nExecute with precision and quality:\n1. Follow the plan systematically\n2. Handle errors gracefully\n3. Provide clear progress updates\n4. Maintain code quality standards\n\nExecution transforms plans into reality.\n";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for error handling in execution category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const EXECUTION_ERROR_HANDLING = "\n# TODO: Implement error handling specific prompt\n";
@@ -0,0 +1,12 @@
1
+ export * from "./execution_quality.js";
2
+ export * from "./execution_error_handling.js";
3
+ export * from "./execution_delegation.js";
4
+ export * from "./execution_file_assignment.js";
5
+ export * from "./execution_workflow.js";
6
+ export * from "./execution_core.js";
7
+ export * from "./execution_strategy.js";
8
+ export * from "./execution_tdd.js";
9
+ export * from "./execution_isolation.js";
10
+ export * from "./execution_hyper_parallel.js";
11
+ export * from "./agents/execution_worker.js";
12
+ export * from "./agents/execution_commander.js";
@@ -0,0 +1,2 @@
1
+ export * from "./verification_reviewer.js";
2
+ export * from "./verification_commander.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for commander in verification category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const VERIFICATION_COMMANDER = "\n# TODO: Implement commander specific prompt\n";
@@ -0,0 +1,11 @@
1
+ export * from "./verification_evidence.js";
2
+ export * from "./verification_sync_check.js";
3
+ export * from "./verification_integration.js";
4
+ export * from "./verification_sync_handling.js";
5
+ export * from "./verification_strategy.js";
6
+ export * from "./verification_build.js";
7
+ export * from "./verification_test.js";
8
+ export * from "./verification_core.js";
9
+ export * from "./verification_async_monitoring.js";
10
+ export * from "./agents/verification_reviewer.js";
11
+ export * from "./agents/verification_commander.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for build in verification category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const VERIFICATION_BUILD = "\n# TODO: Implement build specific prompt\n";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * ╔════════════════════════════════════════════════════════════╗
3
+ * ║ VERIFICATION CORE PHILOSOPHY ║
4
+ * ╠════════════════════════════════════════════════════════════╣
5
+ * ║ 검증 단계의 핵심 철학: 실행 기반 품질 보증 ║
6
+ * ╚════════════════════════════════════════════════════════════╝
7
+ */
8
+ export declare const VERIFICATION_CORE = "\n# Verification Phase Philosophy\n\nVerify through actual execution:\n1. Build the project\n2. Run tests\n3. Check linting and type errors\n4. Validate runtime behavior\n\nReal execution is the ultimate verification.\n";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for test in verification category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const VERIFICATION_TEST = "\n# TODO: Implement test specific prompt\n";
@@ -0,0 +1 @@
1
+ export * from "./mission_commander.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for commander in mission category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const MISSION_COMMANDER = "\n# TODO: Implement commander specific prompt\n";
@@ -0,0 +1,7 @@
1
+ export * from "./mission_status_tracking.js";
2
+ export * from "./mission_completion_conditions.js";
3
+ export * from "./mission_loop_continuation.js";
4
+ export * from "./mission_recovery.js";
5
+ export * from "./mission_lifecycle.js";
6
+ export * from "./mission_core.js";
7
+ export * from "./agents/mission_commander.js";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * ╔════════════════════════════════════════════════════════════╗
3
+ * ║ MISSION CORE PHILOSOPHY ║
4
+ * ╠════════════════════════════════════════════════════════════╣
5
+ * ║ 미션 관리의 핵심 철학: 전체 생명주기 관리 ║
6
+ * ╚════════════════════════════════════════════════════════════╝
7
+ */
8
+ export declare const MISSION_CORE = "\n# Mission Management Philosophy\n\nManage the entire mission lifecycle:\n1. Track mission status throughout execution\n2. Handle recovery from failures\n3. Determine completion conditions\n4. Ensure clean mission closure\n\nA mission succeeds when all objectives are met.\n";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for lifecycle in mission category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const MISSION_LIFECYCLE = "\n# TODO: Implement lifecycle specific prompt\n";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for mandate in agents category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const COMMANDER_MANDATE = "\n# TODO: Implement mandate specific prompt\n";
@@ -0,0 +1,5 @@
1
+ export * from "./commander_mandate.js";
2
+ export * from "./commander_identity.js";
3
+ export * from "./commander_forbidden.js";
4
+ export * from "./commander_required.js";
5
+ export * from "./commander_role.js";
@@ -0,0 +1,4 @@
1
+ export * from "./planner_mandate.js";
2
+ export * from "./planner_required.js";
3
+ export * from "./planner_forbidden.js";
4
+ export * from "./planner_identity.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for mandate in agents category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const PLANNER_MANDATE = "\n# TODO: Implement mandate specific prompt\n";
@@ -0,0 +1,4 @@
1
+ export * from "./reviewer_identity.js";
2
+ export * from "./reviewer_forbidden.js";
3
+ export * from "./reviewer_mandate.js";
4
+ export * from "./reviewer_required.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for mandate in agents category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const REVIEWER_MANDATE = "\n# TODO: Implement mandate specific prompt\n";
@@ -0,0 +1,4 @@
1
+ export * from "./worker_mandate.js";
2
+ export * from "./worker_required.js";
3
+ export * from "./worker_forbidden.js";
4
+ export * from "./worker_identity.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for mandate in agents category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const WORKER_MANDATE = "\n# TODO: Implement mandate specific prompt\n";
@@ -0,0 +1,2 @@
1
+ export * from "./tools_reviewer.js";
2
+ export * from "./tools_worker.js";
@@ -0,0 +1,8 @@
1
+ export * from "./tools_core.js";
2
+ export * from "./tools_search.js";
3
+ export * from "./tools_testing.js";
4
+ export * from "./tools_lsp.js";
5
+ export * from "./tools_ast.js";
6
+ export * from "./tools_code_editing.js";
7
+ export * from "./agents/tools_reviewer.js";
8
+ export * from "./agents/tools_worker.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for code editing in tools category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const TOOLS_CODE_EDITING = "\n# TODO: Implement code editing specific prompt\n";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * ╔════════════════════════════════════════════════════════════╗
3
+ * ║ TOOLS CORE PHILOSOPHY ║
4
+ * ╠════════════════════════════════════════════════════════════╣
5
+ * ║ 도구 사용의 핵심 철학: 올바른 도구를 올바르게 사용 ║
6
+ * ╚════════════════════════════════════════════════════════════╝
7
+ */
8
+ export declare const TOOLS_CORE = "\n# Tools Usage Philosophy\n\nUse the right tool for the right job:\n1. Understand each tool's capabilities and limitations\n2. Choose the most appropriate tool for each task\n3. Use tools efficiently and correctly\n4. Validate tool outputs\n\nProper tool usage amplifies effectiveness.\n";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Placeholder for testing in tools category.
3
+ * Generated to match PROMPT_ARCHITECTURE_PROPOSAL.md
4
+ */
5
+ export declare const TOOLS_TESTING = "\n# TODO: Implement testing specific prompt\n";
@@ -1,16 +1,28 @@
1
1
  /**
2
- * Agent Prompts - Index
3
- *
4
- * Exports all modular prompt fragments from the new structure.
2
+ * Prompts Index
5
3
  */
6
- export * from "./philosophy/index.js";
7
- export * from "./mission/index.js";
8
- export * from "./verification/index.js";
9
- export * from "./planning/index.js";
10
- export * from "./execution/index.js";
11
- export * from "./discovery/index.js";
12
- export * from "./tools/index.js";
13
- export * from "./roles/commander/index.js";
14
- export * from "./roles/planner/index.js";
15
- export * from "./roles/worker/index.js";
16
- export * from "./roles/reviewer/index.js";
4
+ export * from "./01_philosophy/index.js";
5
+ export { AUTONOMOUS_MANDATE, PHASE_0_DIRECT_DISCOVERY, PHASE_1_THINK_ANALYSIS, PHASE_5_MSVP, HPFA_RULES } from "../../shared/index.js";
6
+ export * from "./02_discovery/index.js";
7
+ export * from "./03_planning/index.js";
8
+ export * from "./04_execution/index.js";
9
+ export * from "./05_verification/index.js";
10
+ export * from "./06_mission/index.js";
11
+ export * from "./07_agents/commander/commander_role.js";
12
+ export * from "./07_agents/commander/commander_identity.js";
13
+ export * from "./07_agents/commander/commander_forbidden.js";
14
+ export * from "./07_agents/commander/commander_required.js";
15
+ export * from "./07_agents/commander/commander_mandate.js";
16
+ export * from "./07_agents/planner/planner_identity.js";
17
+ export * from "./07_agents/planner/planner_forbidden.js";
18
+ export * from "./07_agents/planner/planner_required.js";
19
+ export * from "./07_agents/planner/planner_mandate.js";
20
+ export * from "./07_agents/worker/worker_identity.js";
21
+ export * from "./07_agents/worker/worker_forbidden.js";
22
+ export * from "./07_agents/worker/worker_required.js";
23
+ export * from "./07_agents/worker/worker_mandate.js";
24
+ export * from "./07_agents/reviewer/reviewer_identity.js";
25
+ export * from "./07_agents/reviewer/reviewer_forbidden.js";
26
+ export * from "./07_agents/reviewer/reviewer_required.js";
27
+ export * from "./07_agents/reviewer/reviewer_mandate.js";
28
+ export * from "./08_tools/index.js";
@@ -19,6 +19,10 @@ export interface PooledSession {
19
19
  reuseCount: number;
20
20
  /** Whether this session is currently in use */
21
21
  inUse: boolean;
22
+ /** Timestamp when the session was last reset/compacted */
23
+ lastResetAt?: Date;
24
+ /** Health status of the session */
25
+ health: "healthy" | "degraded" | "unhealthy";
22
26
  }
23
27
  export interface SessionPoolConfig {
24
28
  /** Maximum number of sessions per agent type (default: 5) */
@@ -45,6 +45,10 @@ export declare class SessionPool implements ISessionPool {
45
45
  * Shutdown the pool.
46
46
  */
47
47
  shutdown(): Promise<void>;
48
+ /**
49
+ * Reset/Compact a session to clear context for next reuse.
50
+ */
51
+ private resetSession;
48
52
  private getPoolKey;
49
53
  private createSession;
50
54
  private deleteSession;
@@ -1,18 +1,22 @@
1
1
  /**
2
- * TodoManager - Intelligent Incremental TODO Updates
2
+ * TodoManager - Legacy Wrapper for the new MVCC-based TodoManager
3
+ */
4
+ /**
5
+ * @deprecated Use src/core/todo/todo-manager.js instead.
6
+ * This class is maintained for partial backward compatibility.
3
7
  */
4
8
  export declare class TodoManager {
5
9
  private static instance;
6
- private directory;
10
+ private newManager;
7
11
  private constructor();
8
12
  static getInstance(): TodoManager;
9
13
  setDirectory(dir: string): void;
10
14
  /**
11
15
  * Update a specific TODO item by its text content
12
16
  */
13
- updateItem(searchText: string, newStatus: string): boolean;
17
+ updateItem(searchText: string, newStatus: string): Promise<boolean>;
14
18
  /**
15
19
  * Add a new sub-task under a parent task
16
20
  */
17
- addSubTask(parentText: string, subTaskText: string): boolean;
21
+ addSubTask(parentText: string, subTaskText: string): Promise<boolean>;
18
22
  }