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

goatcode-sh

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goatcode-sh

Enterprise-grade OpenCode plugin with micro-plugin architecture, multi-agent orchestration, and professional naming

latest
Source
npmnpm
Version
0.1.9
Version published
Weekly downloads
12
-45.45%
Maintainers
1
Weekly downloads
 
Created
Source

GoatCode Logo

GoatCode is a professional agent harness for OpenCode. It provides a modular plugin architecture where every agent, tool, and hook is an independent plugin. This system allows for deep customization and reliable multi-agent orchestration.

Overview

GoatCode reimplements core agent capabilities with a focus on engineering quality and modularity. It uses a TypeScript-native configuration system and a micro-plugin registry to compose features.

Key features:

  • 7 specialized agents for different task categories.
  • 26 built-in tools including LSP integration and hash-anchored editing.
  • 27 lifecycle hooks for context injection, error recovery, and quality control.
  • Background agent parallelism for non-blocking work.
  • TypeScript-native configuration with full type safety.

Installation

Install GoatCode via npm:

npm install goatcode-sh

GoatCode requires Bun to run.

Quick Start

Initialize GoatCode in your project:

goatcode install

This command sets up the initial configuration and verifies your environment.

Configuration

GoatCode uses a goatcode.config.ts file in your project root. Use the defineConfig helper for full type support.

import { defineConfig } from "goatcode-sh"

export default defineConfig({
  agents: {
    orchestrator: {
      model: "anthropic/claude-3-5-sonnet",
      temperature: 0
    }
  },
  plugins: [
    // Add external plugins here
  ]
})

You can also configure GoatCode at the user level by creating ~/.config/opencode/goatcode.ts. User-level configuration is merged with project-level configuration, allowing for persistent preferences across projects.

Agents

GoatCode includes 7 specialized agents.

AgentDescription
orchestratorMain coordinator that plans and delegates tasks.
deepworkerAutonomous worker for end-to-end execution.
planbuilderStrategic planner that interviews the user to define scope.
advisorRead-only consultant for architecture and code review.
researcherSpecialist for documentation and code search.
explorerFast codebase search and pattern matching.
workerGeneral purpose executor for standard tasks.

Tools

GoatCode provides 26 tools for agents to interact with your codebase.

CategoryTools
LSPgoto_definition, find_references, symbols, diagnostics, prepare_rename, rename
Searchast_grep_search, ast_grep_replace, grep, glob
Editinghashline_edit
Delegationtask_delegate
Backgroundbackground_output, background_cancel
Sessionsession_list, session_read, session_search, session_info
Skillsskill_load, skill_mcp_invoke
Systeminteractive_bash, look_at
Taskstask_create, task_list, task_get, task_update

Hooks

GoatCode uses 27 hooks to manage the agent lifecycle and improve output quality.

CategoryHooks
Contextcontext-injector, compaction-context, phase-reminder
Recoveryedit-error, json-error, session-recovery, context-window-limit
Modelsmodel-fallback, runtime-fallback, preemptive-compaction
Qualitycomment-checker, write-file-guard, thinking-block-validator
Productivitykeyword-detector, think-mode, anthropic-effort
Outputtool-output-truncator, hashline-read-enhancer, hashline-diff-enhancer
Continuationtodo-enforcer, compaction-todo-preserver, stop-guard, foreground-fallback
Tasksdelegate-retry, empty-response-detector, task-resume-info, todowrite-disabler
Nudgespost-read-nudge

CLI Commands

CommandDescription
goatcode installInstall and configure GoatCode in the current directory.
goatcode updateCheck for and install updates.

Contributing

We welcome contributions. Please see CONTRIBUTING.md for setup instructions and architectural overview.

Keywords

opencode

FAQs

Package last updated on 10 Apr 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