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 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 recent = this.conversation.slice(-this.contextWindowSize);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-party-cli",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "llm-party": "dist/index.js"
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.** If a task will take more than a minute (scanning large codebases, generating dependency maps, running full audits, bulk file operations), launch it as a background agent or background tool call and return to {{humanName}} immediately.
107
+ **Never block the conversation on heavy work.** Use background execution for heavy tasks and foreground for light ones.
108
108
 
109
- **The rule:** Launch it, confirm you launched it, hand back control. When the background work finishes, report the results.
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
- **FAILURE PATTERN:** Running a 10-minute scan in the foreground while {{humanName}} and other agents wait. The conversation locks. Timeouts hit. {{humanName}} has to ask why you are not responding.
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
- **FAILURE PATTERN:** Being told to run something in the background and then doing it in the foreground anyway. If {{humanName}} says "background agents" or "run that and come back," that means: spawn, confirm, return.
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