Commit Graph

1002 Commits

Author SHA1 Message Date
can1357 f8e642adce fix(coding-agent): added git status cache to prevent excessive spawns
- Added 1-second TTL cache for git status to prevent excessive subprocess spawns in footer component.
2026-01-03 19:13:22 +01:00
can1357 0e7092c21c chore: bump version to 3.3.1337 2026-01-03 18:39:47 +01:00
can1357 0654e5e477 fix(coding-agent): corrected /status column alignment across all sections
- Fixed /status command output to use consistent column alignment across all sections.
- Refactored status rendering to collect all line sections before calculating max width.
- Renamed dev:install script to install:dev for consistency.
2026-01-03 18:38:33 +01:00
can1357 f9f0e6385b docs(coding-agent): renamed CLI references from 'pi' to 'omp'
- Renamed CLI command references from 'pi' to 'omp' throughout documentation.
- Updated version update notification to suggest 'omp update' instead of npm install.
- Updated SDK and extension loading documentation with new command naming.
2026-01-03 18:37:07 +01:00
can1357 a135b65fe8 chore: bump version to 3.1.1337 2026-01-03 18:33:15 +01:00
can1357 91a066a1bd fix(coding-agent): fixed duplicate skill loading in recursive scan 2026-01-03 18:31:53 +01:00
can1357 386aef827f feat(coding-agent): added spawns field to control sub-agent access
- Added spawns frontmatter field to agent definitions supporting wildcard or comma-separated agent names.
- Added spawn restriction enforcement to block disallowed sub-agent spawns from parent agents.
- Fixed duplicate skill loading when skills exist in multiple paths.
- Refactored skill loading to use shared addSkill helper with deduplication via seenPaths Set.
2026-01-03 18:31:32 +01:00
can1357 bfb5cb13b7 chore: bump version to 3.0.1337 2026-01-03 18:27:32 +01:00
can1357 0438f01fd5 feat(coding-agent): added multi-tool config discovery across 8 AI IDEs
- Added unified capability-based discovery system for loading configuration from 8 AI coding tools (Cursor, Windsurf, Cline, GitHub Copilot, Gemini, Codex, Claude, VS Code).
- Added Discovery settings tab in interactive mode for enabling/disabling configuration providers.
- Added provider source attribution showing which tool contributed each configuration item.
- Added support for tool-specific rule formats including Cursor MDC, Windsurf global_rules, and Cline .clinerules.
- Changed MCP tool name parsing to use last underscore separator for improved server name handling.
- Refactored core loaders (skills, hooks, custom tools, slash commands) to use capability API instead of manual directory scanning.
2026-01-03 18:26:07 +01:00
can1357 790a5370bb feat: renamed binary from pi to omp with config migration support
- Renamed CLI binary and package from 'pi' to 'omp' across all platforms and installers.
- Changed environment variable prefix from PI_* to OMP_* with automatic migration support.
- Changed configuration directory from ~/.pi/ to ~/.omp/ with multi-path fallback discovery.
- Added getConfigDirPaths(), findConfigFile(), and readConfigFile() functions for config resolution across .omp, .pi, and .claude directories.
2026-01-03 15:54:45 +01:00
can1357 a8fa0db830 chore: bump version to 2.3.1337 2026-01-03 14:53:38 +01:00
can1357 b3e7e52e6c chore: bump version to 2.2.1337 2026-01-03 14:43:33 +01:00
can1357 937646d0e1 chore: bump version to 2.1.1337 2026-01-03 14:24:01 +01:00
can1357 a42061d9ee feat(coding-agent): added self-update command with bundled templates
- Added `pi update` command for checking and installing CLI updates from GitHub releases or bun.
- Added cross-platform installer scripts (shell and PowerShell) with automatic PATH configuration.
- Changed HTML export to use compile-time bundled templates via Bun macros.
- Changed `exportToHtml` and `exportFromFile` functions to async operations.
2026-01-03 14:17:28 +01:00
can1357 a6715fb8f0 build(coding-agent): embedded assets into binary to eliminate runtime reads
- Embedded assets (themes, templates, agents, commands) directly into binary at compile time using Bun imports.
- Removed runtime filesystem reads for bundled assets in favor of static build-time imports.
- Simplified build scripts by removing copy-assets steps and compiling directly from TypeScript source.
- Updated publish workflow to use bun publish with NPM_CONFIG_TOKEN environment variable.
- Added TypeScript declarations for importing .md, .css, .html, and .js files as text strings.
2026-01-03 13:48:40 +01:00
can1357 d657e2cf04 chore: bump version to 2.0.1337 2026-01-03 11:10:57 +01:00
can1357 c8585eae9e chore: bump version to 1.5.1 2026-01-03 11:07:54 +01:00
can1357 31cd0cebf9 refactor(coding-agent): extracted bash execution into dedicated executor
- Extracted bash execution logic from bash tool into dedicated BashExecutor with configurable cwd and timeout options.
- Added timeout handling with automatic process termination and timeout-specific result tracking.
- Simplified streaming output handling by replacing rolling buffer with string concatenation.
- Reformatted indentation from spaces to tabs across shell utility files.
2026-01-03 11:07:03 +01:00
can1357 f3a36eb433 feat(coding-agent): added shell environment snapshot to preserve user config
- Added shell environment snapshot feature to preserve user aliases, functions, and shell options across command executions.
- Added zsh support alongside bash for shell detection and configuration.
- Added PI_BASH_NO_CI, PI_BASH_NO_LOGIN, and PI_SHELL_PREFIX environment variables for shell customization.
- Changed Edit tool to reject .ipynb files with guidance to use NotebookEdit tool instead.
- Added shell-snapshot.ts module with snapshot caching, cleanup handlers, and source command generation.
2026-01-03 10:59:26 +01:00
can1357 257e165aea chore: bump version to 1.5.0 2026-01-03 10:25:51 +01:00
can1357 33469f2028 fix(coding-agent): updated Exa MCP tool names to match current API
Exa changed their MCP tool names: web_search→web_search_exa,
crawling_exa→crawling, linkedin_search_exa→linkedin_search,
company_research_exa→company_research. Also fixed num_results→numResults
param and removed deep_search_exa (now uses web_search_exa with type:deep).
2026-01-03 09:24:29 +01:00
can1357 43f427fecf feat(coding-agent): added provider filtering and LSP diagnostics
- Added provider tab bar for filtering models by provider with Tab/Arrow key navigation.
- Replaced single-key shortcuts (S/L) with context menu for model role assignment.
- Added LSP diagnostics display in tool execution results with error/warning indicators.
- Improved model list sorting to include secondary sort by model ID.
- Refactored role markers to use badge-style labels (DEFAULT, SMOL, SLOW).
2026-01-03 08:59:26 +01:00
can1357 4aaebfe5a8 fix: resolved race conditions and resource leaks with mutex locks
- Added mutex-based synchronization to prevent race conditions in LSP client, session context, and RPC mode.
- Fixed resource leaks by ensuring stream reader locks are released in try/finally blocks.
- Fixed duplicate processing issues by tracking in-flight operations in runner creation and message writes.
- Fixed event listener mutation during iteration by copying array before emitting.
- Added abort controller cleanup to prevent memory leaks in auto-compaction and retry logic.
2026-01-03 08:00:55 +01:00
can1357 0836b6d12d feat: added centralized winston logger with daily rotation for debugging
- Added centralized file logger with winston and daily rotation to ~/.pi/logs/ directory.
- Exposed logger property to hook and custom tool APIs for extension logging.
- Replaced silent error suppression with debug/warning logging across 20+ catch blocks.
- Removed separate Exa error logger in favor of centralized logging system.
2026-01-03 07:45:23 +01:00
can1357 e86e4fc8e9 feat(coding-agent): added agent index to task progress for output tool routing
- Added agent index to Task tool progress display for Output tool ID derivation.
- Added conditional file path inclusion in Task tool output when Output tool is unavailable.
- Added availableTools option to CodingToolsOptions interface for tool availability detection.
2026-01-03 07:26:34 +01:00
can1357 98ebc6d8c4 feat(coding-agent): added output tool for reading task results by ID
- Added new `output` tool for reading full agent/task outputs by ID with ANSI stripping.
- Added output metadata (line count, char count) to Task tool result summaries.
- Changed Task output path format to use simpler `${agent}_${index}` ID format.
- Added OutputToolDetails interface and output tool renderer for CLI display.
2026-01-03 06:54:17 +01:00
can1357 4032f57d02 feat(coding-agent): enabled parallel exploration in reviewer agent
- Added task tool to reviewer agent enabling parallel codebase exploration during reviews.
- Changed subagent recursion prevention from blanket blocking to same-agent blocking.
- Added self-recursion detection with user-facing message for blocked recursive calls.
- Renamed PI_NO_SUBAGENTS_ENV to PI_BLOCKED_AGENT_ENV with backwards compatibility.
2026-01-03 06:45:49 +01:00
can1357 86bfa2dd9c fix(hooks): use lint-staged to avoid index.lock race condition 2026-01-03 06:43:10 +01:00
can1357 754da171a4 feat: added interactive /review command with multi-mode selection
- Added interactive /review command with mode selection for base
branch, uncommitted changes, specific commit, or custom
instructions.
- Added subprocess tool registry for extracting and rendering tool
data from subprocess agents.
- Added combined review result rendering with verdict and findings
tree structure.
- Changed bundled commands to be overridable by user/project
commands with same name.
- Removed findings_count parameter from submit_review tool in
favor of automatic counting.
- Added fix npm script for auto-fixable lint issues with unsafe
fixes.
2026-01-03 06:39:04 +01:00
can1357 1d31054be9 docs(coding-agent): added changelog entry for task abort status fix 2026-01-03 06:26:12 +01:00
can1357 93f091d32f fix(coding-agent): Task tool subprocess now uses agent's configured model
The --model CLI flag now accepts provider/model format directly,
eliminating the need for a separate --provider flag. The Task tool's
model-resolver returns provider/model format, which the subprocess
CLI correctly parses.

