llm-party-cli 0.7.0 → 0.7.1
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/dist/index.js +1 -8
- package/package.json +1 -1
- package/prompts/base.md +31 -4
package/dist/index.js
CHANGED
|
@@ -39861,14 +39861,7 @@ class Orchestrator {
|
|
|
39861
39861
|
return this.agentTimeouts.get(agentName) ?? this.defaultTimeout;
|
|
39862
39862
|
}
|
|
39863
39863
|
buildInputForAgent(agentName, unseen) {
|
|
39864
|
-
const
|
|
39865
|
-
const merged = [...recent, ...unseen];
|
|
39866
|
-
const dedupById = new Map;
|
|
39867
|
-
for (const msg of merged) {
|
|
39868
|
-
dedupById.set(msg.id, msg);
|
|
39869
|
-
}
|
|
39870
|
-
const ordered = Array.from(dedupById.values()).sort((a, b2) => a.id - b2.id);
|
|
39871
|
-
const filtered = ordered.filter((msg) => msg.from.toUpperCase() !== agentName.toUpperCase());
|
|
39864
|
+
const filtered = unseen.filter((msg) => msg.from.toUpperCase() !== agentName.toUpperCase());
|
|
39872
39865
|
if (this.reminderInterval <= 0 || filtered.length < this.reminderInterval) {
|
|
39873
39866
|
return filtered;
|
|
39874
39867
|
}
|
package/package.json
CHANGED
package/prompts/base.md
CHANGED
|
@@ -104,13 +104,40 @@ Do not mark a task complete because you think you did it. Verify it the way anot
|
|
|
104
104
|
|
|
105
105
|
## Long-Running Tasks
|
|
106
106
|
|
|
107
|
-
**Never block the conversation on heavy work.**
|
|
107
|
+
**Never block the conversation on heavy work.** Use background execution for heavy tasks and foreground for light ones.
|
|
108
108
|
|
|
109
|
-
**
|
|
109
|
+
**Run in BACKGROUND (heavy work):**
|
|
110
|
+
- Scanning entire codebases or large directory trees
|
|
111
|
+
- Generating dependency maps or architecture reports
|
|
112
|
+
- Running full test suites or builds
|
|
113
|
+
- Bulk file operations (reading/writing more than ~5 files)
|
|
114
|
+
- Large grep/search across many directories
|
|
115
|
+
- Full audits, reviews, or analysis of many files
|
|
116
|
+
- Web searches and multi-source research
|
|
110
117
|
|
|
111
|
-
**
|
|
118
|
+
**Run in FOREGROUND (light work):**
|
|
119
|
+
- Reading 1-3 files
|
|
120
|
+
- Editing a file
|
|
121
|
+
- Running a quick command (git status, ls, single grep)
|
|
122
|
+
- Writing to memory files
|
|
123
|
+
- Answering from existing context
|
|
112
124
|
|
|
113
|
-
**
|
|
125
|
+
**The heuristic:** If the task touches more than ~5 files or involves scanning/auditing/mapping, background it.
|
|
126
|
+
|
|
127
|
+
**How to run background work:**
|
|
128
|
+
- Use the Agent tool with `run_in_background: true`
|
|
129
|
+
- Use the Bash tool with `run_in_background: true` for shell commands
|
|
130
|
+
- You will be notified automatically when background work completes. Do NOT poll or sleep-wait.
|
|
131
|
+
|
|
132
|
+
**The rule:** Launch it, confirm in ONE sentence that it is running, then **keep talking**. Answer the rest of {{humanName}}'s message. Continue the conversation. When background results arrive, report them.
|
|
133
|
+
|
|
134
|
+
**Background work does NOT end your turn.** If {{humanName}} asked you to "run X in background" AND asked you a question, do BOTH: launch X in background AND answer the question in the SAME response.
|
|
135
|
+
|
|
136
|
+
**FAILURE PATTERN:** Running a 10-minute scan in the foreground while {{humanName}} and other agents wait. The conversation locks. Timeouts hit.
|
|
137
|
+
|
|
138
|
+
**FAILURE PATTERN:** Being told to run something in the background and doing it in the foreground anyway.
|
|
139
|
+
|
|
140
|
+
**FAILURE PATTERN:** Launching a background task and going silent, waiting for results before responding.
|
|
114
141
|
|
|
115
142
|
---
|
|
116
143
|
|