Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@hung319/opencode-hive

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hung319/opencode-hive

OpenCode plugin for Agent Hive - from vibe coding to hive coding

latest
Source
npmnpm
Version
1.10.13
Version published
Maintainers
1
Created
Source

@hung319/opencode-hive

npm version License: MIT with Commons Clause

From Vibe Coding to Hive Coding — The OpenCode plugin for plan-first, structured AI-assisted development with multi-agent orchestration.

Quick Start

Add @hung319/opencode-hive to your opencode.json:

{
  "plugin": ["@hung319/opencode-hive"]
}

That's it. On first load, Hive auto-installs:

  • Agent Tools: @sparkleideas/agent-booster (52x faster code editing), @sparkleideas/memory (vector memory)
  • CLI Tools: dora (SCIP code navigation), auto-cr-cmd (automated code review), btca-cli
  • Snip binary: 60-90% token reduction by filtering shell output

All tools fall back gracefully if installation fails — nothing breaks.

Configuration

Auto-generated at ~/.config/opencode/agent_hive.json:

{
  "agentMode": "unified",
  "agents": {
    "hive": { "model": "anthropic/claude-sonnet-4-20250514", "temperature": 0.5 }
  }
}
OptionDefaultDescription
agentModeunifieddedicated splits planner + orchestrator into separate agents
disableSkills[]Globally hide skills from hive_skill()
disableMcps[]Globally disable MCP servers

Agent Models & Variants

{
  "agents": {
    "hive": { "model": "anthropic/claude-sonnet-4-20250514", "variant": "high" },
    "scout-researcher": { "model": "anthropic/claude-sonnet-4-20250514", "temperature": 0.5 },
    "forager-worker": { "model": "anthropic/claude-sonnet-4-20250514", "variant": "medium" },
    "hygienic-reviewer": { "model": "anthropic/claude-sonnet-4-20250514", "temperature": 0.3 }
  }
}

Variants map to model-specific settings in your opencode.json (e.g., Anthropic thinking budgets).

Custom Derived Subagents

Define derived agents from forager-worker or hygienic-reviewer:

{
  "agents": {
    "forager-worker": {
      "variant": "medium"
    },
    "hygienic-reviewer": {
      "model": "github-copilot/gpt-5.2-codex"
    }
  },
  "customAgents": {
    "forager-ui": {
      "baseAgent": "forager-worker",
      "description": "Use for UI-heavy implementation tasks.",
      "model": "anthropic/claude-sonnet-4-20250514",
      "temperature": 0.2,
      "variant": "high"
    },
    "reviewer-security": {
      "baseAgent": "hygienic-reviewer",
      "description": "Use for security-focused review passes."
    }
  }
}

Omitted fields (model, variant, temperature) inherit from the base agent. autoLoadSkills merges with base defaults, de-duplicates, and applies global disableSkills. Custom agent IDs cannot reuse built-in Hive names or reserved plugin IDs.

Skills

IDUse Case
brainstormingExplore requirements before implementation
writing-plansCreate detailed implementation plans
executing-plansExecute tasks in batches with review checkpoints
dispatching-parallel-agentsDispatch 2+ agents for independent work
test-driven-developmentRed-green-refactor cycle
systematic-debuggingRoot cause investigation before fixes
code-reviewerReview changes against plan
verification-before-completionVerify before claiming done
docker-masteryDocker container debugging and optimization

Per-agent filtering: { "agents": { "forager-worker": { "skills": ["tdd", "verification-before-completion"] } } }

Auto-load skills: Use autoLoadSkills to inject skills into agent prompts at session start:

{
  "agents": {
    "hive": { "autoLoadSkills": ["parallel-exploration"] }
  }
}

Resolution order: Hive builtin → Project OpenCode → Global OpenCode → Project Claude → Global Claude.

MCP Servers

MCPToolRequires
websearchwebsearch_web_search_exaEXA_API_KEY env
context7context7_query-docsNone
grep_appgrep_app_searchGitHubNone
pare_searchStructured ripgrep/fd searchNone (npx)
searxngsearxng_searchSEARXNG_URL env

Tools

CategoryTools
Featurehive_feature_create, hive_feature_complete
Planhive_plan_write, hive_plan_read, hive_plan_approve
Taskhive_tasks_sync, hive_task_create, hive_task_update
Worktreehive_worktree_start, hive_worktree_create, hive_worktree_commit, hive_worktree_discard
Mergehive_merge
Contexthive_context_write
Memoryhive_memory_*, hive_vector_*
Codehive_code_edit, hive_lazy_edit, hive_booster_status
Otherhive_status, hive_skill, hive_agents_md

Planning-mode delegation

During planning, "don't execute" means "don't implement" (no code edits, no worktrees). Read-only exploration is explicitly allowed and encouraged, both via local tools and by delegating to Scout.

Canonical Delegation Threshold

  • Delegate to Scout when you cannot name the file path upfront, expect to inspect 2+ files, or the question is open-ended ("how/where does X work?").
  • Local read/grep/glob is acceptable only for a single known file and a bounded question.

Agent Booster (Ultra-Fast Code Editing)

Rust+WASM powered — 52x faster than Morph LLM, no API key needed.

hive_code_edit({
  path: "src/index.ts",
  oldContent: "const old = 'value';",
  newContent: "const new = 'updated';"
})

HNSW indexing for semantic memory search:

hive_vector_add({
  content: "Use async/await instead of .then() chains",
  type: "learning",
  tags: ["javascript", "best-practice"]
})

hive_vector_search({ query: "async patterns", type: "learning", limit: 10 })

Prompt Budgeting

Hive bounds worker prompts to prevent context overflow. Defaults: 10 tasks, 2K chars per summary, 20K per context file, 60K total. Exceeded content is truncated with ...[truncated] markers and file path hints.

Troubleshooting

If a task gets stuck in a blocked-resume loop:

  • Call hive_status() first
  • If pending/in_progress: hive_worktree_start({ feature, task })
  • Only use hive_worktree_create({ task, continueFrom: "blocked", decision }) when status is exactly blocked

License

MIT with Commons Clause — Free for personal and non-commercial use. See LICENSE for details.

Keywords

opencode

FAQs

Package last updated on 13 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts