-
Notifications
You must be signed in to change notification settings - Fork 238
WIP: add Agent Skill support #787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis changeset introduces a new "agentic" agent type that extends the existing AI agent framework with advanced task execution capabilities. The implementation includes a skill system for loading external agent capabilities, built-in tools for file operations and bash execution, and a planner sub-agent for breaking down complex objectives. The changes span core agent implementation, YAML configuration support, and loader updates to handle the new agent type. Changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Files selected (3)
- packages/core/src/agents/agentic-agent.ts (1)
- packages/core/src/loader/agent-yaml.ts (3)
- packages/core/src/loader/index.ts (2)
Files ignored due to filter (2)
- packages/core/package.json
- pnpm-lock.yaml
Review comments generated (16)
- Review: 11
- LGTM: 5
| console.log("GrepTool stdout:", data.toString()); | ||
| controller.enqueue({ delta: { text: { matches: data.toString() } } }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| console.log("GrepTool stderr:", data.toString()); | ||
| controller.enqueue({ delta: { text: { error: data.toString() } } }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| console.log("GrepTool process closed with code:", code); | ||
| if (typeof code === "number") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| console.log("GrepTool process error:", error); | ||
| controller.enqueue({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| async function loadAgentSkills() { | ||
| const skills: AgentSkill[] = []; | ||
|
|
||
| const root = resolve("/Users/chao/.claude/plugins/marketplaces/anthropic-agent-skills"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| controller.enqueue({ delta: { json: { success: true } } }); | ||
| } catch (error) { | ||
| controller.enqueue({ | ||
| delta: { text: { error: `Failed to write file: ${error.message}` } }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| rg.on("error", (error) => { | ||
| console.log("GrepTool process error:", error); | ||
| controller.enqueue({ | ||
| delta: { text: { error: `Failed to spawn ripgrep: ${error.message}` } }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| }); | ||
| } catch (error) { | ||
| controller.enqueue({ | ||
| delta: { text: { error: `GrepTool encountered an error: ${error.message}` } }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | ||
| } catch (error) { | ||
| controller.enqueue({ | ||
| delta: { text: { error: `Failed to glob files: ${error.message}` } }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| }); | ||
|
|
||
| child.on("error", (error) => { | ||
| controller.enqueue({ delta: { text: { stderr: error.message } } }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related Issue
Major Changes
Screenshots
Test Plan
Checklist
Summary by AIGNE
Release Notes
New Feature
Chore