Using Flux with Claude, Cursor, and friends

Practical patterns for feeding the Flux documentation to AI coding assistants — chat models, IDE assistants, and MCP-based clients.

AI coding assistants are useful for Flux work in inverse proportion to how stale their training data is. Anything Flux-specific they “remember” is probably wrong — the surface moves fast and the public corpus is small. The fix is the same in every tool: hand the assistant the live docs and tell it not to guess.

Claude (browser or Desktop)

The simplest path. Open a new conversation, paste the index URL, and state the constraints.

I'm building with Flux 0.56.0 (https://github.com/edurdias/flux).
The full docs index is at https://docs.fluxhq.dev/llms.txt — fetch
pages from there as needed. Help me write a workflow that...

Claude with web access will fetch llms.txt, scan the descriptions, pull the pages it needs, and answer with current syntax. If the conversation is long-running and you want the model to have the whole corpus loaded, upload llms-full.txt as a file attachment instead — same content, no per-page fetches required.

Two small habits that pay off:

Cursor, Continue, Aider, and other IDE assistants

These tools read a per-project rules file at the project root. The exact filename varies — .cursorrules for Cursor, .continuerules or .continue/config.yaml for Continue, .aider.conf.yml for Aider — but the pattern is the same: a short file that the assistant prepends to every request.

A worked example for Cursor:

# .cursorrules

This project uses Flux 0.56.0 — a durable workflow and agent framework
for Python 3.12+. Canonical docs: https://docs.fluxhq.dev/llms.txt

When writing Flux workflows, always:

- Use `@workflow` and `@task` decorators imported from the `flux` package.
- Keep workflow bodies deterministic. Non-deterministic work (clock reads,
  random numbers, network I/O) goes inside tasks, not in the workflow body.
- Take exactly one parameter after `ctx`. Wrap multi-field inputs in a
  Pydantic model so the catalog can publish a JSON schema.
- Use `agent()` from `flux.tasks.ai` for LLM calls. There is no `@agent`
  decorator — `agent()` is a factory that returns a callable task.
- Prefer `pipeline()`, `parallel()`, and native `await` over hand-rolling
  Celery-shaped chains. They are ordinary tasks; nothing magic.
- When you propose code, cite the doc page (URL from llms.txt) it came from.

Avoid:

- `@schedule` as a top-level decorator (does not exist). Schedules are
  attached via `@workflow.with_options(schedule=cron(...))`.
- Direct provider SDK imports (`anthropic`, `openai`) when an `agent()` call
  would do — the agent path is the supported one for retries, replay, and
  observability.
- Mutating module-level state inside workflows. The replay path will skip it
  silently and the bug will be invisible until it bites in production.

A few notes:

MCP-based assistants (Claude Desktop, others)

Some assistants speak the Model Context Protocol. For these, Flux itself ships an MCP server. Run it with flux start mcp, point your client at the resulting endpoint, and the assistant gets a typed toolset directly: list_workflows, execute_workflow_*, get_execution_status, the lot. It can drive Flux as well as document it.

Two layers exist and are easy to confuse:

See MCP server reference for the full tool catalog. For Claude Desktop specifically, add the server to claude_desktop_config.json like any other MCP source.

Common pitfalls

A short list of things to flag for the model up front. Each of these has been documented from real verification work against Flux 0.56.0.

Refreshing the context

llms.txt is regenerated on every deploy, so simply re-fetching it gives you the current surface. For long-lived project rules files, a quarterly review is enough — pin the Flux version, regenerate the file if the version changed, re-verify the “avoid” list against the latest release notes.


This guide is dated 2026-07; AI tools and conventions change quickly. Last verified against Claude Desktop, Cursor 0.40, and Continue 0.10 in July 2026.