import { getTranslations } from "next-intl/server" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { Separator } from "@/components/ui/separator" import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/components/ui/accordion" import { CodeBlock } from "@/components/ui/code-block" import { OptionTable } from "@/components/ui/option-table" import { DocsShell } from "@/components/docs/docs-shell" import { DOC_SECTION_IDS, DOC_SECTION_TITLE_KEYS } from "@/lib/docs-sections" export default async function DocsPage() { const t = await getTranslations("docs") const sections = DOC_SECTION_IDS.map((id) => ({ id, title: t(`sections.${DOC_SECTION_TITLE_KEYS[id]}`), })) return (

{t("overview.title")}

{t("overview.description", { command: "bunx oh-my-openagent install" })}

{t("quickStart.title")}

{t("configLocations.title")}

  • .opencode/oh-my-openagent.json{" "} {t("configLocations.projectLevel")}
  • ~/.config/opencode/oh-my-openagent.json {" "} {t("configLocations.userLevel")}

{t("configLocations.jsonc")}

{t("agentsSection.title")}

{t("agentsSection.description")}

{t("agentsSection.overrideOptions")}

{t("agentsSection.permissions")}

{[ { name: "edit", descKey: "edit" as const }, { name: "bash", descKey: "bash" as const }, { name: "webfetch", descKey: "webfetch" as const }, { name: "doom_loop", descKey: "doomLoop" as const }, { name: "external_directory", descKey: "externalDirectory" as const }, ].map((p) => ( ))}
Permission Values Description
{p.name} {t("agentsSection.permissionValues")} {t(`agentsSection.permissionDescriptions.${p.descKey}`)}

{t("categoriesSection.title")}

{t("categoriesSection.description")}

{[ { name: "visual-engineering", model: "gemini-3.1-pro (high)", descKey: "visualEngineering" as const, }, { name: "ultrabrain", model: "gpt-5.3-codex (xhigh)", descKey: "ultrabrain" as const, }, { name: "deep", model: "gpt-5.3-codex (medium)", descKey: "deep" as const }, { name: "artistry", model: "gemini-3.1-pro (high)", descKey: "artistry" as const }, { name: "quick", model: "claude-haiku-4-5", descKey: "quick" as const }, { name: "unspecified-low", model: "claude-sonnet-4-6", descKey: "unspecifiedLow" as const, }, { name: "unspecified-high", model: "gpt-5.4 (high)", descKey: "unspecifiedHigh" as const, }, { name: "writing", model: "gemini-3-flash", descKey: "writing" as const }, ].map((c) => ( ))}
Category Default Model Description
{c.name} {c.model} {t(`categoriesSection.categories.${c.descKey}`)}

{t("categoriesSection.availableOptions", { options: "model, variant, temperature, top_p, maxTokens, thinking, reasoningEffort, textVerbosity, tools, prompt_append, is_unstable_agent", })}

{t("skillsSection.title")}

{t("skillsSection.description", { playwright: "playwright", agentBrowser: "agent-browser", gitMaster: "git-master", })}

{t("backgroundTasksSection.title")}

{t("backgroundTasksSection.priority")} modelConcurrency > providerConcurrency > defaultConcurrency

{t("hooksSection.title")}

{t("hooksSection.description")}

{[ "agent-usage-reminder", "anthropic-context-window-limit-recovery", "anthropic-effort", "atlas", "auto-slash-command", "auto-update-checker", "background-notification", "category-skill-reminder", "claude-code-hooks", "comment-checker", "compaction-context-injector", "compaction-todo-preserver", "delegate-task-retry", "directory-agents-injector", "directory-readme-injector", "edit-error-recovery", "interactive-bash-session", "keyword-detector", "non-interactive-env", "prometheus-md-only", "question-label-truncator", "ralph-loop", "rules-injector", "session-recovery", "sisyphus-junior-notepad", "start-work", "stop-continuation-guard", "subagent-question-blocker", "task-reminder", "task-resume-info", "tasks-todowrite-disabler", "think-mode", "thinking-block-validator", "unstable-agent-babysitter", "write-existing-file-guard", ].map((hook) => (
{hook}
))}

{t("mcpsSection.title")}

{t("mcpsSection.websearch.title")}

{t("mcpsSection.websearch.description")}

{t("mcpsSection.context7.title")}

{t("mcpsSection.context7.description")}

{t("mcpsSection.grepApp.title")}

{t("mcpsSection.grepApp.description")}

{t("browserAutomationSection.title")}

Tool Description Use Case
{t("browserAutomationSection.playwright.tool")} {t("browserAutomationSection.playwright.description")} {t("browserAutomationSection.playwright.useCase")}
{t("browserAutomationSection.agentBrowser.tool")} {t("browserAutomationSection.agentBrowser.description")} {t("browserAutomationSection.agentBrowser.useCase")}

{t("tmuxSection.title")}

{t("gitMasterSection.title")}

{t("commentCheckerSection.title")}

{t("commentCheckerSection.description", { placeholder: "{{comments}}" })}

{t("experimentalSection.title")}

{t("experimentalSection.dynamicPruning.trigger")}

{t("experimentalSection.dynamicPruning.description")}

{t("lspSection.title")}

{t("envVarsSection.title")}

{t("envVarsSection.opencodeConfigDir.name")}

{t("envVarsSection.opencodeConfigDir.description")}

) }