Commit Graph
1159 Commits
Author SHA1 Message Date
can1357 ef97ffc322 docs(coding-agent/prompts): improved Task tool docs to clarify subagent context isolation and tool access
- Updated Task tool documentation to emphasize that subagents have no access to conversation history and require all relevant context to be explicitly passed.
- Revised task agent prompt to clarify that subagents have full tool access and can make file edits, run commands, and create files.
- Replaced example in Task tool docs with a more realistic refactoring scenario demonstrating context passing.
2026-01-11 02:28:29 +01:00
can1357 50119740c0 feat(ai/providers): switched OpenAI Codex to bundled system prompt and removed dynamic instruction fetching
- Switched OpenAI Codex to use bundled system prompt matching opencode upstream.
- Changed OpenAI Codex originator identifier from 'codex_cli_rs' to 'opencode'.
- Added User-Agent header with version, platform, and architecture information to Codex requests.
- Removed dynamic GitHub-based instruction fetching and caching logic in favor of static inline instructions.
- Removed buildCodexPiBridge function and pi-codex-bridge module, replacing with inline BRIDGE constant.
- Removed Codex injection info from HTML session exports.
2026-01-11 02:09:35 +01:00
can1357 e8b109a83b feat(coding-agent): made data parameter optional in complete tool when aborting
- Made `data` parameter optional in `complete` tool when aborting, while still requiring it for successful completions.
2026-01-11 01:17:10 +01:00
can1357 0a9dd36e3d fix(multi): corrected auth messaging and google tool schemas 2026-01-11 01:06:05 +01:00
can1357 0729d340b7 fix(coding-agent): repaired autocomplete cancel redraw 2026-01-11 00:50:48 +01:00
can1357 8267008014 feat(coding-agent): added planner built-in agent for implementation planning
Adds a comprehensive planning agent using slow models that:
- Follows 4-phase workflow: Understand, Explore, Design, Produce Plan
- Can spawn explore agents for parallel codebase search
- Outputs structured plans with changes, sequence, edge cases, verification
2026-01-11 00:50:04 +01:00
can1357 f1d2664476 feat: removed leftover agent commands and improved file autocomplete behavior
- Removed built-in agent commands: 'architect-plan', 'implement', and 'implement-with-critic' from coding-agent.
- Improved file autocomplete to show directory listing when typing '@' with no query.
- Added fallback to prefix matching when fuzzy search returns no results for file autocomplete.
- Fixed 'fd' tool detection to automatically find 'fd' or 'fdfind' in PATH when not explicitly configured.
2026-01-11 00:44:48 +01:00
can1357 9900c30014 chore: bump version to 4.2.0 2026-01-11 00:37:36 +01:00
can1357 7faa151de0 refactor(coding-agent): migrated prompt system to Handlebars templating and reorganized prompt files
- Removed rulebook tool and migrated rules loading to use read tool instead.
- Reorganized prompt files into subdirectories: agents/, compaction/, and system/.
- Added Handlebars helpers for template rendering including list, join, table, codeblock, xml, when, pluralize, and arithmetic operations.
- Migrated prompt template rendering from simple string replacement to Handlebars-style templating with structured data objects.
- Refactored system prompt generation to pass structured data instead of pre-formatted strings.
- Removed rulebookRules property from ToolSession interface and updated all test files accordingly.
2026-01-11 00:36:15 +01:00
can1357 1c93809f59 feat(coding-agent): added /dump command for clipboard transcript export
- Added new `/dump` slash command to copy full session transcript to clipboard.
- Separated `/export` and `/dump` commands with distinct responsibilities, removing clipboard copy functionality from `/export`.
- Implemented handleDumpCommand() method in command controller to manage clipboard operations independently.
2026-01-11 00:31:23 +01:00
can1357 24f0e41db7 refactor(interactive): restructured interactive-mode.ts into separate controller and utility classes
- Extracted CommandController class handling slash commands and user-initiated actions from interactive-mode.ts.
- Extracted EventController class handling AgentSessionEvent processing from interactive-mode.ts.
- Extracted ExtensionUiController class managing TUI-based UI context for extensions and hooks from interactive-mode.ts.
- Extracted InputController class handling keyboard input and editor interactions from interactive-mode.ts.
- Extracted SelectorController class managing UI selector components from interactive-mode.ts.
- Extracted UiHelpers and VoiceManager utility classes from interactive-mode.ts.
2026-01-11 00:05:34 +01:00
can1357 efc3d9f775 perf(coding-agent): deferred history database writes to eliminate message submission lag 2026-01-10 23:54:29 +01:00
can1357 25fc2160bf feat(coding-agent): added automatic Nerd Fonts detection for popular terminals with env override
- Added automatic Nerd Fonts detection for iTerm, WezTerm, Kitty, Ghostty, and Alacritty terminals.
- Added NERD_FONTS environment variable override to manually control Nerd Fonts symbol preset with '1' or '0' values.
- Changed symbolPreset default to automatically use 'nerd' when Nerd Fonts are detected, otherwise 'unicode'.
- Added hasNerdFonts() function with caching to detect terminal Nerd Fonts support.
- Changed CustomShareFn return type from void to undefined in union type.
2026-01-10 23:51:08 +01:00
can1357 bb2752e16a feat(coding-agent): added Handlebars templating engine for prompt rendering with layout optimization
- Integrated Handlebars templating engine with custom {{arg}} helper for positional arguments in prompt templates.
- Changed prompt template rendering to use Handlebars instead of simple string replacement.
- Added prompt layout optimization that normalizes indentation and collapses excessive blank lines.
- Added conditional rendering support in system prompt to hide empty context blocks.
- Updated all tool descriptions and prompt templates to use centralized renderPromptTemplate function.
- Added handlebars@4.7.8 as a new dependency with neo-async, source-map, and wordwrap transitive dependencies.
2026-01-10 23:50:28 +01:00
can1357 899c69d72b feat(coding-agent/core): hardened database permissions and improved auth/settings migration with legacy fallbacks
- Added hardened file permissions on agent database directory (700) and database file (600) for improved security.
- Changed auth migration to merge credentials per-provider instead of skipping when any credentials exist.
- Added migration of settings from legacy settings.json file to SQLite database storage.
- Added fallback to legacy auth.json for OAuth credentials when not found in primary storage.
- Added hardenPermissions method to set restrictive chmod on database directory and file.
2026-01-10 23:39:03 +01:00
can1357 09427086d9 feat(coding-agent): migrated settings and auth storage from JSON files to SQLite database
- Migrated settings and auth credential storage from JSON files (settings.json, auth.json) to SQLite database (agent.db).
- Added AgentStorage class implementing unified SQLite storage with WAL mode, schema versioning, and prepared statement caching.
- Added storage-migration module to handle one-time migration from legacy JSON files to SQLite with backup creation.
- Updated credential migration message to reference agent.db instead of auth.json.
- Removed file locking mechanism from AuthStorage since SQLite handles concurrency natively.
- Added getAgentDbPath() config function returning path to SQLite database file.
2026-01-10 23:24:35 +01:00
can1357 7e10c29792 fix(coding-agent): fixed theme variable resolution to handle references without $ prefix
- Fixed theme variable resolution to properly handle variable references without $ prefix.
- Added early return for empty strings and hex color values in theme resolution.
2026-01-10 23:06:34 +01:00
can1357 6797ad08cd feat(coding-agent): added custom share script support, renamed Glob to Find, improved prompts and docs
- Added custom share script support at ~/.omp/agent/share.ts to replace default GitHub Gist sharing.
- Renamed Glob tool to Find tool throughout prompts and documentation.
- Updated project context formatting to use XML-style tags for clearer structure.
- Refined bash tool guidance to prefer dedicated tools over bash for file operations.
- Updated system prompt with clearer tone guidelines emphasizing directness and conciseness.
- Enhanced verification guidance to prefer external feedback loops like tests and linters.
2026-01-10 23:04:38 +01:00
can1357 70af6c525c docs(coding-agent): improved system prompt with clearer tone, planning, and verification guidelines
- Updated system prompt with clearer tone guidelines emphasizing directness and conciseness.
- Revised workflow instructions to require explicit planning for non-trivial tasks.
- Enhanced verification guidance to prefer external feedback loops like tests and linters.
- Added explicit alignment and prohibited behavior sections to improve response quality.
2026-01-10 22:55:15 +01:00
can1357 dfb2d424cb chore: bump version to 4.1.0 2026-01-10 18:48:26 +01:00
can1357 691b65d953 feat(coding-agent): added persistent prompt history with SQLite FTS5 storage and Ctrl+R search
- Added persistent prompt history with SQLite-backed storage using FTS5 for efficient text searching.
- Added Ctrl+R keybinding to search through prompt history in interactive mode.
- Added HistoryStorage class with singleton pattern, deduplication, and prepared statements for database operations.
- Added HistorySearchComponent with scrollable results list, keyboard navigation, and selection highlighting.
- Added setHistoryStorage() method to Editor class for saving and restoring history across sessions.
2026-01-10 18:48:17 +01:00
can1357 f48bc666d9 fix(coding-agent): fixed credential blocking logic to check remaining available credentials
- Fixed credential blocking logic to correctly check for remaining available credentials instead of always returning true.
2026-01-10 18:02:36 +01:00
can1357 4da04edc3e chore: bump version to 4.0.1 2026-01-10 16:54:40 +01:00
can1357 ba618c75eb feat(coding-agent): added multi-credential usage limit detection and automatic fallback switching
- Added usage limit error detection with regex pattern matching in agent sessions.
- Implemented Codex usage API integration for proactive limit checking with caching.
- Added credential backoff tracking to temporarily skip rate-limited accounts.
- Implemented multi-credential usage-aware selection with automatic fallback.
- Added automatic mid-session credential switching when usage limits are reached.
- Changed credential selection from session-sticky to deterministic FNV-1a hashing with priority ordering.
2026-01-10 16:54:21 +01:00
can1357 3130ee7e1e chore: bump version to 4.0.0 2026-01-10 07:11:17 +01:00
can1357 48a9900784 feat: added extension UI customization APIs, SDK exports, CLI flags, and fixed clipboard/resize bugs
- Added setFooter(), setHeader(), and setEditorComponent() methods to ExtensionUIContext for custom UI components.
- Exported InteractiveModeOptions type and numerous UI components for programmatic SDK usage.
- Added --no-tools flag to disable all built-in tools and --no-extensions flag to disable extension discovery.
- Changed bash tool output truncation to recalculate on terminal resize instead of using cached width.
- Fixed Wayland clipboard copy (wl-copy) no longer blocking when the process doesn't exit promptly.
- Updated model pricing and renamed nex-agi/deepseek-v3.1-nex-n1 model removing :free suffix.
2026-01-10 07:11:01 +01:00
can1357 ce84c3c6f1 feat(ai): fixed Anthropic OAuth, token refresh, thinking mode, and added betas option
- Added betas option to AnthropicOptions for passing custom Anthropic beta feature flags.
- Changed Anthropic OAuth tool naming to use 'proxy_' prefix instead of mapping to Claude Code tool names.
- Added Claude Code headers for all Anthropic requests, not just OAuth tokens.
- Fixed Anthropic OAuth code parsing to accept full redirect URLs in addition to raw authorization codes.
- Fixed Anthropic token refresh to preserve existing refresh token when server doesn't return a new one.
- Fixed thinking mode being disabled when tool_choice forces a specific tool, and auto-adjusted max_tokens when thinking budget is set.
2026-01-10 06:38:37 +01:00
can1357 100061accb chore: merged in upstream changes
- Added ExtensionRuntime shared state with async extension factory support
- Introduced pluggable tool operations (BashOperations, FileOperations, etc.) for remote execution
- Added new CLI flags: --no-tools, --no-extensions, --no-skills
- Added login dialog, countdown timer, and component barrel export
- Added blockImages and thinkingBudgets settings
- Refactored stdin handling with StdinBuffer for improved key parsing
- Updated DEVELOPMENT.md with new architecture documentation
2026-01-10 06:32:51 +01:00
can1357 6847eb2f11 chore: bump version to 3.37.1 2026-01-10 04:31:11 +01:00
can1357 28eda1493c chore: bump version to 3.37.0 2026-01-10 04:16:06 +01:00
can1357 04984aa662 feat: improved JSON schema type coercion and bash command path display
- Enabled type coercion in JSON schema validation to automatically convert compatible types.
- Improved bash command display to show relative paths for working directories.
- Hidden redundant 'cd' prefix when working directory matches current directory.
2026-01-10 04:15:58 +01:00
can1357 bddba19f6d chore: bump version to 3.36.0 2026-01-10 03:37:04 +01:00
can1357 020beb5616 feat(coding-agent): added calc tool, multi-credential round-robin, auth.json file locking, clickable OAuth URLs
- Added calc tool supporting basic mathematical calculations with arithmetic operators, parentheses, and hex/binary/octal literals.
- Added support for multiple API credentials per provider with round-robin distribution across sessions.
- Added file locking on auth.json to prevent concurrent write corruption.
- Added clickable OAuth login URL display in terminal with plain text fallback.
- Updated ask tool prompt to emphasize exhausting other options before asking users.
- Refactored OAuth credential storage to append new credentials instead of replacing existing ones.
2026-01-10 03:36:25 +01:00
can1357 65b789e1e8 feat(coding-agent): added workdir parameter to bash tool for directory-scoped command execution
- Added `workdir` parameter to bash tool to execute commands in a specific directory without requiring `cd` commands.
- Updated bash tool rendering to display working directory context when `workdir` parameter is used.
- Updated bash tool documentation to recommend using `workdir` parameter instead of `cd dir && ...` pattern.
2026-01-10 03:04:04 +01:00
can1357 f8775c4b0a fix(coding-agent): fixed completion notification to only send when interactive mode is in foreground
- Fixed completion notification to only send when interactive mode is in foreground.
- Improved completion notification message to include session title when available.
2026-01-10 02:21:54 +01:00
can1357 84ca6f96e3 chore: bump version to 3.35.0 2026-01-10 00:44:29 +01:00
can1357 6e7ca2fc14 feat(coding-agent): added retry logic with exponential backoff
- Added retry logic with exponential backoff and model fallback for auto-compaction failures.
- Added support for pi/<role> model aliases and automatic model inheritance for subtasks.
- Enhanced error messages with retry-after timing from rate limit headers across all providers.
- Fixed image attachments being dropped when steering messages are queued during streaming.
- Changed edit tool to merge call and result displays into single block.
- Changed model override behavior to persist in settings when explicitly set via CLI.
2026-01-10 00:43:56 +01:00
can1357 86ef2bd34b chore: bump version to 3.34.0 2026-01-09 12:17:04 +01:00
can1357 5a63120dd3 feat(ai): add @oh-my-pi/pi-ai package with tool name prefixing
- Port pi-ai from upstream with Bun-first approach (source files, no dist)
- Add cli_ prefix to tool names in OAuth mode to avoid collisions
- Improve beta header handling with proper deduplication
- Convert codex-instructions.md to Bun text embed
- Strip .js extensions from all imports
2026-01-09 12:10:03 +01:00
Can Bölük d934594aed feat(coding-agent/core): added system info caching for faster startup
- Added caching for system environment detection to improve startup performance.
- Changed GPU detection on Linux to prioritize discrete GPUs (NVIDIA, AMD) over integrated graphics and skip server management adapters.
- Implemented SystemInfoCache interface and file-based persistence in ~/.omp/system_info.json.
2026-01-08 17:43:41 +01:00
Can Bölük df6fca373b feat(coding-agent): added SSH shell detection and host info caching
- Added disk usage information to automatic environment detection.
- Added versioned SSH host info cache format for automatic schema refresh on version mismatch.
- Added SSH compat shell detection to probe for bash/sh on Windows hosts.
- Expanded SSH tool documentation with shell-specific command examples for Unix, PowerShell, and CMD.
- Refactored buildCompatCommand to sync function with explicit shell type parameter.
2026-01-08 17:41:24 +01:00
can1357 66a7255e1d feat(ssh): added automatic remote OS/shell detection with cross-platform support
- Added automatic remote host OS and shell detection with disk-based caching.
- Added compat mode option for SSH hosts to use POSIX shell compatibility wrapping.
- Added Windows shell support with PowerShell and CMD path escaping functions.
- Updated SSH tool description to display detected shell type per host.
- Simplified SSH tool documentation by removing OS-specific command examples.
2026-01-08 17:27:00 +01:00
can1357 09bba56fae feat(coding-agent/core): added cross-platform env detection for context-aware prompts
- Added automatic environment detection to system prompt including OS, distro, kernel, CPU, GPU, shell, terminal, desktop environment, and window manager information.
- Implemented cross-platform detection functions for Windows, macOS, and Linux environments.
2026-01-08 17:10:05 +01:00
can1357 008326b92e feat(coding-agent): added SSH tool with persistent connections and SSHFS mounts
- Added SSH tool for executing commands on remote hosts with project config discovery from ssh.json files.
- Added persistent SSH connection manager with master socket support and automatic cleanup.
- Added SSHFS mount utilities for mounting remote filesystems with automatic unmount on session end.
- Added SSH capability definition with host validation and discovery provider registration.
2026-01-08 16:47:15 +01:00
can1357 91e2d478fb chore: bump version to 3.33.0 2026-01-08 14:13:08 +01:00
can1357 7740b3ad47 feat(coding-agent): added env vars, file mention validation, and model fallback logic
- Added environment variable management via settings.json with applyEnvironmentVariables() and related methods.
- Enhanced file mentions to support directories, validate boundaries, and truncate large files.
- Added fallback model candidate logic in title generator to retry on model failures.
- Fixed bash output preview to minify JSON content and skip structural-only lines.
- Added Cerebras provider support with thinking block filtering and zai-glm-4.6 model priority.
- Refactored tree rendering to use consistent theme.tree properties instead of boxSharp.
2026-01-08 14:10:01 +01:00
can1357 0e09127492 chore: bump version to 3.32.0 2026-01-08 10:01:06 +01:00
can1357 c865937c33 fix(coding-agent): propagated model override to subagents 2026-01-08 07:17:15 +01:00
can1357 8aeabdc797 feat(coding-agent): added LSP warmup timeout and bundled /init command
- Added progress indicator callback when starting LSP servers at session startup.
- Added bundled /init slash command available by default without requiring user configuration.
- Added 5-second timeout for LSP server warmup with lazy initialization fallback.
- Added configurable timeout parameters to LSP client initialization and request methods.
- Refactored slash command loading to use parseCommandTemplate helper and merge embedded commands.
2026-01-08 06:49:18 +01:00
can1357 14ceba6984 chore: bump version to 3.31.0 2026-01-08 02:51:34 +01:00