Dev.to AI 🤖 Ai 👁 0 📖 4 min read

How to Use Filament by Galaxy with an AI Coding Agent (Without It Inventing Flags)

Filament by Galaxy is an open-source (Apache 2.0, Go) data movement engine that launched on Product Hunt on November 13, 2026 at #2 Product of the Day. It moves data from databases, APIs, and streams into warehouses and

Filament by Galaxy is an open-source (Apache 2.0, Go) data movement engine that launched on Product Hunt on November 13, 2026 at #2 Product of the Day. It moves data from databases, APIs, and streams into warehouses and lakes — and it is exactly the kind of tool an AI coding agent gets wrong.

Filament is pre-1.0 and newer than most agents' training data. Ask Claude Code or Cursor to set up a pipeline from memory and it will invent flags with total confidence. The fix is not a better model. It is a better prompt: force the agent to read the docs first, and force it to report what actually happened instead of what it expected.

Here is the working method, distilled from the 12 prompts I use with Filament.

Rule 1 — Docs before commands

Every prompt I send starts with the same instruction: read the official docs index at https://filament.getgalaxy.io/llms.txt, then open the specific connector pages it links to, and check filament [command] --help on my machine before running anything.

A flag with no source is an invented flag. If the agent cannot point at the docs page or the --help output a flag came from, the flag does not get used.

Rule 2 — One prompt, one job

Run one prompt, read the agent's report, confirm the result (run ID, run ls output, verification numbers), then run the next. The sequence that works is: install, discover, create, run, inspect, verify. Never let the agent chain all six in one go — when it fails, you will not know which step lied.

Rule 3 — Plan before you touch anything

The highest-value prompt in the set is the planning prompt. It creates nothing and runs nothing. It asks the agent, after reading the Replication Modes and connector pages, to answer five questions:

  1. Which read mode and write mode for each resource, and why, in one sentence each.
  2. What my schema must fix first — missing primary key, missing cursor column.
  3. Whether this plan runs on the local CLI or needs a deployment, and why.
  4. How deletes are handled in the plan.
  5. The exact create/run commands it would use, shown but NOT executed.

I approve or change the plan before anything runs. This one prompt catches most mistakes, because the mode choice is where pipelines go quietly wrong: incremental reads cannot see hard deletes, and CDC does not run on the local CLI at all — it needs a deployed Filament server. (I covered both traps in my earlier posts in this series.)

Rule 4 — Secrets never travel through chat

Where a prompt needs a credential, it asks for an environment variable name — POSTGRES_DSN, for example — and I set the value in my own terminal. Never paste a real DSN, password, or API key into a prompt, and never let the agent echo one back. The same rule applies to the YAML config: secrets are environment references, never literals.

Rule 5 — Show, then run

For anything that writes to a destination, the agent shows the exact command first and waits for my go-ahead. After any action, it must report what it actually ran and what the tool actually returned — run IDs and filament run ls output pasted, not paraphrased. A "completed" run status is not verification; the check is row counts and grouped sums compared on both sides.

A prompt you can copy

Here is the install prompt, in full, as an example of the shape:

Install the Filament CLI on this machine by following the official
documentation, not your memory.

1. Read https://filament.getgalaxy.io/llms.txt, then open the
   Installation page it links to.
2. My system is [Linux / macOS — specify distro or macOS version].
   Use the documented install method for this system. Do not download
   binaries from anywhere except the official script, Homebrew tap,
   or the galaxy-io/filament GitHub Releases page.
3. Run `filament version` and `filament status`.
4. Report back: the exact commands you ran, the version string, and
   the config and state paths from the status output. If any step
   failed, show me the full error text and stop — do not improvise
   a workaround.

The same skeleton — docs first, one job, report artifacts — works for the other eleven: planning a pipeline, running the five-minute demo, creating a Postgres source safely, building the Postgres-to-ClickHouse two-pipeline pattern, designing (not running) a CDC pipeline, converting a CLI setup to YAML, debugging a failed run from evidence, verifying a pipeline copied the truth, drafting an HTTP manifest for an API Filament has no connector for, reviewing a custom connector plan, and a production-readiness review.

The guardrails, pinned above every session

  • Docs before commands. llms.txt, connector pages, --help — in that order.
  • Secrets never travel through chat. Environment references only; read-only database users.
  • Show, then run. Anything that writes waits for approval.
  • Report artifacts, not impressions. Run IDs, discovery tables, verification numbers.
  • One change at a time. One connection, one pipeline, one mode change per step, so failures have exactly one suspect.
  • Preview means pilot. Any connector flagged preview gets throwaway-sink testing before real data depends on it.
  • Deletes are a decision, not a default. Every plan states how deletes propagate — or states, in writing, that they do not.

I wrote a full starter pack while learning this: a 14-section tutorial, all 12 agent prompts in copy-paste form, and 3 workflow templates. The decision cheat sheet is free:

Free cheat sheet: https://payhip.com/b/YG6a3
The full pack is $9.99: https://payhip.com/b/KFJ4e

Disclosure: independent guide, written from Filament's official docs and the galaxy-io/filament GitHub repo (checked November 2026). Not affiliated with Galaxy. Filament is pre-1.0, so re-check the docs before production use.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.