Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matoi-0.1.4.tar.gz (445.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matoi-0.1.4-py3-none-any.whl (433.5 kB view details)

Uploaded Python 3

File details

Details for the file matoi-0.1.4.tar.gz.

File metadata

  • Download URL: matoi-0.1.4.tar.gz
  • Upload date:
  • Size: 445.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matoi-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a2346d66985e5ed7f9941b8b6b8f6edb497665d48d173c401e21bb648c40f11b
MD5 5b0b210b2c8706717b9c9caceaa18100
BLAKE2b-256 30c996f83e1d76386ffabac622d81197549a8eac5c8e1d848358db4a64294fd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for matoi-0.1.4.tar.gz:

Publisher: matoi_publish_workflow.yml on hotcoyc/matoi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file matoi-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: matoi-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 433.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matoi-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b36772d0fd8d90410a87019810f28f05618b9546c97eb611e01e9b028c00cb48
MD5 683eb050c02c6ede8ea92184d80823c0
BLAKE2b-256 5a0e490ed49661b7a938ff17dd0a302bb48c5063b1503b325771f53087aad40c

See more details on using hashes here.

Provenance

The following attestation bundles were made for matoi-0.1.4-py3-none-any.whl:

Publisher: matoi_publish_workflow.yml on hotcoyc/matoi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page