Matoi (纏) — CLI platform where AI agents work as a full startup team
Project description
Matoi
CLI-платформа, где AI-агенты работают как полная стартап-команда: от валидации рынка до запуска продукта -- стратеги, ресерчеры, маркетологи, инженеры спорят по существу и выдают артефакты.
Matoi -- знамя японских пожарных, за которым собирается команда.
Quick Start
git clone <repo-url>
cd matoi
pip install -e .
matoi
При первом запуске Matoi попросит API key от Anthropic, отсканирует проект, построит граф кода и предложит собрать команду.
Как работает
$ matoi
Matoi -- your startup team in the terminal.
API key: ok
PM: Startup PM -- "Ship it by Friday."
What are you working on today? > Design MVP for pet care app
Team: Backend Engineer, Product Designer, Market Researcher
[ai-agency-platform/Startup] > _
Вы вводите задачи -- команда агентов отвечает в реальном времени с markdown-рендерингом. Перед коммитом агенты ревьюят изменения и дебатируют если есть разногласия.
Pipeline
Каждая задача проходит 6 стадий:
1. Selective Activation -- Haiku выбирает релевантных агентов
2. PM Brief -- PM формулирует задачу
3. Expert Pass -- каждый агент даёт мнение (streaming)
4. Conflict Detection -- Haiku ищет расхождения
5. Debate -- structured rounds если конфликты найдены
6. Synthesis -- PM принимает решение с учётом дебатов
Дебаты запускаются автоматически когда агенты не согласны друг с другом. Если конфликтов нет -- пропускаются.
17 агентов
PM [PM] -- 4 стиля управления:
| Агент | Стиль |
|---|---|
| Startup PM | Скорость, ship fast, режь scope |
| Delivery PM | Предсказуемость, milestones |
| Enterprise PM | Документация, compliance |
| Product Strategist PM | Ценность для пользователя |
Executors [EXE] -- реализация:
| Агент | Принцип |
|---|---|
| Backend Engineer | No production code without a failing test first |
| Frontend Engineer | The user doesn't care about your architecture |
| Product Designer | Design it before you build it |
| Growth Marketer | Every channel is a hypothesis |
| Content Strategist | Content without strategy is just noise |
| DevOps Engineer | If it's not automated, it's broken |
Thinkers [THK] -- исследования:
| Агент | Принцип |
|---|---|
| Market Researcher | Data first, opinions second |
| Competitive Analyst | Know your enemy. Build what they can't copy |
| Business Analyst | If you can't model it, you don't understand it |
| UX Researcher | Talk to users, not about users |
| Financial Modeler | A spreadsheet is a hypothesis. Test it |
Critics [CRT] -- проверка:
| Агент | Принцип |
|---|---|
| Security Reviewer | Trust nothing. Verify everything |
| QA Strategist | No completion claims without verification evidence |
Каждый агент -- файл .md с YAML frontmatter: роль, debate style, model policy, strengths, weaknesses, activation rules.
Команды сессии
/help -- все команды
/team -- текущая команда
/agents -- все 17 агентов
/cost -- стоимость сессии
/history -- задачи в этой сессии
/commit -- review -> debate -> commit -> update graph
/quit -- выход (Ctrl+D)
Tab -- автокомплит команд и @агентов. Alt+Enter -- многострочный ввод.
CLI команды
matoi # интерактивная сессия
matoi run "задача" # one-shot pipeline
matoi cost # стоимость по сессиям и моделям
matoi roster list # таблица агентов
matoi roster show startup-pm # карточка с pixel-art аватаром
matoi team create # собрать команду
matoi team show / list # посмотреть команды
matoi memory show # MemPalace status
matoi memory search "query" # семантический поиск по памяти
matoi viz graph # граф зависимостей в браузере
matoi viz city # 3D-город кода (CodeCharta)
matoi task plan "задача" -t demo # dry run
Cost routing
Разные модели для разных стадий -- не "дорого на всё":
| Стадия | Модель | Цена (in/out per 1M) |
|---|---|---|
| Activation, Brief, Conflict Detection | Haiku | $1 / $5 |
| Expert Pass, Debate | Sonnet | $3 / $15 |
| Synthesis | Opus | $15 / $75 |
Типичная задача с 3 агентами без дебатов: $0.30-0.80.
Интеграции
| Инструмент | Что делает |
|---|---|
| Anthropic API | Streaming LLM calls, cost routing |
| MemPalace | Память: семантический поиск, knowledge graph, auto-save |
| code-review-graph | AI-навигация по коду: 28 MCP tools, auto-update |
| CodeCharta | 3D-визуализация архитектуры кода |
| prompt_toolkit | TUI: autocomplete, history, status bar |
Структура проекта
src/matoi/
cli/ -- Typer + Rich + prompt_toolkit
core/ -- Pydantic models (Agent, Team, Task, Cost, Config)
orchestrator/ -- Pipeline, ConflictDetector, DebateEngine
agents/ -- Registry, Activation, Runtime
storage/ -- MemPalace wrapper, Artifacts, Costs
gateway/ -- Anthropic SDK, ModelRouter, Pricing
agents/ -- 17 agent .md files (YAML frontmatter)
assets/avatars/ -- pixel-art PNG + Braille .txt
Требования
- Python 3.11+
- Anthropic API key
- Опционально: code-review-graph, CodeCharta (Java 17+), chafa
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matoi-0.1.3.tar.gz.
File metadata
- Download URL: matoi-0.1.3.tar.gz
- Upload date:
- Size: 445.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce20fa175bb0300a320cdbd38cfa33eb6ea23160fd20c90735392bf32ca30851
|
|
| MD5 |
0b4a9871fcbd9ff19727c71585e4e480
|
|
| BLAKE2b-256 |
5843bf7622b402bd9fb9783388d4cc10e32f08b1358fbe2283fc0bd168f64f5f
|
Provenance
The following attestation bundles were made for matoi-0.1.3.tar.gz:
Publisher:
matoi_publish_workflow.yml on hotcoyc/matoi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
matoi-0.1.3.tar.gz -
Subject digest:
ce20fa175bb0300a320cdbd38cfa33eb6ea23160fd20c90735392bf32ca30851 - Sigstore transparency entry: 1437431426
- Sigstore integration time:
-
Permalink:
hotcoyc/matoi@2fffb246e1bd85c985e7748da30377787fd39212 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/hotcoyc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
matoi_publish_workflow.yml@2fffb246e1bd85c985e7748da30377787fd39212 -
Trigger Event:
push
-
Statement type:
File details
Details for the file matoi-0.1.3-py3-none-any.whl.
File metadata
- Download URL: matoi-0.1.3-py3-none-any.whl
- Upload date:
- Size: 433.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a463cd94e4025a519c6afcf60c1ec382231f2a5f63879c5e32acf52aef09ba3c
|
|
| MD5 |
dc7ea5173d2c177b403825447f1fb3d3
|
|
| BLAKE2b-256 |
161fc936495a441de5f4bf00c3c412df4d7a1434158fcc5afd967f4bd6ba21c8
|
Provenance
The following attestation bundles were made for matoi-0.1.3-py3-none-any.whl:
Publisher:
matoi_publish_workflow.yml on hotcoyc/matoi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
matoi-0.1.3-py3-none-any.whl -
Subject digest:
a463cd94e4025a519c6afcf60c1ec382231f2a5f63879c5e32acf52aef09ba3c - Sigstore transparency entry: 1437431429
- Sigstore integration time:
-
Permalink:
hotcoyc/matoi@2fffb246e1bd85c985e7748da30377787fd39212 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/hotcoyc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
matoi_publish_workflow.yml@2fffb246e1bd85c985e7748da30377787fd39212 -
Trigger Event:
push
-
Statement type: