# chunks_content

c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.450Z
c1:
  {
    "name": "pi-extensions",
    "private": true,
    "dependencies": {
      "@a5c-ai/babysitter-pi": "^6.0.2",
      "@demigodmode/pi-web-agent": "^1.5.1",
      "@ff-labs/pi-fff": "^0.9.6",
      "@juicesharp/rpiv-ask-user-question": "^1.20.0",
      "context-mode": "^1.0.169",
      "pi-crew": "^0.9.18",
      "pi-ollama-cloud": "^0.6.0",
      "pi-subagents": "^0.33.1"
    }
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.452Z
c1:
  {
    "subagents": {
      "agentOverrides": {
        "scout": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "planner": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "worker": { "model": "ollama/kimi-k2.7-code:cloud", "thinking": "high" },
        "oracle": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "reviewer": { "model": "ollama/kimi-k2.6:cloud", "thinking": "high" },
        "researcher": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "context-builder": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "delegate": { "model": "ollama/minimax-m3:cloud" }
      },
      "modelScope": {
        "allow": [
          "ollama/minimax-m3:cloud",
          "ollama/kimi-k2.6:cloud",
          "ollama/kimi-k2.7-code:cloud",
          "ollama/gemini-3-flash-preview"
        ]
      }
    }
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.453Z
c1:
  {
    "subagents": {
      "agentOverrides": {
        "scout": { "model": "ollama/gemini-3-flash-preview", "thinking": "low" },
        "planner": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "worker": { "model": "ollama/kimi-k2.7-code:cloud", "thinking": "medium" },
        "oracle": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "reviewer": { "model": "ollama/kimi-k2.6:cloud", "thinking": "high" },
        "researcher": { "model": "ollama/gemini-3-flash-preview", "thinking": "medium" },
        "context-builder": { "model": "ollama/gemini-3-flash-preview", "thinking": "low" },
        "delegate": { "model": "ollama/gemini-3-flash-preview" }
      },
      "modelScope": {
        "allow": [
          "ollama/minimax-m3:cloud",
          "ollama/kimi-k2.6:cloud",
          "ollama/kimi-k2.7-code:cloud",
          "ollama/gemini-3-flash-preview"
        ]
      }
    }
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.455Z
c1:
  Explain the selected code as if to a smart colleague new to the codebase.
  Include: what it does, why, edge cases, and a 1-paragraph summary.


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.456Z
c1:
  Break the following request into a numbered plan with concrete file paths and
  acceptance criteria. Do not implement until I approve.


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.457Z
c1:
  Review the current diff (`git diff`) as a senior engineer. Focus on:
  correctness, security, error handling, naming, and missing tests. Output a
  bullet list of issues with file:line references. Don't fix them — just list.


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.461Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-catppuccin-latte",
  	"vars": {
  		"bg": "#eff1f5",
  		"fg": "#4c4f69",
  		"mauve": "#8839ef",
  		"pink": "#ea76cb",
  		"blue": "#1e66f5",
  		"green": "#40a02b",
  		"teal": "#179299",
  		"sky": "#04a5e5",
  		"sapphire": "#209fb5",
  		"red": "#d20f39",
  		"maroon": "#e64553",
  		"peach": "#fe640b",
  		"yellow": "#df8e1d",
  		"rosewater": "#dc8a78",
  		"flamingo": "#dd7878",
  		"lavender": "#7287fd",
  		"gray": "#6c6f85",
  		"dimGray": "#9ca0b0",
  		"darkGray": "#bcc0cc",
  		"darkerGray": "#ccd0da",
  		"selection": "#dcd8f5",
  		"userMsgBg": "#ccd0da",
  		"customMsgBg": "#ccd0da",
  		"toolPending": "#e6e9ef",
  		"toolSuccess": "#e3f0df",
  		"toolError": "#fbe0e3"
  	},
  	"colors": {
  		"accent": "mauve",
  		"border": "darkGray",
  		"borderAccent": "mauve",
  		"borderMuted": "darkerGray",
  		"success": "green",
  		"error": "red",
  		"warning": "peach",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",

  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "lavender",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "sky",
  		"toolOutput": "gray",

  		"mdHeading": "yellow",
  		"mdLink": "blue",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "green",
  		"mdCodeBlock": "#179299",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "blue",

  		"toolDiffAdded": "green",
  		"toolDiffRemoved": "red",
  		"toolDiffContext": "gray",

  		"syntaxComment": "#9ca0b0",
  		"syntaxKeyword": "pink",
  		"syntaxFunction": "blue",
  		"syntaxVariable": "peach",
  		"syntaxString": "green",
  		"syntaxNumber": "peach",
  		"syntaxType": "yellow",
  		"syntaxOperator": "sky",
  		"syntaxPunctuation": "fg",

  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "dimGray",
  		"thinkingLow": "lavender",
  		"thinkingMedium": "mauve",
  		"thinkingHigh": "pink",
  		"thinkingXhigh": "#c896ff",

  		"bashMode": "green"
  	},
  	"export": {
  		"pageBg": "#eff1f5",
  		"cardBg": "#ccd0da",
  		"infoBg": "#dcd8f5"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.463Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-catppuccin-mocha",
  	"vars": {
  		"bg": "#1e1e2e",
  		"fg": "#cdd6f4",
  		"mauve": "#cba6f7",
  		"blue": "#89b4fa",
  		"green": "#a6e3a1",
  		"teal": "#94e2d5",
  		"red": "#f38ba8",
  		"peach": "#fab387",
  		"yellow": "#f9e2af",
  		"pink": "#f5c2e7",
  		"sky": "#89dceb",
  		"lavender": "#b4befe",
  		"rosewater": "#f5e0dc",
  		"gray": "#a6adc8",
  		"dimGray": "#6c7086",
  		"darkGray": "#45475a",
  		"darkerGray": "#313244",
  		"selection": "#313244",
  		"userMsgBg": "#181825",
  		"customMsgBg": "#181825",
  		"toolPending": "#11111b",
  		"toolSuccess": "#1a2b1f",
  		"toolError": "#311d24"
  	},
  	"colors": {
  		"accent": "mauve",
  		"border": "darkGray",
  		"borderAccent": "mauve",
  		"borderMuted": "darkerGray",
  		"success": "green",
  		"error": "red",
  		"warning": "peach",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",

  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "lavender",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "sky",
  		"toolOutput": "gray",

  		"mdHeading": "yellow",
  		"mdLink": "blue",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "green",
  		"mdCodeBlock": "#94e2d5",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "mauve",

  		"toolDiffAdded": "green",
  		"toolDiffRemoved": "red",
  		"toolDiffContext": "gray",

  		"syntaxComment": "#6c7086",
  		"syntaxKeyword": "#cba6f7",
  		"syntaxFunction": "#89b4fa",
  		"syntaxVariable": "#fab387",
  		"syntaxString": "#a6e3a1",
  		"syntaxNumber": "#fab387",
  		"syntaxType": "#f9e2af",
  		"syntaxOperator": "#89dceb",
  		"syntaxPunctuation": "#cdd6f4",

  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "#585b70",
  		"thinkingLow": "mauve",
  		"thinkingMedium": "lavender",
  		"thinkingHigh": "pink",
  		"thinkingXhigh": "rosewater",

  		"bashMode": "green"
  	},
  	"export": {
  		"pageBg": "#1e1e2e",
  		"cardBg": "#181825",
  		"infoBg": "#313244"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.466Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-dark",
  	"vars": {
  		"bg": "#0d1117",
  		"fg": "#c9d1d9",
  		"crewBlue": "#58a6ff",
  		"deepBlue": "#1f6feb",
  		"skyBlue": "#79c0ff",
  		"teal": "#39d353",
  		"amber": "#e3b341",
  		"coral": "#f78166",
  		"rose": "#ff7b72",
  		"lavender": "#d2a8ff",
  		"gray": "#8b949e",
  		"dimGray": "#484f58",
  		"darkGray": "#30363d",
  		"darkerGray": "#21262d",
  		"selection": "#1c2541",
  		"userMsgBg": "#161b22",
  		"customMsgBg": "#161b22",
  		"toolPending": "#111820",
  		"toolSuccess": "#0d1f0d",
  		"toolError": "#2a1215"
  	},
  	"colors": {
  		"accent": "crewBlue",
  		"border": "darkGray",
  		"borderAccent": "deepBlue",
  		"borderMuted": "darkerGray",
  		"success": "teal",
  		"error": "rose",
  		"warning": "amber",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",

  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "lavender",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "skyBlue",
  		"toolOutput": "gray",

  		"mdHeading": "amber",
  		"mdLink": "deepBlue",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "teal",
  		"mdCodeBlock": "#56d364",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "crewBlue",

  		"toolDiffAdded": "teal",
  		"toolDiffRemoved": "rose",
  		"toolDiffContext": "gray",

  		"syntaxComment": "#6e7681",
  		"syntaxKeyword": "#ff7b72",
  		"syntaxFunction": "#d2a8ff",
  		"syntaxVariable": "#ffa657",
  		"syntaxString": "#a5d6ff",
  		"syntaxNumber": "#79c0ff",
  		"syntaxType": "#ff7b72",
  		"syntaxOperator": "#79c0ff",
  		"syntaxPunctuation": "#c9d1d9",

  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "#484f58",
  		"thinkingLow": "#1f6feb",
  		"thinkingMedium": "#58a6ff",
  		"thinkingHigh": "#79c0ff",
  		"thinkingXhigh": "#d2a8ff",

  		"bashMode": "teal"
  	},
  	"export": {
  		"pageBg": "#0d1117",
  		"cardBg": "#161b22",
  		"infoBg": "#1c2541"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.468Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-dracula",
  	"vars": {
  		"bg": "#282a36",
  		"fg": "#f8f8f2",
  		"purple": "#bd93f9",
  		"pink": "#ff79c6",
  		"cyan": "#8be9fd",
  		"green": "#50fa7b",
  		"orange": "#ffb86c",
  		"red": "#ff5555",
  		"yellow": "#f1fa8c",
  		"gray": "#6272a4",
  		"dimGray": "#44475a",
  		"darkGray": "#44475a",
  		"darkerGray": "#21222c",
  		"selection": "#44475a",
  		"userMsgBg": "#343746",
  		"customMsgBg": "#343746",
  		"toolPending": "#343746",
  		"toolSuccess": "#1e2d20",
  		"toolError": "#2e1a1e"
  	},
  	"colors": {
  		"accent": "purple",
  		"border": "darkGray",
  		"borderAccent": "purple",
  		"borderMuted": "darkerGray",
  		"success": "green",
  		"error": "red",
  		"warning": "orange",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",
  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "purple",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "cyan",
  		"toolOutput": "gray",
  		"mdHeading": "yellow",
  		"mdLink": "purple",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "green",
  		"mdCodeBlock": "#50fa7b",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "purple",
  		"toolDiffAdded": "green",
  		"toolDiffRemoved": "red",
  		"toolDiffContext": "gray",
  		"syntaxComment": "#6272a4",
  		"syntaxKeyword": "pink",
  		"syntaxFunction": "purple",
  		"syntaxVariable": "orange",
  		"syntaxString": "yellow",
  		"syntaxNumber": "purple",
  		"syntaxType": "cyan",
  		"syntaxOperator": "pink",
  		"syntaxPunctuation": "fg",
  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "#44475a",
  		"thinkingLow": "purple",
  		"thinkingMedium": "#bd93f9",
  		"thinkingHigh": "cyan",
  		"thinkingXhigh": "pink",
  		"bashMode": "green"
  	},
  	"export": {
  		"pageBg": "#282a36",
  		"cardBg": "#343746",
  		"infoBg": "#44475a"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.470Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-gruvbox-dark",
  	"vars": {
  		"bg": "#282828",
  		"fg": "#ebdbb2",
  		"blue": "#83a598",
  		"aqua": "#8ec07c",
  		"green": "#b8bb26",
  		"yellow": "#fabd2f",
  		"orange": "#fe8019",
  		"red": "#fb4934",
  		"purple": "#d3869b",
  		"gray": "#928374",
  		"dimGray": "#928374",
  		"darkGray": "#3c3836",
  		"darkerGray": "#1d2021",
  		"selection": "#3c3836",
  		"userMsgBg": "#32302f",
  		"customMsgBg": "#32302f",
  		"toolPending": "#1d2021",
  		"toolSuccess": "#1a2a1a",
  		"toolError": "#2e1a1a"
  	},
  	"colors": {
  		"accent": "blue",
  		"border": "darkGray",
  		"borderAccent": "blue",
  		"borderMuted": "darkerGray",
  		"success": "green",
  		"error": "red",
  		"warning": "yellow",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",
  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "purple",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "aqua",
  		"toolOutput": "gray",
  		"mdHeading": "yellow",
  		"mdLink": "blue",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "green",
  		"mdCodeBlock": "#b8bb26",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "blue",
  		"toolDiffAdded": "green",
  		"toolDiffRemoved": "red",
  		"toolDiffContext": "gray",
  		"syntaxComment": "#928374",
  		"syntaxKeyword": "red",
  		"syntaxFunction": "green",
  		"syntaxVariable": "orange",
  		"syntaxString": "yellow",
  		"syntaxNumber": "purple",
  		"syntaxType": "aqua",
  		"syntaxOperator": "blue",
  		"syntaxPunctuation": "fg",
  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "#928374",
  		"thinkingLow": "blue",
  		"thinkingMedium": "#83a598",
  		"thinkingHigh": "aqua",
  		"thinkingXhigh": "purple",
  		"bashMode": "green"
  	},
  	"export": {
  		"pageBg": "#282828",
  		"cardBg": "#32302f",
  		"infoBg": "#3c3836"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.473Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-gruvbox-light",
  	"vars": {
  		"bg": "#fbf1c7",
  		"fg": "#3c3836",
  		"blue": "#076678",
  		"green": "#79740e",
  		"aqua": "#427b58",
  		"yellow": "#d79921",
  		"orange": "#d65d0e",
  		"red": "#cc241d",
  		"purple": "#8f3f71",
  		"fg4": "#7c6f64",
  		"gray": "#928374",
  		"dimGray": "#a89984",
  		"darkGray": "#d5c4a1",
  		"darkerGray": "#ebdbb2",
  		"selection": "#e8d9a8",
  		"userMsgBg": "#ebdbb2",
  		"customMsgBg": "#ebdbb2",
  		"toolPending": "#ebdbb2",
  		"toolSuccess": "#d9e8c0",
  		"toolError": "#f0d0c8"
  	},
  	"colors": {
  		"accent": "blue",
  		"border": "darkGray",
  		"borderAccent": "blue",
  		"borderMuted": "darkerGray",
  		"success": "green",
  		"error": "red",
  		"warning": "yellow",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",

  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "purple",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "aqua",
  		"toolOutput": "gray",

  		"mdHeading": "yellow",
  		"mdLink": "blue",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "green",
  		"mdCodeBlock": "#427b58",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "blue",

  		"toolDiffAdded": "green",
  		"toolDiffRemoved": "red",
  		"toolDiffContext": "gray",

  		"syntaxComment": "#928374",
  		"syntaxKeyword": "red",
  		"syntaxFunction": "blue",
  		"syntaxVariable": "orange",
  		"syntaxString": "green",
  		"syntaxNumber": "purple",
  		"syntaxType": "aqua",
  		"syntaxOperator": "aqua",
  		"syntaxPunctuation": "fg",

  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "dimGray",
  		"thinkingLow": "purple",
  		"thinkingMedium": "blue",
  		"thinkingHigh": "aqua",
  		"thinkingXhigh": "#1498a8",

  		"bashMode": "green"
  	},
  	"export": {
  		"pageBg": "#fbf1c7",
  		"cardBg": "#ebdbb2",
  		"infoBg": "#e8d9a8"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.476Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-nord",
  	"vars": {
  		"bg": "#2e3440",
  		"fg": "#d8dee9",
  		"nord7": "#8fbcbb",
  		"nord8": "#88c0d0",
  		"nord9": "#81a1c1",
  		"nord10": "#5e81ac",
  		"nord11": "#bf616a",
  		"nord12": "#d08770",
  		"nord13": "#ebcb8b",
  		"nord14": "#a3be8c",
  		"nord15": "#b48ead",
  		"gray": "#4c566a",
  		"dimGray": "#4c566a",
  		"darkGray": "#3b4252",
  		"darkerGray": "#2e3440",
  		"selection": "#434c5e",
  		"userMsgBg": "#3b4252",
  		"customMsgBg": "#3b4252",
  		"toolPending": "#3b4252",
  		"toolSuccess": "#2e3b32",
  		"toolError": "#3b2e2e"
  	},
  	"colors": {
  		"accent": "nord9",
  		"border": "darkGray",
  		"borderAccent": "nord9",
  		"borderMuted": "darkerGray",
  		"success": "nord14",
  		"error": "nord11",
  		"warning": "nord13",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",
  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "nord15",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "nord8",
  		"toolOutput": "gray",
  		"mdHeading": "nord13",
  		"mdLink": "nord9",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "nord14",
  		"mdCodeBlock": "#a3be8c",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "nord9",
  		"toolDiffAdded": "nord14",
  		"toolDiffRemoved": "nord11",
  		"toolDiffContext": "gray",
  		"syntaxComment": "#4c566a",
  		"syntaxKeyword": "nord11",
  		"syntaxFunction": "nord10",
  		"syntaxVariable": "nord12",
  		"syntaxString": "nord14",
  		"syntaxNumber": "nord15",
  		"syntaxType": "nord7",
  		"syntaxOperator": "nord9",
  		"syntaxPunctuation": "fg",
  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "#4c566a",
  		"thinkingLow": "nord10",
  		"thinkingMedium": "nord9",
  		"thinkingHigh": "nord8",
  		"thinkingXhigh": "nord15",
  		"bashMode": "nord14"
  	},
  	"export": {
  		"pageBg": "#2e3440",
  		"cardBg": "#3b4252",
  		"infoBg": "#434c5e"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.478Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-one-dark",
  	"vars": {
  		"bg": "#282c34",
  		"fg": "#abb2bf",
  		"blue": "#61afef",
  		"purple": "#c678dd",
  		"red": "#e06c75",
  		"orange": "#d19a66",
  		"yellow": "#e5c07b",
  		"green": "#98c379",
  		"cyan": "#56b6c2",
  		"gray": "#5c6370",
  		"dimGray": "#4b5263",
  		"darkGray": "#3e4451",
  		"darkerGray": "#2c313c",
  		"selection": "#3e4451",
  		"userMsgBg": "#21252b",
  		"customMsgBg": "#21252b",
  		"toolPending": "#1b1f27",
  		"toolSuccess": "#1f2a1d",
  		"toolError": "#2d1a1e"
  	},
  	"colors": {
  		"accent": "blue",
  		"border": "darkGray",
  		"borderAccent": "blue",
  		"borderMuted": "darkerGray",
  		"success": "green",
  		"error": "red",
  		"warning": "yellow",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",

  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "purple",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "cyan",
  		"toolOutput": "gray",

  		"mdHeading": "yellow",
  		"mdLink": "blue",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "green",
  		"mdCodeBlock": "#56b6c2",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "blue",

  		"toolDiffAdded": "green",
  		"toolDiffRemoved": "red",
  		"toolDiffContext": "gray",

  		"syntaxComment": "#5c6370",
  		"syntaxKeyword": "#c678dd",
  		"syntaxFunction": "#61afef",
  		"syntaxVariable": "#e06c75",
  		"syntaxString": "#98c379",
  		"syntaxNumber": "#d19a66",
  		"syntaxType": "#e5c07b",
  		"syntaxOperator": "#56b6c2",
  		"syntaxPunctuation": "#abb2bf",

  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "#4b5263",
  		"thinkingLow": "blue",
  		"thinkingMedium": "cyan",
  		"thinkingHigh": "purple",
  		"thinkingXhigh": "red",

  		"bashMode": "green"
  	},
  	"export": {
  		"pageBg": "#282c34",
  		"cardBg": "#21252b",
  		"infoBg": "#3e4451"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.481Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-solarized-dark",
  	"vars": {
  		"bg": "#002b36",
  		"fg": "#93a1a1",
  		"blue": "#268bd2",
  		"green": "#859900",
  		"cyan": "#2aa198",
  		"yellow": "#b58900",
  		"orange": "#cb4b16",
  		"red": "#dc322f",
  		"magenta": "#d33682",
  		"violet": "#6c71c4",
  		"gray": "#657b83",
  		"dimGray": "#586e75",
  		"darkGray": "#073642",
  		"darkerGray": "#073642",
  		"selection": "#073642",
  		"userMsgBg": "#073642",
  		"customMsgBg": "#073642",
  		"toolPending": "#003640",
  		"toolSuccess": "#0f3a1c",
  		"toolError": "#3a1a1d"
  	},
  	"colors": {
  		"accent": "blue",
  		"border": "darkGray",
  		"borderAccent": "blue",
  		"borderMuted": "darkerGray",
  		"success": "green",
  		"error": "red",
  		"warning": "yellow",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",

  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "violet",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "cyan",
  		"toolOutput": "gray",

  		"mdHeading": "yellow",
  		"mdLink": "blue",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "green",
  		"mdCodeBlock": "#2aa198",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "blue",

  		"toolDiffAdded": "green",
  		"toolDiffRemoved": "red",
  		"toolDiffContext": "gray",

  		"syntaxComment": "#586e75",
  		"syntaxKeyword": "#859900",
  		"syntaxFunction": "#268bd2",
  		"syntaxVariable": "#cb4b16",
  		"syntaxString": "#2aa198",
  		"syntaxNumber": "#d33682",
  		"syntaxType": "#b58900",
  		"syntaxOperator": "#6c71c4",
  		"syntaxPunctuation": "#93a1a1",

  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "#586e75",
  		"thinkingLow": "violet",
  		"thinkingMedium": "blue",
  		"thinkingHigh": "cyan",
  		"thinkingXhigh": "magenta",

  		"bashMode": "green"
  	},
  	"export": {
  		"pageBg": "#002b36",
  		"cardBg": "#073642",
  		"infoBg": "#073642"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.486Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-solarized-light",
  	"vars": {
  		"bg": "#fdf6e3",
  		"fg": "#586e75",
  		"blue": "#268bd2",
  		"cyan": "#2aa198",
  		"green": "#859900",
  		"yellow": "#b58900",
  		"orange": "#cb4b16",
  		"red": "#dc322f",
  		"magenta": "#d33682",
  		"violet": "#6c71c4",
  		"base0": "#839496",
  		"base00": "#657b83",
  		"gray": "#93a1a1",
  		"dimGray": "#93a1a1",
  		"darkGray": "#eee8d5",
  		"darkerGray": "#eee8d5",
  		"selection": "#e5edf5",
  		"userMsgBg": "#eee8d5",
  		"customMsgBg": "#eee8d5",
  		"toolPending": "#eee8d5",
  		"toolSuccess": "#e8efd9",
  		"toolError": "#f5e0df"
  	},
  	"colors": {
  		"accent": "blue",
  		"border": "darkGray",
  		"borderAccent": "blue",
  		"borderMuted": "darkerGray",
  		"success": "green",
  		"error": "red",
  		"warning": "yellow",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",

  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "magenta",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "cyan",
  		"toolOutput": "gray",

  		"mdHeading": "yellow",
  		"mdLink": "blue",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "green",
  		"mdCodeBlock": "#2aa198",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "blue",

  		"toolDiffAdded": "green",
  		"toolDiffRemoved": "red",
  		"toolDiffContext": "gray",

  		"syntaxComment": "#93a1a1",
  		"syntaxKeyword": "green",
  		"syntaxFunction": "blue",
  		"syntaxVariable": "orange",
  		"syntaxString": "cyan",
  		"syntaxNumber": "magenta",
  		"syntaxType": "yellow",
  		"syntaxOperator": "cyan",
  		"syntaxPunctuation": "fg",

  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "dimGray",
  		"thinkingLow": "violet",
  		"thinkingMedium": "blue",
  		"thinkingHigh": "cyan",
  		"thinkingXhigh": "#3daee9",

  		"bashMode": "green"
  	},
  	"export": {
  		"pageBg": "#fdf6e3",
  		"cardBg": "#eee8d5",
  		"infoBg": "#e5edf5"
  	}
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:17:43.488Z
c1:
  {
  	"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
  	"name": "crew-tokyo-night",
  	"vars": {
  		"bg": "#1a1b26",
  		"fg": "#c0caf5",
  		"blue": "#7aa2f7",
  		"cyan": "#7dcfff",
  		"magenta": "#bb9af7",
  		"purple": "#9d7cd8",
  		"orange": "#ff9e64",
  		"yellow": "#e0af68",
  		"green": "#9ece6a",
  		"green1": "#73daca",
  		"red": "#f7768e",
  		"gray": "#737aa2",
  		"dimGray": "#565f89",
  		"darkGray": "#292e42",
  		"darkerGray": "#16161e",
  		"selection": "#283457",
  		"userMsgBg": "#1f2335",
  		"customMsgBg": "#1f2335",
  		"toolPending": "#16161e",
  		"toolSuccess": "#1a2e1e",
  		"toolError": "#2e1a1e"
  	},
  	"colors": {
  		"accent": "blue",
  		"border": "darkGray",
  		"borderAccent": "blue",
  		"borderMuted": "darkerGray",
  		"success": "green",
  		"error": "red",
  		"warning": "yellow",
  		"muted": "gray",
  		"dim": "dimGray",
  		"text": "fg",
  		"thinkingText": "gray",
  		"selectedBg": "selection",
  		"userMessageBg": "userMsgBg",
  		"userMessageText": "fg",
  		"customMessageBg": "customMsgBg",
  		"customMessageText": "fg",
  		"customMessageLabel": "magenta",
  		"toolPendingBg": "toolPending",
  		"toolSuccessBg": "toolSuccess",
  		"toolErrorBg": "toolError",
  		"toolTitle": "cyan",
  		"toolOutput": "gray",
  		"mdHeading": "yellow",
  		"mdLink": "blue",
  		"mdLinkUrl": "dimGray",
  		"mdCode": "green",
  		"mdCodeBlock": "#9ece6a",
  		"mdCodeBlockBorder": "darkGray",
  		"mdQuote": "gray",
  		"mdQuoteBorder": "darkGray",
  		"mdHr": "darkGray",
  		"mdListBullet": "blue",
  		"toolDiffAdded": "green",
  		"toolDiffRemoved": "red",
  		"toolDiffContext": "gray",
  		"syntaxComment": "#565f89",
  		"syntaxKeyword": "magenta",
  		"syntaxFunction": "blue",
  		"syntaxVariable": "orange",
  		"syntaxString": "green",
  		"syntaxNumber": "orange",
  		"syntaxType": "cyan",
  		"syntaxOperator": "magenta",
  		"syntaxPunctuation": "fg",
  		"thinkingOff": "darkerGray",
  		"thinkingMinimal": "#565f89",
  		"thinkingLow": "blue",
  		"thinkingMedium": "#7aa2f7",
  		"thinkingHigh": "cyan",
  		"thinkingXhigh": "magenta",
  		"bashMode": "green"
  	},
  	"export": {
  		"pageBg": "#1a1b26",
  		"cardBg": "#1f2335",
  		"infoBg": "#283457"
  	}
  }


c0: Read both chains
c3: prose
c7: 2026-07-04T12:38:07.795Z
c1:
  # Read both chains

  $ echo "=== feature-build.chain.md ===" cat /home/liph/.pi/agent/chains/feature-build.chain.md echo echo "=== research-brief.chain.md ===" cat /home/liph/.pi/agent/chains/research-brief.chain.md

  === feature-build.chain.md ===


c0: Feature build (Ollama Cloud) > Stop rules
c3: prose
c7: 2026-07-04T12:38:07.795Z
c1:
  ## Stop rules

  - If `scout` finds the task is out of scope or the codebase is in an unexpected state, stop and ask the user.
  - If `ollama-planner` surfaces ambiguity in "Open Questions", stop and ask the user before launching the coder.
  - If a reviewer reports a `blocker` or an unapproved decision, stop and ask the user.
  - If a `worth fixing now` item is small and safe, parent applies it directly; if it touches product/architecture, ask the user first.

  === research-brief.chain.md ===


c0: Read all 4 ollama-* agent frontmatter
c3: prose
c7: 2026-07-04T12:38:07.795Z
c1:
  # Read all 4 ollama-* agent frontmatter

  $ for f in /home/liph/.pi/agent/agents/ollama-*.md; do echo "=== $f ===" head -25 "$f" echo done

  /tmp/.ctx-mode-f7yId9/script.sh:2: parse error near `for'


c0: Search for orchestration language in agents
c3: prose
c7: 2026-07-04T12:38:07.795Z
c1:
  # Search for orchestration language in agents

  $ grep -l -iE 'orchestrat|chain|coordinat|sequenc' /home/liph/.pi/agent/agents/ollama-*.md 2>/dev/null echo "---" # also: does any built-in agent have orchestration language? grep -l -iE 'orchestrat|chain|coordinat' /home/liph/.pi/agent/npm/node_modules/pi-subagents/agents/*.md 2>/dev/null

  /home/liph/.pi/agent/agents/ollama-coder.md
  /home/liph/.pi/agent/agents/ollama-planner.md
  /home/liph/.pi/agent/agents/ollama-researcher.md
  /home/liph/.pi/agent/agents/ollama-reviewer.md


c0: Search for orchestration language in agents
c3: prose
c7: 2026-07-04T12:38:07.795Z
c1:
  /home/liph/.pi/agent/npm/node_modules/pi-subagents/agents/context-builder.md
  /home/liph/.pi/agent/npm/node_modules/pi-subagents/agents/delegate.md
  /home/liph/.pi/agent/npm/node_modules/pi-subagents/agents/oracle.md
  /home/liph/.pi/agent/npm/node_modules/pi-subagents/agents/planner.md
  /home/liph/.pi/agent/npm/node_modules/pi-subagents/agents/researcher.md
  /home/liph/.pi/agent/npm/node_modules/pi-subagents/agents/reviewer.md
  /home/liph/.pi/agent/npm/node_modules/pi-subagents/agents/scout.md
  /home/liph/.pi/agent/npm/node_modules/pi-subagents/agents/worker.md


c0: Re-read both profile files for diff
c3: prose
c7: 2026-07-04T12:38:07.795Z
c1:
  # Re-read both profile files for diff

  $ cat /home/liph/.pi/agent/profiles/pi-subagents/ollama.quality.json echo echo "===" cat /home/liph/.pi/agent/profiles/pi-subagents/ollama.quota.json

  {
    "subagents": {
      "agentOverrides": {
        "scout": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "planner": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "worker": { "model": "ollama/kimi-k2.7-code:cloud", "thinking": "high" },
        "oracle": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "reviewer": { "model": "ollama/kimi-k2.6:cloud", "thinking": "high" },
        "researcher": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "context-builder": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "delegate": { "model": "ollama/minimax-m3:cloud" }
      },
      "modelScope": {
        "allow": [
          "ollama/minimax-m3:cloud",
          "ollama/kimi-k2.6:cloud",
          "ollama/kimi-k2.7-code:cloud",
          "ollama/gemini-3-flash-preview"
        ]
      }
    }
  }

  ===
  {
    "subagents": {
      "agentOverrides": {
        "scout": { "model": "ollama/gemini-3-flash-preview", "thinking": "low" },
        "planner": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "worker": { "model": "ollama/kimi-k2.7-code:cloud", "thinking": "medium" },
        "oracle": { "model": "ollama/minimax-m3:cloud", "thinking": "high" },
        "reviewer": { "model": "ollama/kimi-k2.6:cloud", "thinking": "high" },
        "researcher": { "model": "ollama/gemini-3-flash-preview", "thinking": "medium" },
        "context-builder": { "model": "ollama/gemini-3-flash-preview", "thinking": "low" },
        "delegate": { "model": "ollama/gemini-3-flash-preview" }
      },
      "modelScope": {
        "allow": [
          "ollama/minimax-m3:cloud",
          "ollama/kimi-k2.6:cloud",
          "ollama/kimi-k2.7-code:cloud",
          "ollama/gemini-3-flash-preview"
        ]
      }
    }
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:38:07.830Z
c1:
  {
    "lastChangelogVersion": "0.80.3",
    "theme": "dark",
    "packages": [
      "npm:pi-ollama-cloud",
      "npm:context-mode",
      "npm:pi-subagents",
      "npm:@a5c-ai/babysitter-pi",
      "npm:@juicesharp/rpiv-ask-user-question",
      "npm:@ff-labs/pi-fff",
      "npm:@demigodmode/pi-web-agent",
      "npm:pi-crew"
    ],
    "defaultProvider": "ollama",
    "defaultModel": "kimi-k2.7-code:cloud",
    "defaultThinkingLevel": "medium",
    "subagents": {
      "agentOverrides": {
        "scout": {
          "model": "ollama/minimax-m3:cloud",
          "thinking": "high"
        },
        "planner": {
          "model": "ollama/minimax-m3:cloud",
          "thinking": "high"
        },
        "worker": {
          "model": "ollama/kimi-k2.7-code:cloud",
          "thinking": "high"
        },
        "oracle": {
          "model": "ollama/minimax-m3:cloud",
          "thinking": "high"
        },
        "reviewer": {
          "model": "ollama/kimi-k2.6:cloud",
          "thinking": "high"
        },
        "researcher": {
          "model": "ollama/minimax-m3:cloud",
          "thinking": "high"
        },
        "context-builder": {
          "model": "ollama/minimax-m3:cloud",
          "thinking": "high"
        },
        "delegate": {
          "model": "ollama/minimax-m3:cloud"
        }
      },
      "modelScope": {
        "allow": [
          "ollama/minimax-m3:cloud",
          "ollama/kimi-k2.6:cloud",
          "ollama/kimi-k2.7-code:cloud",
          "ollama/gemini-3-flash-preview"
        ]
      }
    }
  }


c0: Untitled
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  name: ollama-orchestrator
  description: Ollama-cloud orchestrator. Adaptive task decomposition and dispatch — has the subagent tool, so it can spawn and coordinate the other ollama-* and built-in subagents at runtime. Use for complex, open-ended, multi-step tasks where static chains (feature-build, research-brief) are too rigid. Powered by MiniMax M3, the deep-reasoning frontier model on Ollama Cloud.
  model: ollama/minimax-m3:cloud
  thinking: high
  tools: read, grep, find, ls, write, subagent, intercom
  systemPromptMode: replace
  inheritProjectContext: true
  inheritSkills: false
  defaultContext: fresh
  defaultReads: context.md, plan.md
  defaultProgress: true


c0: Untitled
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  You are `ollama-orchestrator`: the adaptive orchestration subagent
  powered by Ollama Cloud (MiniMax M3).

  You are the **only** one of the `ollama-*` agents that has the
  `subagent` tool. That is your defining capability. The other four
  (`ollama-planner`, `ollama-coder`, `ollama-researcher`, `ollama-reviewer`)
  are workers; you are the dispatcher.


c0: When you are invoked
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  ## When you are invoked

  You are called when a task is too complex, open-ended, or
  ill-structured to be handled by a single worker or by a static chain
  like `feature-build` or `research-brief`. Typical triggers:

  - "Plan and implement adding a /healthz endpoint to this Express app,
    including tests, then review it."
  - "Investigate why this flaky test fails, fix the root cause, and
    open a PR-ready diff."
  - "Migrate this component from class to hooks, then run a code review."

  If the task is *one* well-defined job, defer to the worker directly
  (`ollama-coder` for code, `ollama-researcher` for research, etc.) and
  do not invoke yourself.


c0: How to work > 1. Decompose
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  ### 1. Decompose

  Read the task. Break it into 2–5 sub-tasks. Each sub-task must:
  - have a single owner agent
  - be independently verifiable
  - have a clear pass/fail signal

  If the task has only one sub-task, return that you are not needed and
  recommend the appropriate worker directly.


c0: How to work > 2. Map to agents
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  ### 2. Map to agents

  Pick the right agent for each sub-task:

  | Sub-task kind | Agent |
  |---|---|
  | Map a codebase, list files, capture conventions | `scout` (built-in) |
  | Write a step-by-step plan, read-only | `ollama-planner` |
  | Implement code, run validation | `ollama-coder` |
  | Critique a diff against a plan | `ollama-reviewer` |
  | External/web research with citations | `ollama-researcher` |
  | Cross-check, decision on a stuck call | `oracle` (built-in) |
  | Build a compressed context file | `context-builder` (built-in) |
  | A simple, well-defined worker task | `worker` (built-in, inherits) |

  When in doubt, prefer your custom `ollama-*` agents over the
  built-ins — their prompts are tuned for the Ollama Cloud + K2.7-code
  stack.


c0: How to work > 3. Dispatch
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  ### 3. Dispatch

  - **Independent sub-tasks** → run in parallel. Pass
    `async: true` and gather results with `get_subagent_result` or by
    reading the output files the agents write.
  - **Dependent sub-tasks** → run sequentially. Pass outputs from stage
    N to stage N+1 via the `defaultReads` field or by referencing the
    output file paths.
  - **Always** tell the dispatched agent: (a) the precise task, (b)
    the output file path to write to, (c) what the parent (you) will
    do with the result.
  - **Always** set `progress: true` for long dispatches so the parent
    session can show liveness.


c0: How to work > 4. Verify
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  ### 4. Verify

  After each worker returns, **read its output file and check it is
  sensible** before trusting it. Cheap checks: does the diff match the
  plan? did the review actually cite file:line evidence? is the
  research brief grounded in sources? If a worker output is broken or
  missing, re-dispatch with a sharper prompt — do not silently propagate
  it.


c0: How to work > 5. Synthesize
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  ### 5. Synthesize

  Produce a final `orchestration.md` (your output) with:

  - The original task
  - The decomposition (sub-task → agent → output file)
  - A per-sub-task status (done / done-with-caveats / failed-and-why)
  - The synthesized result the user actually wants to see
  - Any open questions or follow-up work


c0: How to work > 6. Report back
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  ### 6. Report back

  Return the path to `orchestration.md` plus a 2–4 sentence
  plain-English summary of what was done. Do not dump the full file
  into the conversation — the parent will read it.


c0: Guardrails
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  ## Guardrails

  - **You are not a coder.** If a worker fails to implement, do not
    attempt the edit yourself. Re-dispatch with a clearer prompt or
    surface the blocker to the user.
  - **You do not write code.** If a step needs an edit, dispatch
    `ollama-coder`. The only file you write is `orchestration.md`.
  - **You are not a researcher.** If a step needs the web, dispatch
    `ollama-researcher`. (You may *read* the web via inherited tools,
    but prefer the worker.)
  - **Bounded fanout.** 2–5 sub-tasks. If a task genuinely needs more,
    surface that to the user and ask whether to proceed or scope down.
  - **No silent retries.** If a worker fails twice, stop and ask the
    user — do not loop.
  - **Honest failure reporting.** If you couldn't fully complete the
    task, say so in `orchestration.md` and in the summary. Do not
    pretend it worked.


c0: Supervisor coordination
c3: prose
c7: 2026-07-04T12:47:44.140Z
c1:
  ## Supervisor coordination

  If runtime bridge instructions identify a safe supervisor target and
  you are blocked or need a decision, use `intercom` with
  `reason: "need_decision"` and wait for the reply. Use
  `reason: "progress_update"` only for concise non-blocking progress
  updates on long fan-outs. Do not send routine completion handoffs;
  return the completed `orchestration.md` summary normally.


c0: Subagent profiles — README
c3: prose
c7: 2026-07-04T12:47:44.434Z
c1:
  # Subagent profiles — README

  This directory contains **profile presets** for the built-in subagents
  shipped by `pi-subagents` (scout, planner, worker, oracle, reviewer,
  researcher, context-builder, delegate).

  A profile is a saved snapshot of `settings.subagents`. Loading it
  overwrites the relevant block in `~/.pi/agent/settings.json`. It does
  **not** affect your custom `~/.pi/agent/agents/ollama-*.md` agents —
  those have their `model:` set in their own frontmatter.


c0: Subagent profiles — README > Files
c3: prose
c7: 2026-07-04T12:47:44.434Z
c1:
  ## Files

  | File | Purpose |
  |---|---|
  | `ollama.quality.json` | Best answers. All built-ins on M3 / K2.6 / K2.7-code, `thinking: high`. Default for real work. |
  | `ollama.quota.json`   | Save tokens. `scout`, `context-builder`, `researcher`, `delegate` use Gemini 3 Flash with `thinking: low/medium`. `worker` uses K2.7-code with `thinking: medium`. `planner` / `oracle` / `reviewer` stay on M3 / K2.6. |


c0: Subagent profiles — README > How to load a profile
c3: code
c7: 2026-07-04T12:47:44.434Z
c1:
  ## How to load a profile

  ```
  /subagents-load-profile ollama.quality
  ```

  You'll be asked whether to also switch the parent session's model to
  the profile's worker model. Say yes for full effect.

  To list all available profiles:

  ```
  /subagents-profiles
  ```

  To verify a profile is still valid (the proxy models haven't retired
  out from under it):

  ```
  /subagents-check-profile ollama.quality
  ```


c0: Subagent profiles — README > What profiles are NOT
c3: prose
c7: 2026-07-04T12:47:44.434Z
c1:
  ## What profiles are NOT

  Profiles are **not** automatic orchestration. Loading a profile does
  not trigger any workflow. It only sets the model + thinking on the
  8 built-in agents that the parent (or a chain) might later invoke.

  If you want automatic orchestration, see:
  - `~/.pi/agent/chains/feature-build.chain.md` — static 5-stage workflow
  - `~/.pi/agent/chains/research-brief.chain.md` — static 2-stage workflow
  - `~/.pi/agent/agents/ollama-orchestrator.md` — adaptive agent that
    decomposes a complex task and dispatches subagents at runtime


c0: Subagent profiles — README > The three layers (cheat sheet)
c3: prose
c7: 2026-07-04T12:47:44.434Z
c1:
  ## The three layers (cheat sheet)

  | Layer | Lives in | Orchestrates? | Affects custom `ollama-*` agents? |
  |---|---|---|---|
  | A single subagent | `~/.pi/agent/agents/*.md` | No — it's a worker | N/A |
  | A profile | `~/.pi/agent/profiles/pi-subagents/*.json` | No — it's a config swap | No |
  | A chain | `~/.pi/agent/chains/*.chain.md` | Yes — static, pre-defined stages | N/A |
  | The parent Pi agent | The session you're in | Yes — adaptive, per-task | Yes (its own model + tools) |
  | `ollama-orchestrator` | `~/.pi/agent/agents/ollama-orchestrator.md` | Yes — adaptive, has `subagent` tool | N/A |
  | pi-crew `team` tool | The parent's tool belt | Yes — heavy, durable, worktree-aware | N/A |


c0: Subagent profiles — README > When to use which
c3: prose
c7: 2026-07-04T12:47:44.434Z
c1:
  ## When to use which

  | Situation | Reach for |
  |---|---|
  | One self-contained job one role can do | A single subagent (e.g. `/run ollama-coder "..."`) |
  | You want to swap defaults on the built-ins for the current session | `/subagents-load-profile ollama.quality` (or `ollama.quota`) |
  | Recurring multi-step job with fixed stages | `/run-chain feature-build "..."` (or `research-brief`) |
  | Complex open-ended task that needs adaptive decomposition | Tell the parent "use ollama-orchestrator to handle this" |
  | Long-running, multi-writer, durable-state job | `team` tool (pi-crew) — say "use pi-crew to ..." |


