medsci-agent: Skill for OpenCode

.opencode/skills/sandbox-execution/SKILL.md

sandbox-execution is a skill for OpenCode from omar-A-hassan/medsci-agent. It costs 28 tokens per session (377 once invoked), scanned A, original, MIT.

A way to run exploratory code in an isolated workspace using tools designed for medical-science analysis. The standard process creates a sandbox, runs a command, retrieves selected results, and can remove the workspace afterward.

In plain words
What is it for?
Use it when existing research tools cannot perform a needed analysis, when you need custom scripts, or when exploratory jobs need their own workspace.
Why use it?
It keeps custom or longer-running code separate from the main environment and uses a network-disabled default for isolation.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

This is omar-A-hassan/medsci-agent's own configuration. It tells OpenCode how to work on medsci-agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything medsci-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to omar-A-hassan/medsci-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/omar-A-hassan/medsci-agent/main/.opencode/skills/sandbox-execution/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/omar-A-hassan/medsci-agent

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sandbox-execution

README.md
[![agentmods](https://agentmods.dev/badge/skills/omar-a-hassan/medsci-agent/sandbox-execution/github.svg)](https://agentmods.dev/skills/omar-a-hassan/medsci-agent/sandbox-execution)
Your own site
<a href="https://agentmods.dev/skills/omar-a-hassan/medsci-agent/sandbox-execution"><img src="https://agentmods.dev/badge/skills/omar-a-hassan/medsci-agent/sandbox-execution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sandbox-execution

Your own site · 80×15
<a href="https://agentmods.dev/skills/omar-a-hassan/medsci-agent/sandbox-execution"><img src="https://agentmods.dev/badge/skills/omar-a-hassan/medsci-agent/sandbox-execution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00377
Opus 5.5 $0.00011 $0.00151
Sonnet 5.5 $0.00006 $0.00075
Haiku 4.5 $0.00003 $0.00038

Measured 2mo ago against content hash ef485c20242d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sandbox-execution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/sandbox-execution/SKILL.md · 42 lines

What it actually says

Sandbox Execution

When to Use

  • Domain MCP tools cannot directly perform the requested analysis
  • Task requires generated/custom code execution
  • Long-running exploratory workflows need isolation

Standard Workflow (Sequential)

1. Prepare sandbox  → sandbox_prepare(workspace_path, network_policy="deny")
2. Run command      → sandbox_run_job(sandbox_name, command, timeout_sec)
3. Check status     → sandbox_status(sandbox_name) [optional/advisory]
4. Fetch outputs    → sandbox_fetch_artifact(sandbox_name, artifact_path)
5. Teardown         → sandbox_teardown(sandbox_name, remove=true|false)

Defaults and Guardrails

  • Default network policy: deny
  • Use explicit timeout_sec on every run job
  • Treat sandbox_run_job success/failure as source-of-truth for execution outcome
  • If sandbox_status is used, apply 1-2s retry/backoff before final state conclusion
  • Retrieve only required artifacts/logs
  • Prefer removing sandbox after one-off jobs (remove=true)
  • Prefer python3 for inline script execution commands

Failure Handling

  • SANDBOX_TIMEOUT: reduce scope or increase timeout
  • CLI_UNAVAILABLE: verify Docker + Docker Sandbox CLI installed
  • SANDBOX_CREATE_FAILED: check Docker Desktop status and template availability
  • ARTIFACT_PATH_FORBIDDEN: use safe paths under workspace/artifact roots only
  • ARTIFACT_NOT_FOUND: verify command produced expected files before fetch

Notes

  • Keep tool calls sequential to avoid local contention.
  • Return raw execution outputs even if interpretation models are unavailable.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 42 lines · 28 tokens per session scan A ef485c20242d

Subscribe to this mod's changes

sandbox-execution is a skill published in the GitHub repository omar-A-hassan/medsci-agent (17 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 377 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

sandbox-execution compared with skills from other repositories

sandbox-execution next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sandbox-executionomar-A-hassan/medsci-agentSkill172mo agoMITA28OpenCode
build-expression-treejimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA24Claude Code
find-convex-hulljimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA31Claude Code
dfam-checkearthtojake/text-to-cadSkill26kyesterdayMITA117Claude Code, Codex
peer-reviewxintaofei/codegSkill4.2k6d agoApache-2.0A71Claude Code
scientific-critical-thinkingxintaofei/codegSkill4.2k6d agoApache-2.0A63Claude Code
tooluniverse-phylogeneticsmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A155Claude Code