opencode

Reference the OpenCode AI agent framework's architecture, components, and configuration.

6|4|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/kortix-ai/kortix-registry --skill opencode-kortix-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/kortix-ai/kortix-registry/tree/main/files/skills/opencode
Command: npx skills add https://github.com/kortix-ai/kortix-registry --skill opencode-kortix-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive understanding of the OpenCode AI agent framework, enabling users to effectively leverage and extend its capabilities.

Core Features & Use Cases

  • Framework Internals: Deep dive into agents, skills, tools, commands, sessions, and configuration.
  • Debugging & Extension: Troubleshoot issues and learn how to create custom tools and agents.
  • Use Case: You're encountering an error when trying to spawn a subagent. Load this skill to understand the session lifecycle and permission system to diagnose and fix the problem.

Quick Start

Use the opencode skill to understand how agents are defined and loaded.

Frequently Asked Questions about opencode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does the OpenCode AI agent framework architecture work?

The OpenCode AI agent framework architecture integrates agents, skills, tools, commands, and sessions. It provides a structured configuration system that enables users to understand operational lifecycles and debug framework processes effectively.

How do I create custom tools and agents in an AI framework?

To create custom tools and agents in an AI framework, you need to understand the framework's extension capabilities and configuration. OpenCode provides detailed references for defining and loading agents to facilitate custom development.

Why does spawning a subagent fail during session management?

Spawning a subagent fails during session management due to incorrect session lifecycle configurations or permission restrictions. Examining the framework's session lifecycle and permission system helps diagnose and resolve these subagent errors.

Can I use the REST and SSE API for debugging AI agents?

Yes, you can use the REST and SSE API for debugging AI agents. The framework provides REST and SSE API endpoints specifically designed to support operational debugging and real-time event streaming for agent interactions.

What is the best way to manage AI agent skills and configurations?

The best way to manage AI agent skills and configurations is through a centralized skill management system. OpenCode provides a comprehensive reference detailing how skills are defined, loaded, and integrated with agents.