opencode
The open source coding agent.
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.
How OpenCode Implements Session Sharing: Architecture and Code Deep DiveDiscover how OpenCode implements session sharing with its ShareNext module. Learn about REST API integration, SQLite persistence, and batched sync to Enterprise Share.
How OpenCode Session Revert Functionality Works to Undo ChangesDiscover 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.
How OpenCode Implements Terminal UI Server Routes: A Deep Dive into the TUI HTTP APIExplore 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.
How OpenCode Integrates with GitHub Copilot as an AI ProviderLearn how OpenCode integrates with GitHub Copilot as an AI provider. Discover seamless integration with automatic authentication and unified configuration.
How OpenCode Handles External Directory Access and Security BoundariesDiscover how OpenCode secures external directory access with its permission engine, isolating operations to project instances for enhanced security.
How OpenCode's Session Summary Generation System Tracks Code ChangesDiscover how OpenCode's session summary generation system tracks all code changes in real-time comparing snapshot markers to effectively monitor additions deletions and modifications.
How OpenCode Implements Retry Logic for Failed LLM Operations: A Deep Dive into the Dual-Layer ArchitectureDiscover how OpenCode implements retry logic for failed LLM operations. Explore its dual-layer architecture featuring exponential back-off and LLM-specific session retries.
How OpenCode Handles Concurrent File Modifications in the Multi-Edit ToolLearn how OpenCode's multi-edit tool manages concurrent file modifications using sequential Promise chains, read-time tracking, and staleness assertions to ensure data integrity.
Message Processing Pipeline in OpenCode Sessions: A Deep Dive into ACP Agent ArchitectureExplore 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.
OpenCode Configuration Options and Precedence Order: The Complete GuideMaster OpenCode configuration options and precedence. Understand how seven sources merge, from managed directories to remote endpoints, ensuring optimal control for your projects.
OpenCode Server Architecture: A Deep Dive into PTY, TUI, and Session RoutesExplore OpenCodes server architecture. Learn how Hono, Session routes, PTY routes, and TUI routes manage terminal UI and pseudo-terminal lifecycles for seamless collaboration.
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:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →