Skip to main content

Matoi (纏) — CLI platform where AI agents work as a full startup team

Project description

Matoi

A CLI platform where AI agents work as a complete startup team: from market validation to product launch -- strategists, researchers, marketers, engineers argue on substance and produce artifacts.

Matoi -- a Japanese firefighter's standard, around which the team rallies.

Quick Start

git clone <repo-url>
cd matoi
pip install -e .
matoi

On first launch, Matoi will ask for an Anthropic API key, scan the project, build a code graph, and offer to assemble a team.

How It Works

$ 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] > _

You enter tasks -- the agent team responds in real time with markdown rendering. Before a commit, agents review changes and debate if there are disagreements.

Pipeline

Each task goes through 6 stages:

1. Selective Activation  -- Haiku selects relevant agents
2. PM Brief              -- PM formulates the task
3. Expert Pass           -- each agent provides their opinion (streaming)
4. Conflict Detection    -- Haiku looks for disagreements
5. Debate                -- structured rounds if conflicts are found
6. Synthesis             -- PM makes the decision incorporating debate results

Debates are triggered automatically when agents disagree with each other. If there are no conflicts -- they are skipped.

17 Agents

PM [PM] -- 4 management styles:

Agent Style
Startup PM Speed, ship fast, cut scope
Delivery PM Predictability, milestones
Enterprise PM Documentation, compliance
Product Strategist PM User value

Executors [EXE] -- implementation:

Agent Principle
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] -- research:

Agent Principle
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] -- review:

Agent Principle
Security Reviewer Trust nothing. Verify everything
QA Strategist No completion claims without verification evidence

Each agent is a .md file with YAML frontmatter: role, debate style, model policy, strengths, weaknesses, activation rules.

Session Commands

/help     -- all commands
/team     -- current team
/agents   -- all 17 agents
/cost     -- session cost
/history  -- tasks in this session
/commit   -- review -> debate -> commit -> update graph
/quit     -- exit (Ctrl+D)

Tab -- autocomplete for commands and @agents. Alt+Enter -- multiline input.

CLI Commands

matoi                          # interactive session
matoi run "task"               # one-shot pipeline
matoi cost                     # cost breakdown by sessions and models

matoi roster list              # agent table
matoi roster show startup-pm   # card with pixel-art avatar

matoi team create              # assemble a team
matoi team show / list         # view teams

matoi memory show              # MemPalace status
matoi memory search "query"    # semantic memory search

matoi viz graph                # dependency graph in browser
matoi viz city                 # 3D code city (CodeCharta)

matoi task plan "task" -t demo  # dry run

Cost Routing

Different models for different stages -- not "expensive for everything":

Stage Model Price (in/out per 1M)
Activation, Brief, Conflict Detection Haiku $1 / $5
Expert Pass, Debate Sonnet $3 / $15
Synthesis Opus $15 / $75

A typical task with 3 agents without debate: $0.30-0.80.

Integrations

Tool What It Does
Anthropic API Streaming LLM calls, cost routing
MemPalace Memory: semantic search, knowledge graph, auto-save
code-review-graph AI code navigation: 28 MCP tools, auto-update
CodeCharta 3D code architecture visualization
prompt_toolkit TUI: autocomplete, history, status bar

Project Structure

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

Requirements

  • Python 3.11+
  • Anthropic API key
  • Optional: 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.7.tar.gz (4.0 MB 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.7-py3-none-any.whl (4.0 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for matoi-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4ae21a1cc3166bfc2f77c562d1f4a59f796135515e89f1db52fe420fc32947c6
MD5 51d622989c42aac4cd9bd08ff823f34a
BLAKE2b-256 c77341f8333cd042f7b98e4ab13728e2ec3b3638c3e696a28b78ca9f4940d7b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for matoi-0.1.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: matoi-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.0 MB
  • 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 14462603430c331e47c5c089638ee817c6d4d86f39d92837580381fce6f61e9b
MD5 9c0e709bfdf2d1a9ef2745db1c256171
BLAKE2b-256 c0407530783ea660d299abaab7ae7562018335d9c7c132a09ef17e9bb8ac8d0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for matoi-0.1.7-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