@yemi33/minions 0.1.636 → 0.1.637

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.637 (2026-04-08)
4
+
5
+ ### Other
6
+ - perf: reduce CC/doc-chat tool eagerness and max-turns
7
+
3
8
  ## 0.1.636 (2026-04-08)
4
9
 
5
10
  ### Fixes
package/dashboard.js CHANGED
@@ -538,10 +538,10 @@ Additional: pause-plan, approve-plan, reject-plan, archive-plan, edit-prd-item,
538
538
  Terms like schedules, pipelines, agents, inbox, work items, plans, PRD, PRs, dispatch, routing, KB, notes, pinned, meetings have Minions-specific meanings. Always resolve against Minions state first (read files or call APIs). Fall back to generic only if no Minions context exists.
539
539
 
540
540
  ## Rules
541
- 1. Use tools proactivelyread files before answering.
541
+ 1. Answer from the state preamble and context first. Only use tools for specific file lookups the user asked about not to explore or investigate.
542
542
  2. Be specific — cite IDs, names, filenames, line numbers.
543
543
  3. Never modify engine source. Never push to git without user confirmation.
544
- 4. Delegate exploration to agents. You are the dispatcher, not the worker.`;
544
+ 4. Delegate exploration to agents. You are the dispatcher, not the worker. If answering requires reading more than 2-3 files, dispatch an agent instead.`;
545
545
 
546
546
  // Hash the system prompt so we can detect changes and invalidate stale sessions
547
547
  const _ccPromptHash = require('crypto').createHash('md5').update(CC_STATIC_SYSTEM_PROMPT).digest('hex').slice(0, 8);
@@ -694,7 +694,7 @@ function updateSession(store, key, sessionId, existing) {
694
694
  * @param {number} opts.maxTurns - Max tool-use turns
695
695
  * @param {string} opts.allowedTools - Comma-separated tool list
696
696
  */
697
- async function ccCall(message, { store = 'cc', sessionKey, extraContext, label = 'command-center', timeout = 900000, maxTurns = 50, allowedTools = 'Bash,Read,Write,Edit,Glob,Grep,WebFetch,WebSearch', skipStatePreamble = false, model } = {}) {
697
+ async function ccCall(message, { store = 'cc', sessionKey, extraContext, label = 'command-center', timeout = 900000, maxTurns = 25, allowedTools = 'Bash,Read,Write,Edit,Glob,Grep,WebFetch,WebSearch', skipStatePreamble = false, model } = {}) {
698
698
  if (!model) model = CONFIG.engine?.ccModel || shared.ENGINE_DEFAULTS.ccModel;
699
699
  const ccEffort = CONFIG.engine?.ccEffort || shared.ENGINE_DEFAULTS.ccEffort;
700
700
  const existing = resolveSession(store, sessionKey);
@@ -792,6 +792,9 @@ async function ccDocCall({ message, document, title, filePath, selection, canEdi
792
792
  const result = await ccCall(message, {
793
793
  store: 'doc', sessionKey,
794
794
  extraContext: docContext, label: 'doc-chat',
795
+ allowedTools: canEdit ? 'Read,Write,Edit,Glob,Grep' : 'Read,Glob,Grep',
796
+ maxTurns: canEdit ? 15 : 10,
797
+ skipStatePreamble: true,
795
798
  ...(model ? { model } : {}),
796
799
  });
797
800
  // Store doc hash for next call's unchanged check
@@ -3356,7 +3359,7 @@ What would you like to discuss or change? When you're happy, say "approve" and I
3356
3359
  const streamModel = CONFIG.engine?.ccModel || shared.ENGINE_DEFAULTS.ccModel;
3357
3360
  const streamEffort = CONFIG.engine?.ccEffort || shared.ENGINE_DEFAULTS.ccEffort;
3358
3361
  const llmPromise = callLLMStreaming(prompt, CC_STATIC_SYSTEM_PROMPT, {
3359
- timeout: 900000, label: 'command-center', model: streamModel, maxTurns: 50,
3362
+ timeout: 900000, label: 'command-center', model: streamModel, maxTurns: 25,
3360
3363
  allowedTools: 'Bash,Read,Write,Edit,Glob,Grep,WebFetch,WebSearch',
3361
3364
  sessionId, effort: streamEffort, direct: true,
3362
3365
  onChunk: (text) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.636",
3
+ "version": "0.1.637",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"