agentleFS
MistralKnown publishermistralai/mistral-vibe/vibe/cli-rust/AGENTS.md

mistral-vibe / cli-rust

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

A Rust/ratatui TUI for Vibe. It drives the unchanged Python engine over the app-server JSON-RPC protocol. Rewrite the vibe cli in rust for very good performances Committed Rust-only goldens (terminal SVGs + app-server request JSON) under client-e2e/goldens/<scenario>/. Generated by the existing e2e harness; no Python CLI needed to run the gate. Do not waste resources: when changes are focused, only run related test suites.

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

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not modify code to make tests pass, modify code to fix code, and it should fix test, fix user and code first.

    line 18
  2. Very specific:

    Keep pure-logic tests in tests/units/<name>.rs and register them in tests/units.rs so they share one integration-test binary.

    line 22
  3. Distinctive:

    No files with >300 lines of code allowed, simplicity is very important, keep things in separate modules.

    line 23
  4. Distinctive:

    No multi line comments ! Very short modeule docstrings

    line 26
  5. Distinctive:

    When asked to fix something in the rust side or migration eval, don't fix the code directly, if you are on the paulvezia/rewrite_rust …

    line 27
  6. Distinctive:

    No unit tests allowed in rust files !!

    line 28
  7. Very specific:

    When you spot a regression, make an exhaustive scenario.

    line 36
  8. Distinctive:

    Do not waste resources: when changes are focused, only run related test suites.

    line 52
  9. Distinctive:

    If you only need a subset, don't run the full suite.

    line 54
  10. Very specific:

    When running terminal-lifecycle and golden tests in parallel, pick a worker count that fits the machine rather than a fixed -n 10: on CI …

    line 55
  11. Distinctive:

    If you're on the Rust side and haven't touched Python, skip the Python tests.

    line 56
  12. Distinctive:

    Always use theme for colors when possible, no hardcoded colors

    line 60

≈ “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

AGENTS.md — vibe-rs

A Rust/ratatui TUI for Vibe. It drives the unchanged Python engine over the app-server JSON-RPC protocol.

What this is

Rewrite the vibe cli in rust for very good performances

tui  ── render + input + reducer
client ── spawn vibe-app-server, frame NDJSON, correlate ids, forward notifs
proto  ── serde types for the SUBSET of methods/notifications we use

Rules

  • Do not modify code to make tests pass, modify code to fix code, and it should fix test, fix user and code first.
  • Aim for very good performance, this is a PoC to see how fast we can be
  • Aim for simplicity and low number of lines, this is very important
  • Inspire yourself from codex/ folder, it is a good architecture and it is working well !
  • Keep pure-logic tests in tests/units/<name>.rs and register them in tests/units.rs so they share one integration-test binary. Keep tests that need process-global isolation in separate tests/<name>.rs binaries. Cover Rust rendering and interaction behavior with client-e2e scenarios and goldens -- see the migrate-cli-to-rust skill.
  • No files with >300 lines of code allowed, simplicity is very important, keep things in separate modules.
  • This is the rewrite of the python code, when naming things, try to keep the same names as in the python code.
  • Care about bijection principle, you must respect it at all costs
  • No multi line comments ! Very short modeule docstrings
  • When asked to fix something in the rust side or migration eval, don't fix the code directly, if you are on the paulvezia/rewrite_rust branch, always create a worktree and fix the code there
  • No unit tests allowed in rust files !!

First MVP

  • We need basic conversation working, same UI, all other features can be there but failing gracefully like "not implemented"

Client end-to-end scenarios

  • When you spot a regression, make an exhaustive scenario. The fixture (client-e2e/fixtures/fixture.json) is committed and hand-maintained; there is no recorder.
  • The suite is slow, so run focused scenarios first and use the parallel Makefile targets for the full gate.

Golden snapshots

Committed Rust-only goldens (terminal SVGs + app-server request JSON) under client-e2e/goldens/<scenario>/. Generated by the existing e2e harness; no Python CLI needed to run the gate.

  • Generate: uv run --no-project --with pyte --with rich python client-e2e/store_golden.py <scenario> (or --all).
  • Test: uv run --no-project --with pyte --with rich --with pytest --with pytest-timeout python -m pytest client-e2e/test_golden.py.
  • Each scenario stores SVG snapshots and normalized client-to-server RPCs. test_golden.py also checks declared action, screen, and clipboard expectations.
  • Regenerate when the Rust CLI intentionally changes rendering; review the committed diff.

Running tests

Do not waste resources: when changes are focused, only run related test suites.

  • If you only need a subset, don't run the full suite.
  • When running terminal-lifecycle and golden tests in parallel, pick a worker count that fits the machine rather than a fixed -n 10: on CI run unconstrained (-n auto), locally use -n max(cpu_threads/2 - 1, 1).
  • If you're on the Rust side and haven't touched Python, skip the Python tests; if you do run them, target the relevant tests and never run them sequentially.

other guidelines

  • Always use theme for colors when possible, no hardcoded colors

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.