Previously, subprocesses were passed --model gpt-5.2 without --provider,
causing the CLI to ignore the model and fall back to settings default.
2026-01-03 06:25:58 +01:00
can1357 353aa85c42 fix(coding-agent): show aborted status for task tool
When a task is aborted, now shows "⊘ agent: aborted" instead of
"✓ agent: done". Summary line also shows "N aborted" count.
2026-01-03 06:13:03 +01:00
can1357 9f9d5b1e76 feat(coding-agent): added auto-read for @filepath mentions in prompts
Files referenced with @path/to/file.ext syntax are automatically read
and injected as synthetic Read tool calls before the agent responds,
eliminating the need for manual file reads.
2026-01-03 05:52:40 +01:00
can1357 f07b7cd190 feat(coding-agent): stream Task tool artifacts in real-time
- Write input file (.in.md) before spawning subprocess
- Use subtask-specific session file so pi writes jsonl in real-time
- Output file (.out.md) still written at completion (summary)

Enables observing/debugging running subagents via their session files.
2026-01-03 05:34:47 +01:00
can1357 8aaeaadcdc fix(coding-agent): fixed Task tool output duplication from streaming events
message_update events contain full accumulated text, not deltas.
Previously appending them caused repeated content in artifacts and
progress display. Now message_update only updates progress display
(replacing, not accumulating) and message_end handles final output.
2026-01-03 05:30:37 +01:00
can1357 50ab6b8b1b style: removed .js extension from imports and added node: prefix to builtins 2026-01-03 05:12:25 +01:00
can1357 3d53aa181f feat(coding-agent): added review tools and /review command
- Added report_finding and submit_review built-in tools (hidden by default)
- Added hidden field to AgentTool interface for tools that require explicit opt-in
- Added /review bundled command to launch reviewer agent
- Updated bundled reviewer agent with comprehensive code review guidelines
2026-01-03 05:10:53 +01:00
can1357 c70303ade9 feat(coding-agent): added structured code review with hidden tools and explicit opt-in
- Added hidden property for custom tools to exclude them from default tool list unless explicitly requested.
- Added explicitTools option to createAgentSession for enabling hidden tools by name.
- Added example review tools (report_finding, submit_review) with structured findings accumulation and verdict rendering.
- Added /review command for interactive code review with branch comparison, uncommitted changes, and commit review modes.
- Updated bundled reviewer agent to use structured review tools with priority-based findings (P0-P3) and formal verdict submission.
2026-01-03 05:08:20 +01:00
can1357 83809771d9 fix(coding-agent): passed commands settings to slash command discovery
commands.enableClaudeUser and commands.enableClaudeProject settings
were not being used - fixed by passing settingsManager.getCommandsSettings()
to discoverSlashCommands in createAgentSession.
2026-01-03 04:49:05 +01:00
can1357 a099076a99 feat(coding-agent): added custom slash command loading from user and project directories
- Added custom TypeScript slash commands loaded from ~/.pi/commands/ and .pi/commands/ directories.
- Added support for loading markdown slash commands from Claude's ~/.claude/commands/ and .claude/commands/ directories.
- Added commands.enableClaudeUser and commands.enableClaudeProject settings to control Claude command directory loading.
- Implemented CustomCommandAPI with exec, typebox, and pi module injection for command execution context.
- Integrated custom commands into autocomplete provider for interactive mode discovery.
2026-01-03 04:31:07 +01:00
can1357 ac051daf90 feat(coding-agent): added clipboard export option to /export command 2026-01-03 04:05:00 +01:00
can1357 776ab5eb24 chore: bump version to 1.341.0 2026-01-03 04:00:16 +01:00
can1357 015f2c7e54 feat(agent): added interruptMode to control queued message timing
- Added interruptMode option to control when queued messages interrupt tool execution.
- Implemented "immediate" mode (default) to check queue after each tool and interrupt remaining tools.
- Implemented "wait" mode to defer queue processing until the entire turn completes.
- Exposed interruptMode configuration in interactive settings UI with immediate/wait options.
- Wired interrupt mode through AgentSession and SDK to enable runtime configuration and persistence.
2026-01-03 03:56:13 +01:00
can1357 4f8df6b79f refactor(coding-agent): renamed small to smol consistently
- Renamed SMALL_MODEL_PRIORITY to SMOL_MODEL_PRIORITY
- Renamed findSmallModel to findSmolModel
- Updated all role strings from 'small' to 'smol'
- Updated UI labels and comments
2026-01-03 03:46:45 +01:00
can1357 60f39f8382 feat(coding-agent): added CLI args and env vars for model role overrides
- Added --smol and --slow CLI args for ephemeral model role overrides
- Added PI_SMOL_MODEL and PI_SLOW_MODEL env var support
- Overrides are applied at runtime without persisting to settings.json
2026-01-03 03:40:24 +01:00
can1357 4b73cb6a54 feat(coding-agent): added slow model role for comprehensive reasoning
- Added pi/smol alias for explore agent (fast/cheap model)
- Added pi/slow alias for reviewer agent (reasoning/codex model)
- Added L key binding in model selector to set slow model
- Added 🧠 marker for slow model in selector
- Slow model priority chain: gpt-5.2-codex > codex > gpt > opus > pro
2026-01-03 03:36:51 +01:00
can1357 003a19bdaa feat(coding-agent): added model roles for default and small model configuration
- Settings now use modelRoles map (e.g., { default: 'anthropic/claude-sonnet-4-5', small: 'anthropic/claude-haiku-4-5' })
- Session persistence uses 'provider/modelId' string format with optional role field
- Model selector: Enter sets default, S sets small, Escape closes
- Added role markers in selector: checkmark for default, lightning bolt for small
- Task tool supports pi/<role> aliases (e.g., model: pi/small, haiku, flash, mini)
- Title generation uses configured small model with auto-discovery fallback
- Explore agent now uses pi/small as primary model preference
2026-01-03 03:33:02 +01:00
can1357 206b7b06fd fix(coding-agent): made LSP idle timeout configurable and disabled by default 2026-01-03 03:12:13 +01:00
can1357 ebcdf50e48 feat(coding-agent): added auto session titles for better identification
- Added automatic session title generation using small models (Haiku/GPT-4o-mini/Flash) to improve session identification.
- Implemented terminal window title updates to display current session context.
- Updated session selector to show title with dimmed first message preview for better session browsing.
- Extended SessionInfo and SessionHeader interfaces to persist and display generated titles.
- Added title model preference hierarchy with fallback to any available model for reliability.
2026-01-03 03:07:03 +01:00
can1357 ccc0a8b6c8 feat(coding-agent): added LSP format-on-write with server warmup
- Added LSP format on write to automatically format code files using language server formatters after writing.
- Implemented LSP server warmup at startup to avoid cold-start delays when first writing files.
- Added LSP server status display in welcome banner to show which language servers are active and ready.
- Fixed recent sessions display in welcome banner which was never wired up.
- Improved grep tool description to document pagination options and clarify recursive search behavior.
2026-01-03 02:58:30 +01:00