feat: add git-status extension with live footer#8
Open
m-marinucci wants to merge 2 commits intodisler:mainfrom
Open
feat: add git-status extension with live footer#8m-marinucci wants to merge 2 commits intodisler:mainfrom
m-marinucci wants to merge 2 commits intodisler:mainfrom
Conversation
Shows live git branch + change summary in the footer bar: ⎇ main ↑2 ✚ 3 ✎ 2 ? 1 [##--------] 20% Polls every 5s, re-fetches after tool calls, subscribes to Pi's branch-change event. /gitstatus command for manual refresh. Nord theme. Drop into ~/.pi/agent/extensions/ for global auto-load. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add three features to agent-team.ts: 1. Per-agent model/thinking override via frontmatter fields: Agents can now declare `model: provider/model-id` and `thinking: level` in their .md definition. Falls back to the dispatcher's model when not set. 2. Live Ollama model capability audit: On team activation, queries Ollama /api/show for each agent using a local model. Checks the `capabilities` array for tool-calling support, warns on sub-30B parameter models, and compares local digests against registry.ollama.com for available updates. Three severity levels: - BLOCK: model lacks "tools" capability — dispatch is blocked - WARN: has tools but < 30B params — unreliable for agentic use - UPDATE: newer version available on ollama.com 3. Dispatch-time gate: Before spawning a sub-agent with a local model, checks the capability cache (or runs a live check if cache is cold). Blocks dispatch with a clear error if the model cannot do tool calling. New command: /agents-check — clears cache and re-audits. Security hardening from adversarial review: - Registry URL sanitized via SAFE_REGISTRY_NAME regex - Inverted to LOCAL_PROVIDERS allowlist (forward-compatible) - Failed Ollama checks not cached (transient failures don't poison) - dispatchAgent is now async for live capability checks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
extensions/git-status.ts— a new extension that shows live git status in the footer bar"git-status": "nord"inthemeMap.tsext-git-statusrecipe tojustfile(renumbers Session Replay → 16, Theme Cycler → 17)What the footer looks like
⎇ branch↑N↓N✚ N✎ N? N✗ N✓ clean[##----] N%How it works
git status --porcelain=v1 -bevery 5 seconds in the backgroundtool_execution_endhook)footerData.onBranchChange()for instant re-render on checkout/gitstatuscommand force-refreshes and shows a full summary notificationno gitwhen run outside a repoUsage
🤖 Generated with Claude Code