feat(skills): add pi package compatibility skill - #4
Open
nsluss wants to merge 2542 commits into
Open
Conversation
- Add adaptive thinking mode (type: 'adaptive') for Opus 4.6+
- Add effort parameter ('low', 'medium', 'high', 'max') for adaptive thinking
- thinkingEnabled now auto-detects: adaptive for 4.6+, budget-based for older
- streamSimple/completeSimple map ThinkingLevel to effort levels for Opus 4.6
- Add tests for Opus 4.6 adaptive thinking and GPT-5.3 Codex
- Update @anthropic-ai/sdk to 0.73.0
- Update @aws-sdk/client-bedrock-runtime to 3.983.0
- Update @google/genai to 1.40.0
- Remove fast-xml-parser override (no longer needed)
- anthropic: claude-opus-4-5 → claude-opus-4-6 - openai-codex: gpt-5.2-codex → gpt-5.3-codex - amazon-bedrock: us.anthropic.claude-opus-4-20250514-v1:0 → us.anthropic.claude-opus-4-6-v1:0 - vercel-ai-gateway: anthropic/claude-opus-4.5 → anthropic/claude-opus-4-6 - opencode: claude-opus-4-5 → claude-opus-4-6
…te tests refs #1299
…and add EU profile - Remove :0 suffix from Opus 4.6 Bedrock model IDs (not valid for this model) - Fix us/eu Opus 4.6 cache pricing (0.5/6.25 instead of 1.5/18.75) - Add missing eu.anthropic.claude-opus-4-6-v1 inference profile - Fix coding-agent default Bedrock model ID to match catalog
…tings extensions paths collectAutoExtensionEntries now checks if the directory itself has a package.json with pi.extensions (or index.ts) before scanning children. This fixes duplicate extension loading when a manifest-aware directory is specified directly in settings.json extensions array. Fixes #1274
…path parsing fixes #1304
…ngelog fixes #1303 fixes #1304
- Sort models: current → favorites → recents → provider order - Show ★ star indicator for favorite models - Add Ctrl+F keybind to toggle favorite for selected model - Display hint for favorite toggle in model selector UI - Favorites/recents loaded from SettingsManager on mount
- Add temperature and top-p dropdowns to /settings - Add interleaved thinking and context 1M toggles - Fix model selector favorite toggle to preserve selection - Wire settings changes through to Agent at runtime
Interleaved thinking should always be on - not a user choice.
Logs stream lifecycle events to stderr when enabled: - Stream start/end - Event counts - stop_reason from API - Retry attempts - Error paths
Anthropic/OpenRouter occasionally return empty responses after tool results. - Retry with random jitter (up to 1s) to avoid thundering herd - Configurable via settings: maxEmptyRetries (default: 3), maxEmptyRetryTimeMs (default: 15s) - Convert to error after limits exhausted - empty is never valid
Added to all three auth paths (API key, OAuth, Copilot):
- Connection: close header to force server to close connection
- fetchOptions: { keepalive: false } to prevent client-side connection pooling
This should prevent connection reuse bugs that may cause empty responses.
Covers OpenRouter and all OpenAI-compatible providers.
…pection CLI Bug fixes: - max_tokens: read per-model limits from ~/.agent/settings.toml [modelMaxTokens.anthropic] instead of hardcoded model.maxTokens/3 (~1.3K). Fallback: 128K for Opus 4.6, 64K for all others. max_tokens is a per-turn output cap, not context window. - budget_tokens: only set when explicitly configured via thinkingBudgetTokens. Was silently defaulting to 1024 (minimum), starving the model of thinking capacity. - Wire maxEmptyRetries/maxEmptyRetryTimeMs from AgentOptions through to AgentLoopConfig for empty response retry control. New features: - --dump-settings-template: print ~/.agent/settings_template.toml - --promote-settings: print effective merged settings as TOML candidate - SettingsManager.getResolvedSettings(): expose merged settings Files: agent.ts, anthropic.ts, args.ts, settings-manager.ts, main.ts
…each attempt, never persisted
…ng removed before reaching Anthropic
Documents how to install pi packages (from @mariozechner namespace) in punkin by creating symlink aliases from @mariozechner/* to @punkin-pi/* packages. Includes: - Problem description (package namespace mismatch) - Step-by-step solution with symlink aliasing - One-liner command for quick setup - pi-mcp-adapter example - MCP configuration setup
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
Adds a skill documenting how to install pi packages (from the
@mariozechnernamespace) in punkin by creating symlink aliases.Problem
Pi packages on npm import from
@mariozechner/pi-*but punkin uses@punkin-pi/*, causing module-not-found errors.Solution
The skill documents creating symlinks to alias the package namespaces:
Includes
pi-mcp-adapterworked examplemcp.jsonand~/.pi/agentsymlink)Testing
Tested with
npm:pi-mcp-adapter-/mcpcommand works after aliasing.