LLMs-Universal-Life-Science-and-Clinical-Skills- openhands-coding-agent
Run OpenHands headless CLI/SDK missions from BioKernel swarms for autonomous software work.
install
source · Clone the upstream repo
git clone https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills-
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills- "$T" && mkdir -p ~/.claude/skills && cp -r "$T/Skills/Agentic_AI/OpenHands_Coding_Agent" ~/.claude/skills/mdbabumiamssm-llms-universal-life-science-and-clinical-skills-openhands-coding-a && rm -rf "$T"
manifest:
Skills/Agentic_AI/OpenHands_Coding_Agent/SKILL.mdsource content
OpenHands Coding Agent Skill
OpenHands (formerly OpenDevin) is a 70k+ star open-source coding agent stack that exposes the same engine through a Python SDK, a CLI, a local GUI, a hosted cloud workspace, and a self-hosted enterprise edition.¹ The CLI ships with a headless mode so you can script missions, capture JSONL traces, and hand progress back to other agents.²
When to Trigger This Skill
- You need a persistent IDE-grade coding agent that can run shells, editors, and browsers against your repo while other biomedical agents handle research/safety steps.
- You want to re-use OpenHands’ plan/act/react loop instead of building a sandbox from scratch.
- You must export JSONL traces for downstream reviewers or for ingestion into
dashboards.platform/compliance/
Prerequisites
- Install OpenHands (CLI bundles a uv launcher):
uv tool install openhands --python 3.12 # or pip install openhands - Provide an LLM key via env (Claude, GPT-4.1, Gemini, Qwen, etc.). You can also pass them via
when using the runner below:--env KEY=valueexport OPENAI_API_KEY=sk-... - Ensure your repo mount has git + docker access if you want containerized sandboxes; otherwise use the lightweight local mode.
Workflow
- Define the mission text that OpenHands should solve (e.g., “Triage KRAS G12D tox notebook failures”).
- Run headless CLI so the agent streams work to stdout and (optionally) JSONL. Use the helper below or invoke the CLI directly:
# direct openhands --headless -t "${MISSION}" --json > traces/${RUN_ID}.jsonl # helper script (handles env vars and tee'ing output) python Skills/Agentic_AI/OpenHands_Coding_Agent/openhands_runner.py \ --mission "${MISSION}" \ --json-out Skills/Agentic_AI/OpenHands_Coding_Agent/runs/${RUN_ID}.jsonl \ --env OPENAI_API_KEY=sk-xxx CLAUDE_API_KEY=sk-ant-yyy - Optional task files: place a multi-step YAML/Markdown brief in
and runopenhands_task.md
.openhands --headless -f openhands_task.md - Synthesize results: parse the JSONL (each event has
,role
,tool
) and feed summaries back intocontent
as part of the Reviewer/Safety checkpoints.Multi_Agent_Systems/orchestrator.py - Escalate/stop: send SIGINT (Ctrl+C) to halt the agent; it checkpoints the shell/IDE history so you can resume the same run ID later.
Swarm Handoff Pattern
Kick-off from orchestrator: have the Overmind delegate coding subtasks by writing
MISSION.txt, then invoke OpenHands via subprocess.run (or manually) using the command above.
Return artifacts: drop patch files, terminal transcripts, and the JSON trace under
Skills/Agentic_AI/OpenHands_Coding_Agent/runs/<timestamp>/ so other agents (Reviewer, SafetyOfficer) can inspect diffs.
Assets
| File | Purpose |
|---|---|
| Wrapper that shells out to the OpenHands CLI with , , optional task files, env injection, and JSONL teeing. |
Safety hooks: tail the JSONL stream to automatically look for PHI/PII before allowing patches to merge.
References
- GitHub – OpenHands/OpenHands (
outlines SDK, CLI, GUI, Cloud, Enterprise surfaces). https://github.com/OpenHands/OpenHandsREADME - GitHub – OpenHands CLI headless usage (
). https://github.com/OpenHands/OpenHands?tab=readme-ov-file#openhands-cliopenhands --headless -t ... --json