Start here
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.
Start here
Section titled “Start here”- Install and choose a host
- Run the TUI locally
- Run a daemon and connect the TUI
- Integrate a stdio client
- Integrate an HTTP client
- Agent-server reference index
Explore by topic
Section titled “Explore by topic”These introductions explain the main ideas, suggest a starting path, and link to the detailed guides and references.
| Topic | What you will find |
|---|---|
| ChatMD: agents in text files | A first prompt, composition, execution choices, and the language reference. |
| Examples and walkthroughs | Local agents, tool patterns, workflows, and complete hosting tutorials. |
| Tools and integrations | Ochat’s built-in capabilities, specialist agents, shell tools, and maintained MCP integrations. |
| ChatML workflows | Scripted decisions, runtime events, asynchronous work, and language documentation. |
| Shell access | Command capabilities, host authorization, confinement, approvals, and audit. |
| Agent server | Sessions, workspaces, daemon connections, Unix/stdio/HTTP, and operations. |
| TUI guide | Interactive editing, tool inspection, approvals, and terminal controls. |
| Search and indexing | Preparing code and documentation for retrieval. |
| Commands and executables | TUI, completion, hosting, search, refinement, and helper command references. |
| Project overview and direction | Design principles, architecture, repository layout, OCaml integration, and roadmap. |
For a specific declaration, go directly to the ChatMD language reference or built-in tool catalog.
Author prompts and tools
Section titled “Author prompts and tools”- ChatMD language
- Built-in tools, file roots, and maintained MCP tools
- ChatML moderator runtime
- ChatML language
- Background agent tutorial
- Interactive TUI keys and views
- File-backed completion CLI
Shell access
Section titled “Shell access”- Host modes and authorization
- Runtime declaration reference
- Shell tool declarations
- Security and confinement
- Extensions and reviewers
- Persistence and audit
- Examples
- Management CLI
- Resource-limit helper
- Complete shell-agent walkthrough
Operate and develop
Section titled “Operate and develop”- Operations, backup, recovery, and migration
- Troubleshooting
- Tests and evidence
- OCaml embedding
- Library documentation
- Architecture specification
- Implementation specification
- Documentation coverage ledger
- README content and navigation audit
- Code-to-documentation audit and known implementation gaps
- Documentation verification worklog
- Search and indexing
- Meta-prompting
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.