You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h3id="2-load-the-system-prompt-template">2. Load the System Prompt Template<aclass="headerlink" href="#2-load-the-system-prompt-template" title="Permanent link">¶</a></h3>
<spanclass="w"></span><spanclass="nx">task</span><spanclass="o">:</span><spanclass="w"></span><spanclass="sb">`Run browser test on https://example.com:</span>
899
+
<spanclass="sb">1. Navigate to the URL</span>
900
+
<spanclass="sb">2. Verify the page loads correctly</span>
901
+
<spanclass="sb">3. Check for accessibility issues</span>
<h3id="4-collect-and-validate-the-result">4. Collect and Validate the Result<aclass="headerlink" href="#4-collect-and-validate-the-result" title="Permanent link">¶</a></h3>
910
-
<pre><codeclass="language-bash"># Pipe subagent output to the validator
<spanclass="w"></span><spanclass="nx">console</span><spanclass="p">.</span><spanclass="nx">error</span><spanclass="p">(</span><spanclass="sb">`Test failed after </span><spanclass="si">${</span><spanclass="nx">attempts</span><spanclass="si">}</span><spanclass="sb">attempts: </span><spanclass="si">${</span><spanclass="nx">result</span><spanclass="p">.</span><spanclass="nx">error</span><spanclass="si">}</span><spanclass="sb">`</span><spanclass="p">);</span>
2. <code>model</code> field in agent <code>.md</code> frontmatter
1500
1500
3. <strong><code>globalDefaultModel</code></strong> from <code>pi-defaults.json</code> / <code>subagents.json</code> (centralized registry)
1501
1501
4. Parent session model (inherit)</p>
1502
-
<p><strong>Configuration for local-first:</strong></p>
1503
-
<pre><codeclass="language-json">{
1504
-
"extensions": {
1505
-
"@tintinweb/pi-subagents": {
1506
-
"globalDefaultModel": null,
1507
-
"disableDefaultAgents": true
1508
-
}
1509
-
}
1510
-
}
1511
-
</code></pre>
1512
-
<p><code>globalDefaultModel: null</code> means subagents inherit whatever model the parent session uses — <strong>zero Anthropic dependency</strong>.</p>
1502
+
<p><strong>Configuration for local-first:</strong>
<code>globalDefaultModel: null</code> means subagents inherit whatever model the parent session uses — <strong>zero Anthropic dependency</strong>.</p>
1513
1513
<p><strong>Verdict:</strong> This is the <strong>glue that makes the local-only stack work end-to-end</strong> — it ensures subagents (like <code>vision-analysis</code>, <code>researcher</code>, etc.) all use the session's local Qwen model instead of falling back to Anthropic.</p>
<p>All LocalPibox changes are kept as a <strong>single squashed commit</strong> on top of upstream <code>main</code>. The delta is always one clean patch.</p>
1752
-
<pre><code>upstream main ──→ [latest] ──┐
1752
+
<divclass="highlight"><pre><span></span><code>upstream main ──→ [latest] ──┐
3. <code>read</code> — pass image to session model for vision analysis
1817
1817
4. <code>mcp</code> → <code>agent-browser_close</code> — close browser</p>
1818
-
<p><strong>Usage:</strong></p>
1819
-
<pre><codeclass="language-bash">Agent(description:"Vision analysis of <url>", subagent_type:"vision-analysis", prompt:"Analyze this page: <url>")
1820
-
</code></pre>
1818
+
<p><strong>Usage:</strong>
1819
+
<divclass="highlight"><pre><span></span><code>Agent<spanclass="o">(</span>description:<spanclass="w"></span><spanclass="s2">"Vision analysis of <url>"</span>,<spanclass="w"></span>subagent_type:<spanclass="w"></span><spanclass="s2">"vision-analysis"</span>,<spanclass="w"></span>prompt:<spanclass="w"></span><spanclass="s2">"Analyze this page: <url>"</span><spanclass="o">)</span>
1820
+
</code></pre></div></p>
1821
1821
<p>Runs in background, uses session model by default (can override with <code>model:</code> parameter).</p>
0 commit comments