{"id":50541386,"url":"https://github.com/mizchi/tomate","last_synced_at":"2026-06-03T20:01:12.703Z","repository":{"id":339517030,"uuid":"1161913056","full_name":"mizchi/tomate","owner":"mizchi","description":"Multi-agent orchestration engine in MoonBit (native port of takt)","archived":false,"fork":false,"pushed_at":"2026-02-20T03:57:57.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T07:11:17.822Z","etag":null,"topics":["moonbit"],"latest_commit_sha":null,"homepage":null,"language":"MoonBit","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizchi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-19T16:58:42.000Z","updated_at":"2026-02-21T15:40:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizchi/tomate","commit_stats":null,"previous_names":["mizchi/tomate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mizchi/tomate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizchi%2Ftomate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizchi%2Ftomate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizchi%2Ftomate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizchi%2Ftomate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizchi","download_url":"https://codeload.github.com/mizchi/tomate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizchi%2Ftomate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33876894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["moonbit"],"created_at":"2026-06-03T20:01:11.748Z","updated_at":"2026-06-03T20:01:12.695Z","avatar_url":"https://github.com/mizchi.png","language":"MoonBit","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tomate\n\nMulti-agent orchestration engine in MoonBit. Native port of [takt](https://github.com/nicholasgriffintn/takt).\n\nTomate models agent workflows as **pieces** composed of **movements** — a state machine where each movement executes an LLM call, evaluates rules against the response, and transitions to the next movement.\n\n## Features\n\n- JSON-driven workflow configuration\n- Tag-based and AI-judge rule evaluation\n- Loop detection and cycle monitoring\n- Parallel, arpeggio, and team-leader execution modes (stubs)\n- Claude CLI (`claude -p`) as the default provider\n- Mock provider for testing\n\n## Requirements\n\n- [MoonBit](https://www.moonbitlang.com/) toolchain\n- [just](https://github.com/casey/just) (task runner)\n- `claude` CLI (for Claude provider)\n\n## Quick Start\n\n```bash\n# Build\njust build\n\n# Run tests\njust test\n\n# Validate a config\njust run validate examples/simple.json\n\n# Run a workflow with mock provider\njust run run examples/simple.json --task \"build fibonacci\" --provider mock\n\n# Run a workflow with Claude\njust run run examples/simple.json --task \"build fibonacci\"\n```\n\n## Config Format\n\nWorkflows are defined as JSON. A **piece** contains an array of **movements**, each with an instruction template, persona, and transition rules.\n\n```json\n{\n  \"name\": \"simple-workflow\",\n  \"movements\": [\n    {\n      \"name\": \"plan\",\n      \"persona\": \"You are a software architect.\",\n      \"instructionTemplate\": \"Create a plan for: {task}\",\n      \"rules\": [\n        { \"condition\": \"plan is complete\", \"next\": \"implement\" }\n      ]\n    },\n    {\n      \"name\": \"implement\",\n      \"instructionTemplate\": \"Implement the plan. Task: {task}\",\n      \"edit\": true,\n      \"passPreviousResponse\": true,\n      \"rules\": [\n        { \"condition\": \"done\", \"next\": \"COMPLETE\" }\n      ]\n    }\n  ],\n  \"initialMovement\": \"plan\",\n  \"maxMovements\": 10\n}\n```\n\nRules are matched by `\u003crule_N\u003e` tags in the LLM response. If no tag is detected and `isAiCondition` is set, a judge LLM call evaluates the response against the condition text.\n\nSpecial `next` values: `\"COMPLETE\"` finishes the piece, `\"ABORT\"` aborts it.\n\n## Architecture\n\n```\nsrc/\n  types/        # Core types (PieceConfig, PieceState, etc.)\n  config/       # JSON parsing and builder DSL\n  eval/         # Rule evaluation (tag detection, aggregates)\n  instruction/  # Prompt template expansion\n  prompt/       # Faceted prompt composition\n  loop/         # Loop and cycle detection\n  provider/     # LLM providers (Claude CLI, Mock)\n  engine/       # State machine executor\n  integration/  # Integration tests\n  cmd/app/      # CLI entry point\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizchi%2Ftomate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizchi%2Ftomate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizchi%2Ftomate/lists"}