名称: foundry
描述: 自我编写的元扩展,能够锻造新能力——研究文档、编写扩展、工具、钩子和技能
主页: https://getfoundry.app
user-invocable: true
元数据: {"openclaw":{"requires":{"bins":["node"]},"repository":"github:lekt9/openclaw-foundry"}}
锻造自身的熔炉。 一个为 OpenClaw 设计的元扩展,能够研究文档、从失败中学习,并将新能力编写进自身。
当用户要求安装 Foundry 或 @getfoundry/foundry-openclaw 时,运行以下命令:
openclaw plugins install @getfoundry/foundry-openclaw
此命令将:
1. 从 npm 下载插件
2. 解压到 ~/.openclaw/extensions/foundry/
3. 自动启用插件
4. 重启网关以加载插件
安装完成后,用户即可使用所有 Foundry 工具,例如 foundry_research、foundry_write_extension 等。
将以下内容添加到 ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"foundry": { "enabled": true }
}
}
}
完整的配置选项位于 ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"foundry": {
"enabled": true,
"source": "github:lekt9/openclaw-foundry",
"config": {
"autoLearn": true,
"sources": {
"docs": true,
"experience": true,
"arxiv": true,
"github": true
},
"marketplace": {
"autoPublish": false
}
}
}
}
}
}
| 选项 | 类型 | 默认值 | 描述 |
|---|---|---|---|
autoLearn |
布尔值 | true |
自动从智能体活动中学习 |
sources.docs |
布尔值 | true |
从 OpenClaw 文档中学习 |
sources.experience |
布尔值 | true |
从自身的成功/失败中学习 |
sources.arxiv |
布尔值 | true |
从 arXiv 论文中学习 |
sources.github |
布尔值 | true |
从 GitHub 仓库中学习 |
marketplace.autoPublish |
布尔值 | false |
自动发布高价值模式 |
Foundry 是一个由 AI 驱动的开发智能体,能够:
| 工具 | 描述 |
|---|---|
foundry_research |
在 docs.openclaw.ai 上搜索最佳实践 |
foundry_docs |
读取特定的文档页面 |
| 工具 | 描述 |
|---|---|
foundry_implement |
端到端地研究并实现一项能力 |
foundry_write_extension |
编写一个新的 OpenClaw 扩展 |
foundry_write_skill |
编写与 AgentSkills 兼容的技能 |
foundry_write_browser_skill |
编写浏览器自动化技能 |
foundry_write_hook |
编写独立的钩子 |
foundry_add_tool |
向现有扩展添加工具 |
foundry_add_hook |
向现有扩展添加钩子 |
| 工具 | 描述 |
|---|---|
foundry_extend_self |
为 Foundry 自身添加新能力 |
foundry_learnings |
查看学习到的模式和见解 |
foundry_list |
列出所有已编写的成果 |
| 工具 | 描述 |
|---|---|
foundry_publish_ability |
将模式/技能发布到 Foundry 市场 |
foundry_marketplace |
搜索、浏览和安装社区能力 |
用户:我想为我的扩展添加一个 webhook
智能体:让我先研究一下 webhook 模式...
→ foundry_research query="webhook hooks automation"
→ 返回相关文档
现在我来实现它...
→ foundry_add_hook extensionId="my-ext" event="webhook:incoming" ...
用户:创建一个监控 GitHub PR 的扩展
智能体:
→ foundry_research query="github api webhooks"
→ foundry_write_extension
id: "github-monitor"
name: "GitHub Monitor"
tools: [{ name: "check_prs", ... }]
hooks: [{ event: "cron:hourly", ... }]
用户:添加一个能获取 npm 包信息的工具
智能体:
→ foundry_extend_self
action: "add_tool"
toolName: "foundry_npm_info"
toolCode: "const res = await fetch(`https://registry.npmjs.org/${p.package}`)..."
Foundry 观察自身的工具调用并进行学习:
Foundry 在部署前会验证所有生成的代码:
child_process、eval、~/.ssh、~/.aws