Skip to content
ochat
Search documentation

Use quotes for an exact phrase.

Search by topic, command, or code identifier.

    GitHub ↗

    Explore Ochat

    Start with a text file. Learn to build, compose, and run agents.

    View Markdown source ↗
    Explore the framework

    Find the reference for the part of Ochat you want to use.

    Browse the OCaml library overview →

    Ochat defines agents in text files: ChatMD holds instructions and tools, with optional ChatML scripts for orchestration. Start by opening a prompt in the local TUI. The same agent core also supports headless workflows and a durable, multi-client daemon when you need one.

    These introductions explain the main ideas, suggest a starting path, and link to the detailed guides and references.

    TopicWhat you will find
    ChatMD: agents in text filesA first prompt, composition, execution choices, and the language reference.
    Examples and walkthroughsLocal agents, tool patterns, workflows, and complete hosting tutorials.
    Tools and integrationsOchat’s built-in capabilities, specialist agents, shell tools, and maintained MCP integrations.
    ChatML workflowsScripted decisions, runtime events, asynchronous work, and language documentation.
    Shell accessCommand capabilities, host authorization, confinement, approvals, and audit.
    Agent serverSessions, workspaces, daemon connections, Unix/stdio/HTTP, and operations.
    TUI guideInteractive editing, tool inspection, approvals, and terminal controls.
    Search and indexingPreparing code and documentation for retrieval.
    Commands and executablesTUI, completion, hosting, search, refinement, and helper command references.
    Project overview and directionDesign principles, architecture, repository layout, OCaml integration, and roadmap.

    For a specific declaration, go directly to the ChatMD language reference or built-in tool catalog.

    These are repository Markdown documents, readable directly in a Markdown viewer. Generated odoc documentation comes from OCaml interfaces; Markdown sidecars are not automatically included by odoc. See development instructions for the separate API-documentation and search-index workflows.

    The old MCP prompt server is compatibility functionality, not the agent-server transport. MCP-backed tools declared in ChatMD remain maintained.