Refactor Agent Core & remove claude-agent-sdk#13
Merged
liruifengv merged 40 commits intomainfrom Mar 11, 2026
Merged
Conversation
- Implemented a custom dropdown for provider selection in AgentSettings. - Added ProviderEditModal for editing provider configurations. - Introduced ProviderPickerModal for selecting provider presets. - Created ProviderIcon component for displaying provider icons. - Updated ProviderSettings to manage provider configurations with new modals. - Enhanced provider configuration schema to include type, icon, and modelId. - Migrated existing provider configurations to include new fields. - Added support for multiple provider presets with default models and base URLs.
- Deleted the Reasoning, Shimmer, Task, Tool, and Command components along with their associated files. - Cleaned up the codebase by removing unnecessary imports and context providers. - Ensured that all related functionality and UI elements are no longer present in the project.
…P.md) Add OpenClaw-inspired prompt system that loads workspace files from ~/.amon/workspace/ and injects them into the system prompt as Project Context. On first run, template files are seeded and BOOTSTRAP.md drives an onboarding ritual where the agent and user co-define the agent's identity and personality. - Add template files (AGENTS.md, SOUL.md, BOOTSTRAP.md) in resources/ - Add workspace-bootstrap module for seed/load/remove logic - Refactor DEFAULT_SYSTEM_PROMPT: remove hardcoded personality, keep framework-level guidance (principles, working style, output rules) - Add buildProjectContext() to system-prompt.ts for file injection - Integrate bootstrap loading in agent-runtime before prompt building - Update forge.config.ts to bundle templates via extraResource Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… browser - Relax CSP img-src/connect-src to allow external images in markdown - Add CORS bypass and will-download handler for proper file download - Open external links in system default browser via setWindowOpenHandler - Disable Streamdown link safety modal Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Load AGENTS.md from the project workspace root in addition to the global ~/.amon/workspace/ files. Project-level instructions are appended last in the system prompt for highest priority. Skips loading when the workspace is the global directory to avoid duplication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Register web_search_20260209 server tool for direct Anthropic API - Add SERVER_TOOL_REPLACES mapping to filter custom WebSearch - Implement Exa-backed WebSearch custom tool for non-Anthropic providers - Extend ServerToolBlock with search icon, query display and result rendering - Add Exa API Key setting in Agent settings page - Add WebSearchResultItem/WebSearchResultContent types Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Added @google/genai as a dependency for Gemini integration. - Implemented GeminiAdapter for handling requests and responses with Google Gemini. - Created OpenAIResponsesAdapter for managing OpenAI responses. - Updated ProviderRegistry to register new adapters for Gemini and OpenAI Responses. - Enhanced ProviderPreset and ProviderConfig to include new provider types. - Modified provider types and schemas to accommodate new features. - Updated context management and stream normalization to support signatures for tool use. - Added icons for Gemini in the settings UI.
- Introduced AgentOptions interface for better configuration of the Agent class. - Refactored internal state management to use private properties with getters/setters. - Updated the prompt and continue methods to handle messages more flexibly. - Added support for steering and follow-up messages with configurable modes. - Removed the validation utility from the agent module and integrated it into the AI module. - Implemented AJV-based validation for tool arguments in the new validation utility. - Enhanced type definitions for AgentMessage and AgentEvent to support extensibility. - Cleaned up the codebase by removing unused validation functions and consolidating imports.
…ngs and types - Updated TokenUsage component to use new usage structure and improved formatting. - Refactored ToolGroup component to remove unused props and streamline rendering. - Enhanced UserMessage component to extract text and images from message content. - Modified ProviderEditModal and ProviderSettings to align with new provider configuration structure. - Updated chatStore to manage agent run states and tool execution states. - Removed deprecated provider types and schemas, replacing them with a new structure. - Adjusted IPC types to reflect changes in agent and tool execution handling. - Migrated provider presets to new apiType and provider structure for better clarity.
- Introduced comprehensive documentation for the @amon/agent module, detailing its quick start guide, API reference, event types, and architecture. - Added README for the @amon/ai module, covering quick start instructions, API reference, event stream handling, model management, and tool call flow examples.
… sanitization, constants, provider presets, and settings schema - Implement tests for `parseStreamingJson` to cover various JSON input scenarios. - Create tests for `isContextOverflow` and `getOverflowPatterns` to validate context overflow detection logic. - Add tests for `sanitizeSurrogates` to ensure proper handling of Unicode surrogates. - Introduce tests for shared constants to verify filtering of blocked headers and constant values. - Add tests for `PROVIDER_PRESETS` to ensure all required fields and uniqueness of IDs. - Implement extensive tests for settings schema parsing, including migration scenarios and invalid data handling. - Update Vitest configuration to increase test timeout and set environment to node.
…ation - Implemented skills management in the application, allowing users to view, install, uninstall, and manage skills. - Added new components: SkillsView, SkillCard, SkillDetailDialog, and SkillIcon for displaying skills. - Integrated skills functionality into the existing state management using Zustand. - Enhanced the Sidebar component to navigate between chat and skills views. - Introduced IPC methods for skills operations (list, install, uninstall, toggle disable). - Updated localization files to include translations for skills-related terms. - Added tests for skills management and schema validation.
- move bundled skills from resources/skills to top-level skills - refresh built-in skill catalog and default installs - add brainstorming, find-skills, ui-ux-pro-max, and vercel-react-best-practices - expand skill-creator and office-document skills tooling - update skills IPC, UI copy, docs, and packaging paths
Merged
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.
No description provided.