agentleFS
legatolabslegatolabs/legato/AGENTS.md

legato

AGENTS.md2 starsChanged 4 days agoApache-2.0View on GitHub

Legato is a fast computer-use runtime for any model, with four ways in that share one agent: the Mac app (app/macos), legato run (terminal), legato mcp (MCP server for coding agents) and the Python package (legato.run, legato.Harness, legato.attach). legato setup saves the model and desktop the last three use. legato rl runs RL rollouts. PyPI name legatolabs, import name legato. - Setup: pip install -e ".[dev]" - Test: pytest -q. No network, model or sandbox is needed. Tests that need…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository4 other files it gives its agents.

The file

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

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test: pytest -q. No network, model or sandbox is needed.

    line 11
  2. Distinctive:

    Keep public APIs typed.

    line 35
  3. Very specific:

    Every number in the docs comes from docs/benchmarks.md, which has its raw data in benchmarks/results/.

    line 37
  4. Distinctive:

    Read llms.txt first. It is a short index with install, the minimal example and the common mistakes.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

Legato is a fast computer-use runtime for any model, with four ways in that share one agent: the Mac app (app/macos), legato run (terminal), legato mcp (MCP server for coding agents) and the Python package (legato.run, legato.Harness, legato.attach). legato setup saves the model and desktop the last three use. legato rl runs RL rollouts. PyPI name legatolabs, import name legato.

Work on this repo

  • Setup: pip install -e ".[dev]"
  • Test: pytest -q. No network, model or sandbox is needed. Tests that need Xvfb or Docker skip without them (LEGATO_TEST_DOCKER_IMAGE=<image> runs the Docker one).
  • Site: cd site && npm ci && node build.mjs. It renders docs/*.md into site/dist.
  • Layout:
    • legato/harness.py: the loop.
    • legato/config.py: the saved model and desktop; legato/setup.py: legato setup; legato/agent.py: the agent each desktop gets (agent_for) and legato.run, which legato run and desktop_run_task use too.
    • legato/env.py: desktops (attach: E2B, shell=, screenshot/execute); legato/local.py: this computer.
    • legato/providers.py: --sandbox choices (e2b, local, docker, your own function).
    • legato/settle.py: waiting for the screen.
    • legato/mcp_server.py: the MCP server; legato/doctor.py: legato doctor.
    • app/macos/: Legato for Mac (Swift, menu bar) and legato/app_engine.py, its engine; build.sh for this Mac, release.sh for a notarized .dmg (the mac-app workflow runs it on each v* tag).
    • legato/rl/: rollouts and benchmarks.
    • docker/desktop/: the desktop image for --sandbox docker.
    • plugins/legato/ (the Claude Code plugin, listed by .claude-plugin/marketplace.json; its skills and LICENSE are copies of the root ones), .cursor-plugin/, plugin.json, mcp.json, gemini-extension.json, mcpb/, server.json: how editors and registries install the MCP server. Keep their versions, and the plugin's pinned package, in step with pyproject.toml (tests/test_versions.py).
    • docs/: user docs. docs/setup.md is what "Set up Legato for me: https://legato.computer/setup" reads; keep its steps runnable by a coding agent.
    • personas/: who uses the harness, the MCP and the Mac app, most likely first.
    • site/: legato.computer.
  • Rules:
    • Keep public APIs typed.
    • Keep docs short.
    • Every number in the docs comes from docs/benchmarks.md, which has its raw data in benchmarks/results/.
    • This repo is public, and so are its commit messages, PR descriptions and comments. Write them for an outside reader: what changed, why, and how it was checked. Leave out private repos and run ids, machine and account details, plans and who decided what. Commit with a GitHub noreply address.

Use Legato from another project

Read llms.txt first. It is a short index with install, the minimal example and the common mistakes.

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.