agentworkshop 0.5.5 → 0.5.6
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/.AgentWorkShop/prompts/compaction-hints.md +9 -0
- package/.AgentWorkShop/prompts/host-tools.json +664 -630
- package/.AgentWorkShop/prompts/peer-reply-cross-channel.md +10 -0
- package/.AgentWorkShop/prompts/system-manual.md +6 -1
- package/.output/.AgentWorkShop/prompts/compaction-hints.md +9 -0
- package/.output/.AgentWorkShop/prompts/host-tools.json +664 -630
- package/.output/.AgentWorkShop/prompts/peer-reply-cross-channel.md +10 -0
- package/.output/.AgentWorkShop/prompts/system-manual.md +6 -1
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/d50c6ec2-801c-4ba2-97d8-a4db401b702c.json +1 -0
- package/.output/server/chunks/_/nitro.mjs +1920 -1211
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +25 -3
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/scripts/_dbg-cross-channel-e2e.mjs +157 -0
- package/scripts/test-context-governor.ts +176 -0
- package/scripts/test-memory-brief-chronicle.ts +180 -0
- package/scripts/test-memory-dynamic.ts +3 -1
- package/scripts/test-memory-rrf-mmr.ts +114 -0
- package/server/api/workshop/channels/[id]/messages/index.post.ts +26 -1
- package/server/api/workshop/ws.ts +1 -0
- package/server/data/daqs.json +35 -13
- package/server/data/dcw-lines.json +14 -0
- package/server/data/dcw-products.json +14 -0
- package/server/data/dcw-recipes.json +28 -0
- package/server/data/dcw-rollback.json +122 -1
- package/server/data/dcw-runs.json +54 -36
- package/server/data/dcw-writes.json +60 -0
- package/server/data/dcws.json +42 -0
- package/server/data/line-runs.json +32 -22
- package/server/services/workshop/agents/adapters/omp-rpc-client.ts +65 -0
- package/server/services/workshop/agents/agent-interface.ts +26 -1
- package/server/services/workshop/agents/mock-agent.ts +12 -0
- package/server/services/workshop/agents/omp-agent.ts +277 -8
- package/server/services/workshop/db/database.ts +16 -1
- package/server/services/workshop/db/memory.repo.ts +22 -2
- package/server/services/workshop/prompts/loader.ts +6 -5
- package/server/services/workshop/runtime/agent-runtime.ts +52 -6
- package/server/services/workshop/runtime/channel-runtime.ts +14 -6
- package/server/services/workshop/runtime/manager.ts +192 -3
- package/server/services/workshop/runtime/memory.ts +313 -78
- package/server/services/workshop/types/task.ts +14 -0
- package/.output/public/_nuxt/builds/meta/f2f649c5-fd3b-4507-a3a1-8b4a194de72d.json +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
This message is CROSS-CHANNEL: it comes from the LEADER of another channel (requester: {{fromId}}, source channel: {{fromChannel}}). It REQUIRES a reply.
|
|
2
|
+
|
|
3
|
+
Do the requested work first - handle it as a coordination request from a peer leader: you may gather information with your native tools, or dispatch tasks inside YOUR channel with dispatch_task, then aggregate the results.
|
|
4
|
+
|
|
5
|
+
Reply to the requesting leader with this exact tool call (do NOT use send_message_to_agent for this - the requester is not a member of your channel and same-channel delivery would fail):
|
|
6
|
+
|
|
7
|
+
- tool: send_cross_channel_message
|
|
8
|
+
- to_channel_id: {{fromChannel}}
|
|
9
|
+
- message: your result + the content they asked for
|
|
10
|
+
- require_reply: set true ONLY if you need further response from them
|
|
@@ -14,5 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
### Memory & Modes
|
|
16
16
|
|
|
17
|
-
- Memory
|
|
17
|
+
- Memory is LAYERED — each injection level has a different purpose:
|
|
18
|
+
- **Session brief (auto-injected, top of every turn)**: a one-glance recap of your recent completions and active team conventions. Maintained by the platform; never re-save it.
|
|
19
|
+
- **Relevance primer (auto-injected)**: hints retrieved for the CURRENT task — memories from sibling/parent tasks of the same goal are boosted to the top, so check them first before planning.
|
|
20
|
+
- **search_memory (on demand)**: full retrieval over your private memories AND channel-shared memories — including the team chronicle (团队编年史), past session compaction summaries (会话压缩摘要), and monthly reflections (作业反思). Search BEFORE starting work that might already have history.
|
|
21
|
+
- save_memory: distill reusable conclusions only (scope=private for personal lessons; scope=shared for conventions the whole team benefits from). Do NOT save whole task logs — the platform auto-archives task outcomes, team results, and session compaction summaries for you.
|
|
22
|
+
- Session compaction: when your context window fills up, the platform compacts the session AUTOMATICALLY between turns (never mid-execution) and stores the summary into your private memory — after a compaction, trust the injected brief/primer and search_memory for anything that feels forgotten.
|
|
18
23
|
- Execution modes: goal (judge satisfaction before closing) / loop (recurring) / pipeline (ordered stages, stage N+1 receives stage N output).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Summarize this conversation segment for context-window compaction. The summary replaces the raw history and will ALSO be archived into the agent's persistent memory, so it must stand alone. Keep (in this priority order):
|
|
2
|
+
|
|
3
|
+
1. Task context: task IDs, titles, and their completion state; which parent goal this belongs to.
|
|
4
|
+
2. Hard results: deliverables produced, file paths created/modified, key numbers/IDs discovered.
|
|
5
|
+
3. Decisions & rationale: what was chosen, what was rejected and why.
|
|
6
|
+
4. Team coordination: promises made to teammates (send/reply obligations, in_reply_to IDs), handoffs in progress.
|
|
7
|
+
5. Unfinished work: exact next steps, pending tool calls, blockers.
|
|
8
|
+
|
|
9
|
+
Drop: raw tool output dumps, file contents already written to disk, prose narration, repeated progress reports. Be concrete and factual; use compact bullet lines. Write in the conversation's dominant language. Max ~400 words.
|