agentleFS
MistralKnown publishermistralai/mistral-vibe/client-e2e/AGENTS.md

mistral-vibe / client-e2e

AGENTS.md5k starsChanged 3 months agoApache-2.0View on GitHub

End-to-end tests for the Vibe CLI clients. Drives the built Rust CLI binary as a real user would: it sends terminal input and app-server JSON-RPC events, then compares the resulting terminal captures against committed goldens. - e2e/pty/ is product-agnostic. It owns PTY driving, key splitting, terminal emulation, and their data types; it must not import e2e.app_server. - e2e/app_server/ adapts scenarios, Vibe clients, and the replay app server to the generic terminal harness. App-server event builders belong here. - e2e/pty/capture.py takes…

Trending

More talk lately.about the whole repository

Dec 2025: 7 mentionsJan 2026: 5 mentionsFeb 2026: 5 mentionsMar 2026: 5 mentionsApr 2026: 3 mentionsMay 2026: 4 mentionsJun 2026: 3 mentionsJul 2026: 2 mentionsAug 2026: 2 mentionsSep 2026: 9 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the mistralai/mistral-vibe repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about mistralai/mistral-vibe

The biggest 5 of 47 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 47

Talked about on GitHub, Bluesky and Hacker News (47 times).

On GitHub · 40

35 more on GitHub

On Bluesky · 5

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep one authoritative representation per concept.

    line 20
  2. Distinctive:

    Use pytest to make it easier to parallelize /get failures etc...

    line 37
  3. Distinctive:

    Never commit checkout-specific paths in goldens.

    line 39
  4. Very specific:

    Add a declarative scenarios/<name>.py with a timeline.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

client-e2e

End-to-end tests for the Vibe CLI clients.

What this is

Drives the built Rust CLI binary as a real user would: it sends terminal input and app-server JSON-RPC events, then compares the resulting terminal captures against committed goldens.

Module boundaries

  • e2e/pty/ is product-agnostic. It owns PTY driving, key splitting, terminal emulation, and their data types; it must not import e2e.app_server.
  • e2e/app_server/ adapts scenarios, Vibe clients, and the replay app server to the generic terminal harness. App-server event builders belong here.
  • e2e/pty/capture.py takes a Launcher; exec_launch is the default. The generic layer never knows how a client is started.
  • scenarios/ contains declarative timelines whose paths are their identities.
  • Keep one authoritative representation per concept; derive replay batches from scenario steps and import each concept from its owning module.

Goal

It is hard to do tests like this for uis, here's why:

  • when i press /theme in terminal, the terminal will instantly display /theme but the /theme widget can be display in future rendered frames (a few ms but can become long if we run test in parallel on a cpu) a way to catch this is to use time base waition (ex: wait until the terminal is idle for 0.5 sec, but it is flakky and a lost of time in a lot of cases)
  • A solution is to make the tui return an idle event (look at how textual pilot (testing framework) does)
  • We should never use timing in those snapshot tests, it will always fail
  • The tests should be completely code agnostic
  • The tests should concsist of scenarios with just a list of events
    • user bytes input (keys and escaped sequences)
    • app server json rpc events sent to the tui
    • json rpc events expected to be sent to the app server from tui
  • There should be a way for the agent to record events (bytes / json rpc events) easily to be able to build good scenarios
  • We are mocking completely the server process of the app server here so it should never be launched in tests
  • Use pytest to make it easier to parallelize /get failures etc...
  • Docstrings and comments must fit on one line.
  • Never commit checkout-specific paths in goldens; normalize rendered fixture paths to a stable placeholder.

Adding scenarios

Add a declarative scenarios/<name>.py with a timeline; it is auto-discovered by test_golden.py. Mark a known gap skip = "<reason>". Generate its golden with make store_golden and review the diff before committing.

Golden snapshots (Rust-only)

test_golden.py captures the Rust CLI and compares against committed goldens in goldens/<scenario>/. No Python CLI needed — the gate runs Rust-only.

  • Each golden stores SVG per snapshot (snapshot_NN_<label>.svg) and normalized requests (requests.json).
  • Generate: make store_golden (or uv run --no-project --with pyte --with rich python store_golden.py <scenario>).
  • Test: make test_golden.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.