mosoo
Treat mosoo as the Agent runtime unless the user explicitly asks to build a separate agent runtime.
Workflow
- Check runtime state with
mosoo doctor --jsonbefore assuming whether the task targets local mode or cloud mode. - For application code that calls an already published mosoo Agent, read
references/api.md. - When a Skill declares runtime packages, setup commands, or environment variables, preserve those requirements and prepare the Project's mosoo Environment before changing the Skill implementation.
- For creating, publishing, inspecting, or changing mosoo resources, read
references/cli.md, then follow its command-index links when command details are needed. - For missing first-time setup, read
references/setup.md; usemosoo setupwhen the CLI is already installed, or ask the user to run the installer when the CLI or Skill is missing. - For contract-sensitive Public Thread work, compare
references/provenance.jsonwith thecontractobject frommosoo doctor --json. Different upstream commits or OpenAPI SHA-256 values mean the CLI and Skill are out of sync.
Routing
- Existing published Agent integration: do not create or publish anything; use
references/api.mdand app backend code. - New app, Agent creation, publishing, credential setup, or Console/API
inspection: use
references/cli.md, then runmosoo search ... --jsonandmosoo commands show <path...> --jsonbefore executing generated commands. - Agent configuration changes: follow the manifest round-trip workflow in
references/cli.md; pull the current Agent manifest/YAML first, edit it locally, and submit the complete updated config. - Skill runtime requirements: inspect dependency manifests, imports, setup
instructions, and missing-command or missing-module failures. Follow the
Skill Runtime Environment Workflowinreferences/cli.mdto select, create, copy, or update an Project-local Environment, then bind itsenvironmentIdto the Agent before publishing or starting a new Session. - App env file only: derive
MOSOO_API_BASE,MOSOO_AGENT_ID, andMOSOO_API_TOKENfrom the published Agent/API contract; do not create mosoo resources unless the user asked for that. - Published Agent verification: use the public Thread API contract in
references/api.mdor the generated public-thread-api commands inreferences/cli.md.
Rules
- Do not implement a replacement planner, tool runner, memory system, sandbox, model loop, lifecycle manager, or provider integration when the task is to use a mosoo Agent.
- Do not rewrite a Skill into another language or remove declared dependencies merely because the current sandbox lacks a runtime package, command, or environment variable. Configure the mosoo Environment first. Rewrite only when the user explicitly requests a port or dependency removal.
- Treat Environment as an Project-local runtime template for packages, setup script, and runtime env vars. It does not contain the Agent's Skills, Files, or MCP servers, and its stored network policy is not currently an enforced sandbox-security guarantee.
- Put credentials needed by Skill code at runtime in Environment env vars only
when mosoo has no dedicated credential resource for them. Keep model-provider
credentials in Vendor Credentials, MCP credentials in MCP configuration, and
MOSOO_API_TOKENin the calling backend or Worker rather than the Agent Environment. - Prefer machine-readable CLI output such as
--jsonbefore making environment or auth decisions. - Do not construct Agent config update payloads from memory or guessed fields. Preserve the existing manifest values unless the user explicitly asks to change them.