docs: restructure docs into diataxis (#121)
This commit is contained in:
+90
-19
@@ -1,31 +1,102 @@
|
||||
# Takopi
|
||||
# Takopi documentation
|
||||
|
||||
Takopi connects agent CLIs to Telegram so you can run, monitor, and reply to long-running tasks from chat.
|
||||
It supports multiple runner backends and a pluggable transport layer, with a stable public API for extensions.
|
||||
> Telegram bridge for coding agents (Codex, Claude Code, OpenCode, Pi).
|
||||
|
||||
## What this site covers
|
||||
Takopi lets you run an engine CLI in a local repo while controlling it from Telegram: send a task, stream updates, and continue safely (reply-to-continue, topics, or sessions).
|
||||
|
||||
- How to get Takopi running end-to-end
|
||||
- Project aliases and worktree-aware workflows
|
||||
- The plugin system and stable public API surface
|
||||
- Architectural details and behavioral guarantees
|
||||
## Choose your path
|
||||
|
||||
- **I’m new / I want to get it running**
|
||||
- Start with **[Tutorials](tutorials/index.md)**:
|
||||
- [Install & onboard](tutorials/install-and-onboard.md)
|
||||
- [First run](tutorials/first-run.md)
|
||||
|
||||
- **I know what I want to do (enable a feature / fix a workflow)**
|
||||
- Use **[How-to guides](how-to/index.md)**:
|
||||
- [Projects](how-to/projects.md) and [Worktrees](how-to/worktrees.md)
|
||||
- [Topics](how-to/topics.md) and [Route by chat](how-to/route-by-chat.md)
|
||||
- [File transfer](how-to/file-transfer.md) and [Voice notes](how-to/voice-notes.md)
|
||||
|
||||
- **I need exact knobs, defaults, and contracts**
|
||||
- Go straight to **[Reference](reference/index.md)**:
|
||||
- [Commands & directives](reference/commands-and-directives.md)
|
||||
- [Configuration](reference/config.md)
|
||||
- [Specification](reference/specification.md) (normative behavior)
|
||||
|
||||
- **I’m trying to understand the design**
|
||||
- Read **[Explanation](explanation/index.md)**:
|
||||
- [Architecture](explanation/architecture.md)
|
||||
- [Routing & sessions](explanation/routing-and-sessions.md)
|
||||
- [Plugin system](explanation/plugin-system.md)
|
||||
|
||||
## Quick start
|
||||
|
||||
If you just want to see it work end-to-end:
|
||||
|
||||
```bash
|
||||
uv run takopi --help
|
||||
# Install
|
||||
uv tool install -U takopi
|
||||
|
||||
# Configure Telegram + defaults
|
||||
takopi --onboard
|
||||
|
||||
# Run in a repo
|
||||
cd /path/to/your/repo
|
||||
takopi
|
||||
```
|
||||
|
||||
## Documentation map
|
||||
Then open Telegram and send a task to your bot.
|
||||
|
||||
- Start here: [User guide](user-guide.md)
|
||||
- Projects and worktrees: [Projects](projects.md)
|
||||
- Plugin development: [Plugins](plugins.md) and [Public API](public-api.md)
|
||||
- System behavior: [Architecture](architecture.md) and [Specification](specification.md)
|
||||
- Transport details: [Telegram](transports/telegram.md)
|
||||
- Contributor notes: [Developing](developing.md)
|
||||
## Core concepts
|
||||
|
||||
## LLM entrypoints
|
||||
* **Engine**: the CLI that actually does the work (e.g. `codex`, `claude`, `opencode`, `pi`).
|
||||
* **Project**: a named alias for a repo path (so you can run from anywhere).
|
||||
* **Worktree / branch selection**: pick where work should happen (`@branch`).
|
||||
* **Continuation**: how Takopi safely “continues” a run:
|
||||
|
||||
- `/llms.txt` lists the key pages and links to their Markdown mirrors.
|
||||
- `/llms-full.txt` contains the full expanded content of those pages.
|
||||
* reply-to-continue (always available)
|
||||
* forum topics (thread-bound continuation)
|
||||
* chat sessions (auto-resume)
|
||||
* **Contract**: the stable rules (resume lines, event ordering, rendering expectations) in the
|
||||
[Specification](reference/specification.md) and runner contract tests.
|
||||
|
||||
## For plugin authors
|
||||
|
||||
Start here:
|
||||
|
||||
* [Plugin API](reference/plugin-api.md) — **stable** `takopi.api` surface for plugins
|
||||
* [Write a plugin](how-to/write-a-plugin.md)
|
||||
* [Add a runner](how-to/add-a-runner.md)
|
||||
|
||||
If you’re contributing to core:
|
||||
|
||||
* [Dev setup](how-to/dev-setup.md)
|
||||
* [Module map](explanation/module-map.md)
|
||||
|
||||
## For LLM agents
|
||||
|
||||
Takopi publishes an LLM-oriented index at:
|
||||
|
||||
* `/llms.txt` — curated entrypoints + links to Markdown mirrors
|
||||
* `/llms-full.txt` — expanded “single file” context of the most important pages
|
||||
|
||||
In the docs, start here:
|
||||
|
||||
* [Reference: For agents](reference/agents/index.md)
|
||||
* [Repo map](reference/agents/repo-map.md)
|
||||
* [Invariants](reference/agents/invariants.md)
|
||||
|
||||
## Where to look when something feels “off”
|
||||
|
||||
* “Why didn’t it route to the right repo/branch?” → [Context resolution](reference/context-resolution.md)
|
||||
* “Why didn’t it continue where I left off?” → [Commands & directives](reference/commands-and-directives.md) and [Specification](reference/specification.md)
|
||||
* “Why did Telegram messages behave weirdly?” → [Telegram transport](reference/transports/telegram.md)
|
||||
* “Why is it built this way?” → [Architecture](explanation/architecture.md)
|
||||
|
||||
## Legacy portals
|
||||
|
||||
These pages remain as curated pointers to preserve old links:
|
||||
|
||||
- [User guide](user-guide.md)
|
||||
- [Plugins](plugins.md)
|
||||
- [Developing](developing.md)
|
||||
|
||||
Reference in New Issue
Block a user