gflow-cli AGENTS.md

A project guide for AI coding agents working on gflow-cli, a Python command-line tool that uses Google Flow to create images and videos. It explains the project structure, development setup, browser dependency, and tests.

In plain words
What is it for?
Use it to orient an agent before coding, explain the development environment, and provide project-specific testing and architecture guidance.
Why use it?
It gives coding agents one reliable place to learn how the project works and how changes should be developed and checked.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/ffroliva/gflow-cli/agents-md
Clone the repo
git clone --depth 1 https://github.com/ffroliva/gflow-cli

Made for: Codex, OpenCode.

Per session 5,016 This file is loaded in full into every session.
When invoked 5,016 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.05016 $0.05016
Opus 5 $0.02508 $0.02508
Sonnet 5 $0.01003 $0.01003
Haiku 4.5 $0.00502 $0.00502

Measured 2d ago against content hash 2e26a597bb55, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gflow-cli AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — gflow-cli

Universal entry point for AI coding agents. Read this first; everything else routes from here.

Supported tools that auto-discover this file: Cursor, Codex, Aider, Antigravity (agy), Jules, Devin, Windsurf, Zed, Warp, opencode, RooCode, Amp, Junie, Phoenix, GitHub Copilot, VS Code, Factory, Augment, Semgrep, Kilo Code, UiPath. Claude Code reads CLAUDE.md, which cross-references this file.

Project at a glance

  • Unofficial Python CLI for Google Flow — drives Veo (image-to-video, text-to-video) and Imagen (text-to-image) generations from the terminal by reverse-engineering Flow's private REST API at aisandbox-pa.googleapis.com.
  • Python 3.11+ · uv-managed · hatchling builds · Playwright Chromium transport · pyright strict · ruff · pytest.
  • Single-package modular monolith. Top-level modules under src/gflow_cli/: api/, auth/, data/, mcp/, services/, tools/, ui/, worker/, browser_manager.py, cli.py, _cli_helpers.py, diagnostics.py, json_output.py, media.py, profile_lease.py, redaction.py, storage.py, winsec.py, cli_project.py, cli_character.py, cli_data.py, cli_image.py, cli_instructions.py, cli_models.py, cli_movie.py, cli_run.py, cli_scene.py, cli_tools.py, cli_video.py, chain.py, chain_manifest.py, composition.py, config.py, errors.py, exceptions.py, image_batch.py, movie_manifest.py, observability.py, paths.py, profile_store.py.
  • Command surface: gflow auth, gflow image (t2i/i2i/batch/upload/upscale), gflow video (t2v/i2v/r2v/chain — no batch subcommand; the nonfunctional stub was removed, loop gflow video t2v/i2v from the shell for multi-clip runs), gflow character (create/list/show/rm/voices — reusable project-scoped Flow Character entities), gflow scene (create/show — Add Clip / Scenes, with create --output for credit-free server-side extended video), gflow instructions (persistent Agent-Mode brief cards — add/list/enable/disable/rm/apply/toggle-mode, credits-free, --project required), gflow movie (run/template — multi-scene manifest pipeline), gflow tools (list/show/run — prompt-rewriting tools, also --tool on generation commands), gflow data (catalog queries), gflow models, gflow run, gflow mcp (run/setup — stdio MCP server), and gflow serve (Streamable HTTP at /mcp; --transport sse is deprecated).
  • Works with any Google account that has Flow access. All generations bill against the user's own Google account.

Read the full file on GitHub · 180 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 180 lines · 5,016 tokens per session scan A 2e26a597bb55

Subscribe to this mod's changes

gflow-cli AGENTS.md is an instructions file published in the GitHub repository ffroliva/gflow-cli (136 stars, last pushed 2d ago), licensed MIT. It adds 5,016 tokens to every session, about $0.0251 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.