opencode

The open source coding agent.

21 articles 105k View on GitHub ↗
21 articles
How OpenCode Web Search and Web Fetch Tools Handle External Requests: A Deep Dive into the Permission-First Architecture

Discover how OpenCode's web search and fetch tools manage external requests using a permission-first architecture. Learn about user approval, safety limits, and HTTP request handling.

deep-dive
Feb 19, 2026
How OpenCode Implements Session Sharing: Architecture and Code Deep Dive

Discover how OpenCode implements session sharing with its ShareNext module. Learn about REST API integration, SQLite persistence, and batched sync to Enterprise Share.

architecture
Feb 19, 2026
How OpenCode Session Revert Functionality Works to Undo Changes

Discover how OpenCode's session revert functionality undoes changes with its three-step workflow: marking revert points, restoring the working tree with snapshots, and cleaning the database for a seamless experience.

internals
Feb 19, 2026
How OpenCode Implements Terminal UI Server Routes: A Deep Dive into the TUI HTTP API

Explore how OpenCode implements TUI server routes with its Hono powered HTTP API. Learn about its AsyncQueue and event-driven Bus for seamless request-response handling.

deep-dive
Feb 16, 2026
How OpenCode Integrates with GitHub Copilot as an AI Provider

Learn how OpenCode integrates with GitHub Copilot as an AI provider. Discover seamless integration with automatic authentication and unified configuration.

how-to-guide
Feb 16, 2026
How OpenCode Handles External Directory Access and Security Boundaries

Discover how OpenCode secures external directory access with its permission engine, isolating operations to project instances for enhanced security.

security
Feb 16, 2026
How OpenCode's Session Summary Generation System Tracks Code Changes

Discover how OpenCode's session summary generation system tracks all code changes in real-time comparing snapshot markers to effectively monitor additions deletions and modifications.

internals
Feb 16, 2026
How OpenCode Implements Retry Logic for Failed LLM Operations: A Deep Dive into the Dual-Layer Architecture

Discover how OpenCode implements retry logic for failed LLM operations. Explore its dual-layer architecture featuring exponential back-off and LLM-specific session retries.

deep-dive
Feb 16, 2026
How OpenCode Handles Concurrent File Modifications in the Multi-Edit Tool

Learn how OpenCode's multi-edit tool manages concurrent file modifications using sequential Promise chains, read-time tracking, and staleness assertions to ensure data integrity.

internals
Feb 16, 2026
Message Processing Pipeline in OpenCode Sessions: A Deep Dive into ACP Agent Architecture

Explore OpenCode sessions' message processing pipeline. Discover how raw LLM output becomes UI-friendly ACP updates through typed chunk parsing for tools, text, files, and reasoning.

deep-dive
Feb 16, 2026
OpenCode Configuration Options and Precedence Order: The Complete Guide

Master OpenCode configuration options and precedence. Understand how seven sources merge, from managed directories to remote endpoints, ensuring optimal control for your projects.

how-to-guide
Feb 16, 2026
OpenCode Server Architecture: A Deep Dive into PTY, TUI, and Session Routes

Explore OpenCodes server architecture. Learn how Hono, Session routes, PTY routes, and TUI routes manage terminal UI and pseudo-terminal lifecycles for seamless collaboration.

architecture
Feb 16, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →