Skip to content

docs(examples): add a drone footage example edited end to end by one agent - #537

Merged
edenreich merged 11 commits into
mainfrom
docs/drone-footage-example
Nov 11, 2026
Merged

edenreich merged 11 commits into
mainfrom
docs/drone-footage-example

Conversation

@edenreich

@edenreich edenreich commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds examples/drone-footage: one drone-editor agent turns raw drone footage into a finished clip on a computer of its own. It reads the footage from a read-only folder, finds the stretches with movement, stabilises them with Gyroflow, builds and grades the edit in FilmCraft starting from DJI's LUT, generates sound effects and music with ElevenLabs through a secret, and exports once per platform shape into the chat's Artifacts.

The example was run end to end through the Desktop app on the local cluster with ollama_cloud/glm-5.3-flash: 25 minutes, four exports of 40.04 s at about 40 MB each, listed under Artifacts and saved to Downloads with Save artifact.

It does not run on the app's Docker cluster as it is today. Gyroflow needs a GPU - 18 frames in 10 minutes without one, 150 frames in 7 seconds with the Mac's - and the app cannot give its local cluster one yet (#536). The README says so up front and points to #536, which holds the Podman and libkrun stopgap the run used. The stopgap is not part of the example: the GPU of the local cluster is #536 and a Vulkan driver that works on a Mac belongs on the computer image, which is inference-gateway/cli's.

Closes #535

Changes

  • examples/drone-footage/README.md - what the example does, setup through Settings, the secret, the run, the read-only proof, the GPU section and the numbers of the run it was written from
  • examples/drone-footage/agents/drone-editor.md - the agent: one heavy job at a time, work inside its starting directory, FilmCraft with its window open and driven over its control channel, the eleven steps from brief to delivery, one of them a check of the sound on the first export - a picture of frames over the waveform and a loudness measurement, since the agent cannot hear
  • examples/drone-footage/Taskfile.yml - up and down in the shape of examples/filmcraft
  • examples/drone-footage/gyroflow/Dockerfile - builds Gyroflow v1.7.0 for arm64 Linux, which Gyroflow publishes no build for
  • README.md - links the example

Spike results

The issue asks for these on the issue. They are here instead, by request.

  • FilmCraft: filmcraft-cli grades and exports with no window, and the same commands drive the open window over --bridge. One master sequence nests into a sequence per shape, each with a crop of its own. It imports 10-bit H.264 but renders it as offline media, so Gyroflow writes 10-bit HEVC. Export runs at about 20 frames a second for 1080p on 12 CPUs and is no faster with the GPU
  • Gyroflow: v1.7.0 builds for arm64 from source with five workarounds, all in the Dockerfile. It read the gyro data of a DJI Avata 2 clip and matched a lens profile. It needs a GPU

Differences from the issue

  • The secret's variable is ELEVENLABS_KEY. The app refuses ELEVENLABS_API_KEY as a secret, since it is a provider key of the gateway
  • The agent calls the ElevenLabs API itself. The CLI's TextToSFX and TextToMusic tools through the gateway would keep the key from the agent, but a workspace cannot switch them on from Settings yet
  • The README does not state the ElevenLabs plan or a cost in money - neither was recorded. It states the token counts and the number of ElevenLabs calls
  • The footage is the user's own. The README states the camera and format that were tested

Found on the way

Not verified

  • task up passes with the tools already in place. From an empty folder its steps ran one by one, the Gyroflow build as a plain docker build of the same Dockerfile. task down was only dry-run, since the cluster of the run still mounts the folder
  • The sound check's two commands were run as written on the export of the earlier run. No agent run has used the new step yet
  • The example was not run end to end again after the GPU stopgap moved out of it
  • The sound mix was measured, not listened to

…agent

One drone-editor agent stabilises raw footage with Gyroflow, grades it in FilmCraft from DJI's LUT, adds ElevenLabs sound effects and music through a secret, and exports once per platform shape into the chat's artifacts. Gyroflow needs a GPU, which the local cluster only has on Podman with libkrun, so the example ships the tasks and the image for that stopgap.
@edenreich

Copy link
Copy Markdown
Contributor Author

@infer CI is failing - can you fix this?

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Model: ollama_cloud/glm-5.3-flash · Action: v0.59.7 · CLI: v0.254.0 · Gateway: v0.63.4 · View Job

Todos

  • Diagnose the failing CI check
  • Fix the failure (retry apt in ci.yml)
  • Commit and push
  • Wait for CI to turn green

Pull Request

#537

✅ Infer Result: Success

Done - CI is green again.

What was wrong: The check (ubuntu-24.04) job died in its "Install system dependencies" step, not in anything the PR changed. apt-get update could not resolve archive.ubuntu.com ("Temporary failure resolving 'archive.ubuntu.com'"), so the package indexes were empty and the install of libwebkit2gtk-4.1-dev, libgtk-3-dev and the rest failed with exit 100. macos and windows passed. The same step failed the same way in PR #539's run minutes later, and main's ubuntu jobs had passed all day - a transient runner DNS flake hitting the apt step on ubuntu-24.04 hosted runners.

The fix (commit cabc767, pushed): in .github/workflows/ci.yml, the "Install system dependencies" step now retries apt-get update && apt-get install together, up to 3 attempts with 30 s between them, and exits 1 only if all attempts fail (worst case still under ~8 minutes). The mirror-rewrite and package list are untouched; the change is validated by a js-yaml parse of the workflow plus a fresh CI run.

Verification: the pre-commit hook ran the full suite (frontend build + 252 unit tests, cargo fmt/clippy/check/test, 306 Rust tests - all pass), and the new run on cabc767 shows every check green, including check (ubuntu-24.04) (2m13s, no retry needed). Working tree is clean and synced with the remote.

One note: the other failing CI run I saw belongs to PR #539 (fix/approval-card-without-streamed-call), a separate branch - it failed on the same DNS flake, so it should recover on its own retry, or its author can rebase over this commit to pick up the new retry automatically. I did not touch that branch.

Model: ollama_cloud/glm-5.3-flash · Action: v0.59.7 · CLI: v0.254.0 · Gateway: v0.63.4 · Exit Code: 0 · Duration: 11m 24s

Tokens: 1,377,475 in · 11,813 out · 1,389,288 total (17 requests)

Tool calls: 25 total · 100% success rate

Traces
Session: 1794420530-5c438fed

session (headless, success)                                                                       11m16s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
├── execute_tool Bash call_0p0oy8un                                                                712ms [error: tool_error]
├── execute_tool TodoWrite call_2slax1wg                                                            48µs
├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
├── execute_tool Bash call_tv6mxya0                                                                 1.3s
├── chat ollama_cloud/glm-5.3-flash                                                                 8.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.9s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        7.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.9s
├── chat ollama_cloud/glm-5.3-flash                                                                 4.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.5s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.5s
├── execute_tool Tree call_0q9ide4h                                                                  2ms
├── execute_tool Bash call_32f5x4mf                                                                280ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 5.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        5.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.4s
├── execute_tool Read call_uwrgsrks                                                                539µs
├── execute_tool Bash call_n8u33z3f                                                                901ms
├── chat ollama_cloud/glm-5.3-flash                                                                18.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      18.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    18.6s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       18.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                18.6s
├── execute_tool Bash call_bdf8o55w                                                                 2.0s
├── execute_tool Memory call_8e3v6x3c                                                              109µs
├── chat ollama_cloud/glm-5.3-flash                                                                20.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      20.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    20.2s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       20.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                20.2s
├── execute_tool Bash call_impxas3m                                                                 1.5s
├── execute_tool Edit call_d25tt5xg                                                                  1ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
├── execute_tool Bash call_9u7ffc4w                                                                 40ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.9s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
├── execute_tool Bash call_2sz7wbea                                                                  4ms
├── execute_tool TodoWrite call_ilyw5wfg                                                            63µs
├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
├── execute_tool Bash call_ll17ipac                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
├── execute_tool Bash call_epa4fol1                                                                3m24s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
├── execute_tool Bash call_q06tk7ft                                                                 4.0s
├── execute_tool TodoWrite call_nwztml0q                                                            72µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.3s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.3s
├── chat ollama_cloud/glm-5.3-flash                                                                 3.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.6s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
├── execute_tool Wait call_whyhw3j5                                                                6m15s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
├── execute_tool Bash call_rrq2esjq                                                                  5ms
├── execute_tool Bash call_jvivsjy9                                                                  4ms
├── execute_tool TodoWrite call_f6qzbzcu                                                           106µs
╰── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
    ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.7s
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
            ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.7s
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
Stats
Tool Calls

╭───────────┬───────┬───────┬──────────╮
│ Tool      │ Calls │ Fail% │ Avg      │
├───────────┼───────┼───────┼──────────┤
│ Bash      │ 13    │ 15%   │ 16535ms  │
│ TodoWrite │ 4     │ 0%    │ 67µs     │
│ Memory    │ 1     │ 0%    │ 114µs    │
│ Edit      │ 1     │ 0%    │ 997µs    │
│ Wait      │ 1     │ 0%    │ 374689ms │
│ Tree      │ 1     │ 0%    │ 2ms      │
│ Read      │ 1     │ 0%    │ 532µs    │
╰───────────┴───────┴───────┴──────────╯

Token Usage

╭────────────────────────────┬─────────┬────────┬────────────┬─────────┬──────╮
│ Model                      │ Prompt  │ Cached │ Completion │ Total   │ Cost │
├────────────────────────────┼─────────┼────────┼────────────┼─────────┼──────┤
│ ollama_cloud/glm-5.3-flash │ 1377475 │ 985600 │ 11813      │ 1389288 │ -    │
╰────────────────────────────┴─────────┴────────┴────────────┴─────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ headless │ 1        │
╰───────────┴──────────┴──────────╯

Triggered by edenreich · Infer Action · OSS

Comment thread .github/workflows/ci.yml Resolved
@edenreich
edenreich marked this pull request as ready for review November 11, 2026 18:38
edenreich added a commit to inference-gateway/cli that referenced this pull request Nov 11, 2026
…ks on an Apple silicon host (#1813)

## Summary

The computer image gets Vulkan, so an app on a computer uses the host's
GPU when the pod is given one and nobody has to install a driver through
user data first.

`libvulkan1`, `mesa-vulkan-drivers` and `vulkan-tools` go on the image,
about 145 MB on disk. On arm64 Mesa's Venus driver is replaced by one
built with a downstream change for the 16 KiB memory pages of an Apple
silicon host. Ubuntu's build fails there with
`ERROR_OUT_OF_HOST_MEMORY`, and an Apple silicon Mac is the one place an
arm64 computer gets a GPU today. amd64 keeps Ubuntu's driver.

Found while running the drone footage example of the desktop app
(inference-gateway/desktop#537), which had to build its own image for
this. inference-gateway/desktop#536 is the other half - giving the pod
the GPU device.

## Changes

- `computer/Dockerfile` - the three packages, and a `venus` stage that
builds `libvulkan_virtio.so` from Ubuntu's Mesa source with the patch,
on arm64 only
- `computer/venus-16k.patch` - the downstream change, vendored so a
release does not depend on freedesktop's GitLab. From
https://gitlab.freedesktop.org/slp/mesa/-/commit/761ef1ec5ff2aae1cc3dc8bbc22b3d06ef04b549
- `.gitattributes` - the patch keeps its whitespace
- `docs/computer-use.md` - says Vulkan is on the image

## Verified

- Built for arm64 with `task container:build:computer`. The `venus`
stage takes under a minute natively
- On a k3s cluster in a Podman libkrun VM on an M4 Pro, as user `infer`
with nothing installed, `vulkaninfo --summary` lists `Virtio-GPU Venus
(Apple M4 Pro)` as an integrated GPU ahead of `llvmpipe`
- On Docker, where the pod has no GPU, it lists `llvmpipe` alone

## Not verified

- The multi-arch release build. The arm64 stage runs under emulation on
the release runner and will take longer than it did natively
- The amd64 image was not built
- The patch is marked a hack by its author and is not upstream. It has
to be checked again when Ubuntu moves to a new Mesa
- A GPU does not make every app faster. FilmCraft exported 300 frames at
4.5 frames a second and 17.5 GB of memory on the GPU, against 6.8 frames
a second and 5.7 GB on software rendering
@edenreich
edenreich merged commit a93cc3a into main Nov 11, 2026
@edenreich
edenreich deleted the docs/drone-footage-example branch November 11, 2026 20:28
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.67.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

1 participant