You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`Shell`| The agent needs shell access. | Adds `exec_command`, plus `write_stdin` when the sandbox client supports PTY interaction. |
196
196
|`Filesystem`| The agent needs to edit files or inspect local images. | Adds `apply_patch` and `view_image`; patch paths are workspace-root-relative. |
197
-
|`Skills`| You want skill discovery and materialization in the sandbox. | Prefer this over mounting `.agents` or `.agents/skills` manually for sandbox-local `SKILL.md` skills. |
197
+
|`Skills`| You want skill discovery and materialization in the sandbox. | Prefer this over manually mounting `.agents` or `.agents/skills`; `Skills` indexes and materializes skills into the sandbox for you. |
198
198
|`Memory`| Follow-on runs should read or generate memory artifacts. | Requires `Shell`; live updates also require `Filesystem`. |
199
199
|`Compaction`| Long-running flows need context trimming after compaction items. | Adjusts model sampling and input handling. |
200
200
@@ -205,9 +205,12 @@ By default, `SandboxAgent.capabilities` uses `Capabilities.default()`, which inc
205
205
For skills, choose the source based on how you want them materialized:
206
206
207
207
-`Skills(lazy_from=LocalDirLazySkillSource(...))` is a good default for larger local skill directories because the model can discover the index first and load only what it needs.
208
+
-`LocalDirLazySkillSource(source=LocalDir(src=...))` reads from the filesystem where the SDK process is running. Pass the original host-side skills directory, not a path that only exists inside the sandbox image or workspace.
208
209
-`Skills(from_=LocalDir(src=...))` is better for a small local bundle you want staged up front.
209
210
-`Skills(from_=GitRepo(repo=..., ref=...))` is the right fit when the skills themselves should come from a repository.
210
211
212
+
`LocalDir.src` is the source path on the SDK host. `skills_path` is the relative destination path inside the sandbox workspace where skills are staged when `load_skill` is called.
213
+
211
214
If your skills already live on disk under something like `.agents/skills/<name>/SKILL.md`, point `LocalDir(...)` at that source root and still use `Skills(...)` to expose them. Keep the default `skills_path=".agents"` unless you have an existing workspace contract that depends on a different in-sandbox layout.
212
215
213
216
Prefer built-in capabilities when they fit. Write a custom capability only when you need a sandbox-specific tool or instruction surface that the built-ins do not cover.
0 commit comments