self-awareness
它能做什么
这项技能让智能体检查自身的工作区,包括可用的主机功能、项目文件和正在运行的会话。它适用于使用 Open-Science 环境、需要智能体找到可用资源的人。
适用场景
- ✓当智能体在尝试任务前需要知道哪些功能已开启时。
- ✓当你想在当前项目中找到某个特定文件或数据集版本时。
- ✓当你想让智能体读取之前会话的记录,以了解发生了什么时。
技能链接
https://github.com/aipoch/open-science/blob/main/resources/skills/self-awareness/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我检查这个项目中有哪些主机功能可用,并找到最新的数据集版本。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会在控制环境中调用能力检查功能。然后它会查找项目文件、会话或记录,并报告所找到的内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Self-awareness
Use repl_execute for every host.* call. The host object exists only in the persistent
JavaScript control REPL; Python and R data kernels do not receive it.
Inspect available capabilities
const caps = await host.capabilities()
The current project-native result contains 20 known boolean keys:
mcpgates connector calls throughhost.mcp(server, method, args?).computegates thehost.computenamespace.agentsgates thehost.agentsnamespace.skillsgates thehost.skillsnamespace.artifactsgates managed-file discovery throughhost.artifacts(options?)and exact path resolution throughhost.artifactPath(versionId).lineagegates the read-onlyhost.lineagenamespace.framesgates the read-onlyhost.framesnamespace.sessionsgates Main-only, read-only Session diagnostics throughhost.sessions.list(options?)and exact lookup throughhost.sessions.inspect(sessionId)in the current Project.llmgates one-shot, tool-less inference throughhost.llm(request, options?).currentModelgates exact current-model lookup throughhost.currentModel(). It returns the calling Session's exact current model id and fails when the live backend cannot establish one.listModelsgates configured Host LLM model discovery throughhost.listModels(). It returns the frozen, stable-sorted configured model ids for the current Host LLM Provider and framework. It never refreshes over the network or merges ids across Providers.viewImagegates transient image attachment throughhost.viewImage(source, options?). Sources may be an Artifact or Upload Version in the current Project, or a path relative to the current execution workspace. For a generated file, pass the same relative path used to save it.delegate,children,collect,stopChild, andresolveMessageare Main/root-only delegated work operations.sendFrameMessageandmessageReceiptare available to Main/root and Delegate agents when their trusted route is provisioned.submitOutputis available only to an authenticated Delegate Attempt with an admitted output schema.
Newer runtimes may return additive boolean keys. Do not assume their meaning until their matching Skill documents them. Older runtimes can omit known keys.
Interpret every key narrowly:
truemeans the current session capability authorizes the namespace and the application has its handler configured. It does not mean a resource exists, approval is unnecessary, or a call will succeed.falsemeans the capability name is known but unavailable to this caller.- A missing key means this runtime does not know that capability. Test with
=== true.
const caps = await host.capabilities()
if (caps.compute === true) {
const availableHosts = await host.compute.listHosts()
}
if (caps.llm === true) {
const result = await host.llm('Summarize the current findings.')
}
if (caps.currentModel === true) {
const sessionModel = await host.currentModel()
}
if (caps.listModels === true) {
const hostLlmModels = await host.listModels()
}
if (caps.sessions === true) {
const recentSessions = await host.sessions.list({ limit: 20 })
}
if (caps.viewImage === true) {
await host.viewImage({ path: 'results/plot.png' }, { maxSize: 1200 })
}
if (caps.sendFrameMessage === true) {
await host.sendFrameMessage('parent', 'The analysis is ready.')
}
Do not infer capabilities by reflecting over host, and do not treat this result as a resource,
credential, permission, or readiness inventory. Call it again when current availability matters; each
call returns a fresh frozen projection.
host.help() documents registered topics only. A not_found result identifies missing Help
documentation: not_found does not override host.capabilities() or prove that a method is absent.
Discover managed Project files
When caps.artifacts === true, use await host.artifacts(options) to list generated Artifacts and
user Uploads across the current Project. Optional camelCase fields are versionId, frameId,
filename, exact, search, contentType, after, before, cursor, and limit (default 20,
maximum 100). versionId is exclusive; exact requires filename; search and filename cannot
be combined. contentType accepts an exact MIME type or a top-level prefix such as text/. Bare
dates are UTC midnight, after is inclusive, and before is exclusive
常见问题
它会改动我的项目吗?
它的多数调用是只读的,例如列出会话和读取记录。
它在哪里运行?
它只在 JavaScript 控制环境中运行,因为主机对象只存在于该环境中。
它可以调用模型吗?
只有在项目中开启了该功能时才可以。技能将其列为单独的能力。
详情
作者的原始描述
Inspect Open-Science's JavaScript control REPL, discover managed Project files, Sessions, and Agent Frames, and safely feature-gate host.* calls with host.capabilities(). Use when an Agent needs to discover available host APIs, locate an Artifact or Upload Version, diagnose a Session, or read a Frame transcript in the current Project.
repo: aipoch/open-science
热度
- GitHub 星标
- 5.4k
- 排名
- #14872
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
alphafold2
5.4k帮你的智能体通过 ColabFold 运行器,使用 AlphaFold2 根据蛋白质序列预测其三维结构,包括蛋白质复合物。
boltz
5.4k帮你的智能体使用开源的 Boltz-2 模型预测蛋白质、DNA、RNA 和小分子复合物的结构,并可选择估算结合亲和力。
borzoi
5.4k帮你的智能体根据 DNA 序列预测全基因组的活性轨迹,例如表达和可及性,并通过预测效果比较变异。
chai1
5.4k帮你的智能体通过一个 FASTA 文件,使用 Apache 许可的 Chai-1 模型预测蛋白质、核酸和配体复合物的结构。