Skip to content

Run Mistral Vibe and OpenCode on Fly Machines and Sprites #3838

Done

Description

@integry

Goal

Run Mistral Vibe (VibeAgent) and OpenCode (OpenCodeAgent) on both remote runtimes, Fly Machines and Sprites. Each run should end in a PR exactly as it does with Docker.

Current state (epic branch)

  • Fly Machines refuses both:
    • packages/core/src/agents/runtime/flyMachinesRuntime.ts:51: "Fly Machines supports Claude Code and Codex".
    • fly/launch.ts:42: the same check. providerArgv and prepareMounts are typed to 'claude' | 'codex'.
  • Sprites refuses both: packages/core/src/agents/runtime/spritesRuntime.ts:76 accepts only codex, claude and antigravity. Only Claude Code and Codex have pinned versions in sprites/spritesCliVersions.ts.
  • The run path is already shared: both agents build a runtime-neutral AgentRunSpec and launch through runtime/registry.js runAgent.
  • The image already has both tools: Dockerfile.agent installs opencode ([email protected]) and vibe (mistral-vibe 3.1.5 on Python 3.12 through uv), so the Fly Machines image (and derived images, [3821 by Claude Opus 5.5] Fly Machines: bake runtime packages into a derived agent image #3825) already contains them.
  • Credentials are in credentials/providerManifests.ts:
    • opencode: a config store and a data store;
    • vibe: a config store, .env with MISTRAL_API_KEY.

Work

  1. Fly Machines
    • Accept vibe and opencode in the capability check and in launch.ts.
    • Add both agents' command lines to providerArgv.
    • Credentials work exactly as for Claude Code, Codex and Antigravity: through ProPR's agent configuration (the agent configurations, credential stores and providerManifests.ts manifests ProPR already has for vibe and opencode). No agent-specific secrets, environment variables or side paths. Move each configured credential store's files to the Machine through the same mechanism the other agents use, per run and never baked into the image, with rotated credentials written back as today.
    • Vibe's per-run home (prepareRuntimeHome) is a bind mount under Docker; on Fly it must be a directory in the Machine, created per run.
  2. Sprites
    • Accept both agents.
    • Install the pinned versions when a run starts, reusing the Dockerfile.agent pins (OPENCODE_CLI_VERSION, VIBE_CLI_VERSION, Python 3.12 through uv), and verify --version. Cache them in the Sprite's checkpoint the way the existing tools are cached.
    • Credentials: through ProPR's agent configuration, by the same mechanism as the other agents (see Fly Machines).
  3. Restricted network mode: add each agent's provider hosts to the base allowlist (agentRunNetworkPolicy). For Vibe that's Mistral's API. For OpenCode it depends on the configured provider, so derive it from the configured model or provider, and say clearly which ones are covered.
  4. Live output and cost parsing: openCodeParsing.ts, openCodeTimestamp.ts and vibeAgentHelpers.ts read the agents' output files. Confirm the output and log paths are collected back from both runtimes.

Live verification (needed before merge)

Extend .github/workflows/fly-e2e.yml with an agent input (claude | codex | vibe | opencode, default claude) so one smoke run can use either new agent. The run should:

  • for each of the four combinations (Vibe and OpenCode, each on Fly Machines and Sprites), open the linked PR;
  • show the agent and its pinned version in the step summary;
  • check that credentials did not end up in the image or the logs, using redact_fly_tokens and the existing token-fragment check;
  • leave no Machines, Sprites or apps behind.

The smoke run configures Vibe and OpenCode in ProPR the same way it configures the other agents today (the ProPR config the workflow already applies, for example through FLY_E2E_APP_ENV and the agent configuration it sets up). It adds no repository secrets of its own. If the ProPR config has no credentials for an agent, the run says so and skips that agent; it doesn't fail mysteriously. Put the run links in the PR description.

Out of scope

  • Antigravity on Fly Machines, and other agent types.
  • Skill bundles and URL MCP servers for these agents: other issues cover them.

Activity

  1. propr-dev commented on Nov 27, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3838/claude-opus-5-5-run-mistral-vibe-and-open-20261127-1654-u8y
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3838-20261127-1654-claude-opus-5-5-u8y

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3853, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions