Skip to content

Refactor Agent Core & remove claude-agent-sdk#13

Merged
liruifengv merged 40 commits intomainfrom
refactor/amon
Mar 11, 2026
Merged

Refactor Agent Core & remove claude-agent-sdk#13
liruifengv merged 40 commits intomainfrom
refactor/amon

Conversation

@liruifengv
Copy link
Copy Markdown
Owner

No description provided.

liruifengv and others added 30 commits February 16, 2026 15:08
- 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
@liruifengv liruifengv changed the title refactor Refactor Agent Core & remove claude-agent-sdk Mar 11, 2026
@liruifengv liruifengv merged commit efbb9ac into main Mar 11, 2026
1 check passed
@github-actions github-actions bot mentioned this pull request Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant