[PR #12807] docs: add llms.txt for AI/LLM documentation access #14380

Open
opened 2026-02-16 18:19:10 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12807

State: open
Merged: No


Summary

Adds a comprehensive llms.txt file to the repository root, providing structured documentation optimized for LLM consumption.

Closes #8816

What's included

The llms.txt covers all major OpenCode features:

  • Installation — all package managers, platforms, Docker
  • Configurationopencode.json schema, core settings, env vars
  • Agents — built-in agents, custom agent config (JSON + markdown formats), all config options
  • Commands — built-in + custom commands, template variables, options
  • Tools — all 14 built-in tools, permissions system, custom tool definitions with Zod schema
  • Plugins — plugin structure, hook events (25+ events documented), loading methods, examples
  • Providers — 75+ providers, config format, model naming, API key setup
  • MCP — server configuration, tool permissions
  • Ecosystem — plugin categories, discovery resources
  • Quick Reference — keyboard shortcuts, commands, file locations, troubleshooting

Why

  • Issue #8816 requests llms.txt + docs as markdown
  • Previous PR #1161 was auto-closed by stale bot — this is a fresh submission
  • Makes OpenCode documentation accessible to AI coding assistants and LLM-powered tools
  • Follows the llms.txt specification

Test plan

  • Verify llms.txt renders correctly on GitHub
  • Validate all documented features match current OpenCode behavior
  • Check for any outdated configuration examples
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12807 **State:** open **Merged:** No --- ## Summary Adds a comprehensive `llms.txt` file to the repository root, providing structured documentation optimized for LLM consumption. Closes #8816 ## What's included The `llms.txt` covers all major OpenCode features: - **Installation** — all package managers, platforms, Docker - **Configuration** — `opencode.json` schema, core settings, env vars - **Agents** — built-in agents, custom agent config (JSON + markdown formats), all config options - **Commands** — built-in + custom commands, template variables, options - **Tools** — all 14 built-in tools, permissions system, custom tool definitions with Zod schema - **Plugins** — plugin structure, hook events (25+ events documented), loading methods, examples - **Providers** — 75+ providers, config format, model naming, API key setup - **MCP** — server configuration, tool permissions - **Ecosystem** — plugin categories, discovery resources - **Quick Reference** — keyboard shortcuts, commands, file locations, troubleshooting ## Why - Issue #8816 requests llms.txt + docs as markdown - Previous PR #1161 was auto-closed by stale bot — this is a fresh submission - Makes OpenCode documentation accessible to AI coding assistants and LLM-powered tools - Follows the [llms.txt specification](https://llmstxt.org/) ## Test plan - [ ] Verify llms.txt renders correctly on GitHub - [ ] Validate all documented features match current OpenCode behavior - [ ] Check for any outdated configuration examples
yindo added the pull-request label 2026-02-16 18:19:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14380