AGENT SKILL

devin-integrate

Use when embedding the Devin agent into an external surface — a device (Busy Bar), an LLM harness (opencode/hermes), a service, an IDE, or a cron. Covers direction (devin-as-callee vs caller vs bidirectional), the transport ladder, the verified surface inventory, and the integration contract checklist. Complements cli-adapter (outbound agent->app); this skill is inbound/integration.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 0
Forks
1

01 前言 Front Matter

name
devin-integrate
triggers
[ "user", "model" ]
description
Use when embedding the Devin agent into an external surface — a device (Busy Bar), an LLM harness (opencode/hermes), a service, an IDE, or a cron. Covers direction (devin-as-callee vs caller vs bidirectional), the transport ladder, the verified surface inventory, and the integration contract checklist. Complements cli-adapter (outbound agent->app); this skill is inbound/integration.
allowed-tools
[ "read", "grep", "find_file_by_name", "write", "edit", "exec", "webfetch" ]

03 SKILL.md 正文

devin-integrate

Embed Devin into an arbitrary surface. Origin case: Busy Bar reel (huwprosser/DfXwuL0izsO) — agent sees a new device, looks up its API, and builds. This skill is that loop, codified.

Step 1 — direction

Direction Meaning Examples
callee something calls devin harness, device button, cron, CI step
caller devin calls something hooks, MCP tools, push wrappers
bidirectional both, same session ACP sessions, WS stream + push

Step 2 — transport ladder (pick the cheapest)

file ledger < subprocess stdout < HTTP < stdio JSON-RPC < WebSocket

  • Ledger/file: dumb consumers, state push. Ref: scripts/focus.py -> .devin/ledgers/focus.jsonl -> extensions/busybar/push.py.
  • Subprocess: devin -p prompt->text on stdout. Ref: api-bridge backend.
  • HTTP: OpenAI-compatible surface. Ref: extensions/api-bridge/bridge.py (/v1/chat/completions, /v1/models, /health, GET /; LAN binds require --token).
  • stdio JSON-RPC: sessions + streamed chunks + client-gated fs. Ref: .devin/scratch/acp-spike/client.py (initialize -> session/new -> session/prompt -> agent_message_chunk; MUST answer fs/read_text_file or the agent deadlocks in ask/plan).
  • WebSocket: device state streams. Ref: Busy Bar StateStream (docs.busy.app/bar/dev/http-api) — input events -> agent triggers.

Verified surface inventory (CLI 3000.12.43)

Surface Dir Notes
devin -p callee full agent run, seconds latency, stdout text
devin acp [--agent-type] bidir summarizer/review/codemap agents verified; default agent heavy
api-bridge callee OpenAI-compat; x-ignored-params honest field; --backend acp = real deltas + real usage
hooks caller tool_response.overflow_path exists on truncation (12.17+)
devin cloud/forward callee org API; DRS needs entitlement; forward=tunnel ports
busybar push caller display/draw+display/clear, USB no-auth, LAN token
busybar listen bidir ws state stream -> focus/effort; dial persists .devin/busybar-effort.txt

Playbook (working examples in-repo)

  1. extensions/api-bridge/bridge.py — full callee integration (bridge.py setup opencode|codex|hermes|generic prints harness stanzas).
  2. extensions/busybar/push.py — minimal caller: 2 endpoints, fail-soft.
  3. extensions/busybar/listen.py — bidir: stdlib ws client, event->action map.
  4. extensions/gcal/wrapper.py — service adapter, ok-envelope contract.
  5. .devin/scratch/acp-spike/client.py — bidirectional session client.
  6. scripts/focus.py — ledger emitter, zero-dep integration surface.

Contract checklist (every integration)

  • Auth boundary explicit: loopback free, LAN requires token (bridge refuses off-loopback without --token).
  • Fail-soft: unreachable surface -> stderr note + exit 0 for advisory pushes; hard fail only when the surface IS the deliverable.
  • {"ok": false} envelopes exit non-zero (audit check [36]).
  • UTF-8 pinned: subprocess encoding="utf-8", errors="replace"; file I/O encoding="utf-8" (audit [37]/[38]).
  • No fake streaming: if the backend flushes once, emit one delta + [DONE] — never fabricate token chunks.
  • Verify live once with a real call before claiming integration works; hardware-blocked surfaces get spec + skeleton + mock tests.

Anti-patterns

  • Assuming device/harness has auth off by default (LAN busybar needs token).
  • Silently dropping unsupported request params — surface them (x-ignored-params pattern in bridge).
  • Spawning unbounded devin processes under concurrent callers — cap (bridge --concurrency semaphore).

Reference products

  • OpenWorker (open-source, Andrew Ng): agent-as-coworker with 40+ SaaS connectors (mail/calendar/docs) doing triage, replies, updates; a reference for the devin-as-employee integration direction.

04 同仓库更多 Skills

Leostruka
Leostruka/devin-bundle

montador-de-ideias

Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.

★ 0
Leostruka
Leostruka/devin-bundle

git-github-adaptive-engineering

Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.

★ 0
Leostruka
Leostruka/devin-bundle

adaptive-agenda-calendar-routine-engine

Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.

★ 0
Leostruka
Leostruka/devin-bundle

demo

Use when demonstrating a skill in a fixture project.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0