agentleFS
tutti-ostutti-os/tutti/AGENTS.md

tutti

AGENTS.md3.8k starsChanged 6 months agoApache-2.0View on GitHub

tutti is a local-first desktop monorepo. Keep daemon/product-specific business logic in services/tuttid; keep extracted cross-consumer application cores in their owning package. Do not let apps/desktop become a second business core. Do not create vague packages such as shared, common, utils, or client-sdk. Read the closest AGENTS.md before editing: Use this root file for repository-wide defaults only. Area-specific files win. Route agent application-core requests to packages/agent/host first. If a request mentions agent session, turn, goal, or runtime-operation lifecycle, creation, resume, send,…

Trending

Less talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 11 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the tutti-os/tutti repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about tutti-os/tutti

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

See all 14

Talked about on GitHub and Bluesky (14 times).

On GitHub · 13

8 more on GitHub

On Bluesky · 1

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repositoryOne other file it gives its agents.

The file

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

12 rules. About 1 is common, 5 are distinctive, and 6 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Keep daemon/product-specific business logic in services/tuttid.

    line 14
  2. Distinctive:

    Read the closest AGENTS.md before editing:

    line 18
  3. Distinctive:

    Use this root file for repository-wide defaults only.

    line 28
  4. Distinctive:

    Before adding or changing agent behavior, answer the decision rule:

    line 67
  5. Very specific:

    Before preparing commits or pull requests, read CONTRIBUTING.md and follow it for repository-wide contribution requirements, including …

    line 94
  6. Distinctive:

    Document new supported runtime/env overrides in the matching durable convention doc.

    line 105
  7. Very specific:

    When changing repository-managed checks, hooks, or static analysis, update docs/conventions/local-git-hooks.md or …

    line 109
  8. Very specific:

    When a fix captures a recurring debugging trap, route it through docs/conventions/troubleshooting/README.md and update the matching domain …

    line 110
  9. Very specific:

    After any code change, run a documentation impact check.

    line 114
  10. Very specific:

    When proposing a durable lesson from a completed fix or implementation, use the AutoSkill-style decision set: discard, improve, merge, or …

    line 120
  11. Common:

    Prefer improving or merging an existing note over creating duplicates, and remove secrets, personal data, local paths, customer names, …

    line 123
  12. Distinctive:

    Every change, including presentation-only changes, must include a Windows impact assessment.

    line 153

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

Shape

tutti is a local-first desktop monorepo.

  • services/tuttid: daemon product rules, durable local state, HTTP/query, and adapters
  • packages/agent/host: provider-neutral agent lifecycle application core
  • apps/desktop: Electron shell, preload, renderer UI, desktop integration
  • packages/clients/*: generated and hand-written domain clients
  • packages/configs/*: shared TypeScript and formatting config
  • config: sources used to generate runtime defaults

Keep daemon/product-specific business logic in services/tuttid; keep extracted cross-consumer application cores in their owning package. Do not let apps/desktop become a second business core. Do not create vague packages such as shared, common, utils, or client-sdk.

Routing

Read the closest AGENTS.md before editing:

  • apps/desktop/* -> apps/desktop/AGENTS.md
  • services/tuttid/* -> services/tuttid/AGENTS.md
  • packages/agent/gui/* -> packages/agent/gui/AGENTS.md
  • packages/connector/* -> packages/connector/AGENTS.md
  • packages/agent/session-replay/* -> packages/agent/session-replay/AGENTS.md
  • packages/ui/* -> packages/ui/AGENTS.md
  • packages/* -> packages/AGENTS.md

Use this root file for repository-wide defaults only. Area-specific files win.

Route agent application-core requests to packages/agent/host first. If a request mentions agent session, turn, goal, or runtime-operation lifecycle, creation, resume, send, cancel, recovery, or the agent host boundary, read packages/agent/host/README.md and the Agent Host Boundary section below before planning or editing, then the nearest area AGENTS.md.

Also route by module name, not only by path. If a request mentions AgentGUI, AgentGuiNode, Agent GUI, the agent conversation module, agent composer, workspace agent timeline, agent approvals, or interactive agent prompts, read docs/architecture/agent-gui-node.md first, then packages/agent/gui/AGENTS.md, before planning or editing, even when no file path is supplied.

Microsoft Windows is part of the default compatibility contract for every change, even when the request and target code do not mention Windows. Before editing, assess whether the change can affect paths, filesystem semantics, temporary directories, executable discovery or suffixes, command quoting, shell selection, environment variables, process creation, signals, permissions, symlinks, sockets, packaging, or native dependencies. If it can, read docs/architecture/windows-platform-support.md before planning or editing and validate both Windows and POSIX behavior. Keep product logic platform-neutral: callers depend on capability interfaces, and operating-system differences stay in the narrow owning adapter or composition root. Do not scatter OS checks, executable suffixes, path literals, shell assumptions, or user-directory assumptions through business logic. A task being reported or developed on macOS/Linux is not evidence that Windows is unaffected.

Agent Host Boundary

Agent application-core lifecycle semantics have a single owner: packages/agent/host. That package owns when a session, turn, goal, or runtime-operation is created, when it may be sent, when it reaches a terminal state, and how it is recovered. services/tuttid/service/agent and other Host consumers such as tsh cmd/desktopd are adapter surfaces that translate HTTP, query, composer, analytics, transport, and provider-preparation concerns and delegate lifecycle through ApplicationHost().

Before adding or changing agent behavior, answer the decision rule:

Does this change define or change the lifecycle semantics of a session/turn/goal/runtime-operation (when it is created, when it may be sent, when it is terminal, how it is recovered)?

  • Yes -> it must live in packages/agent/host (tuttid and tsh write only delegate/adapter code).
  • No (transport, DTO, query, presentation, product policy) -> adapter.
  • Unsure -> answer in the PR description: "Does tsh (or another Host consumer) also need this behavior?" If yes, it belongs in Host.

New lifecycle semantics must first gain a scenario in packages/agent/host/conformance; scenarios may only program against the Host contract. When a consumer finds a missing Host capability, add the Host API in packages/agent/host and release it, rather than reimplementing it in the adapter. The GetSession, UpdateSettings, UpdatePin, and DeleteSession APIs were added to Host this way (PR #1329) after tsh's cutover surfaced them, instead of being reimplemented in tsh.

services/tuttid/service/agent/AGENTS.md records the adapter-only rules for that directory, and pnpm check:agent-host-boundary ratchets against new *Coordinator/*Worker/*Actor orchestration surfaces landing in the adapter.

Contribution Workflow

Before preparing commits or pull requests, read CONTRIBUTING.md and follow it for repository-wide contribution requirements, including Conventional Commits, DCO sign-off, PR workflow, review gates, and multilingual documentation updates.

Hard Rules

  • Published workspace packages use @tutti-os/*; keep manifests, imports, docs, and release config aligned.
  • All new requirements and features across Tutti projects must first reuse existing @tutti-os/ui-system components, semantic color tokens, typography, spacing, and other established UI conventions. Before introducing bespoke UI or raw color values, inspect the existing UI System exports and tokens; if the required capability is missing, prefer extending the shared UI System with a reusable primitive or token and document the rationale.
  • User-visible copy must go through the relevant i18n layer. Do not hardcode UI text, dialog text, status labels, empty states, or user-facing errors.
  • Chinese user-facing UI copy must not end with a Chinese full stop (。); keep this punctuation rule consistent across settings and other product surfaces.
  • Change services/tuttid/api/openapi/tuttid.v1.yaml before daemon HTTP request/response contracts.
  • Document new supported runtime/env overrides in the matching durable convention doc.
  • Business-code files should stay at or below 800 lines as measured by the repository file-length-limit lint rule, which excludes blank and comment-only lines. Prefer decomposition before adding more logic.
  • When changing repository-managed checks, hooks, or static analysis, update docs/conventions/local-git-hooks.md or docs/conventions/static-analysis.md.
  • When a fix captures a recurring debugging trap, route it through docs/conventions/troubleshooting/README.md and update the matching domain file.

Self-Evolution Notes

After any code change, run a documentation impact check. If the change affects module ownership, data flow, user-visible interaction, public API/CLI behavior, runtime/config/env overrides, validation commands, troubleshooting paths, or directory responsibility, update the corresponding durable documentation in the same change.

When proposing a durable lesson from a completed fix or implementation, use the AutoSkill-style decision set: discard, improve, merge, or create. Record only reusable patterns backed by real implementation/debugging evidence. Prefer improving or merging an existing note over creating duplicates, and remove secrets, personal data, local paths, customer names, tokens, and one-off issue details before writing any prompt, architecture, or troubleshooting update. For improve, merge, or create, update the matching durable doc: architecture docs for ownership/data-flow/interaction rules, convention docs for repository-wide practices, README/package docs for usage or public contracts, or troubleshooting docs for recurring symptom playbooks. Final responses should mention which durable docs were updated, or state that no documentation impact was found.

Toolchain

  • Package manager: pnpm@10.11.0
  • TypeScript lint: pnpm lint:ts -> Oxlint
  • TypeScript format: Oxfmt for TS/JS, Prettier for JSON/MD/YAML/CSS/HTML
  • Typecheck: pnpm typecheck -> compact incremental native TypeScript tsgo
  • Changed-aware local validation: pnpm check:changed
  • Full local/CI validation: pnpm check:full
  • Go lint requires the pinned golangci-lint; install with pnpm install:golangci-lint

Common Checks

  • Writing, materially rewriting, reviewing, or removing tests invokes $tutti-test-audit; the durable quality rules live in Unit Testing.
  • UI-only exception: if a change modifies only UI presentation and does not alter logic or behavior, do not run any checks. This exception takes precedence over the checks below and includes tests, lint, typecheck, builds, boundary checks, and visual checks.
  • For every other change, follow the single validation-selection policy in Testing. Closest-area instructions may add a domain-specific check, but they do not redefine the repository workflow.
  • Every change, including presentation-only changes, must include a Windows impact assessment. For platform-sensitive behavior, add or update focused Windows coverage alongside POSIX coverage, or document why automated Windows verification is not currently possible and identify the remaining manual gate. Tests that only assert a serialized request shape do not replace validation by the receiving platform API, parser, or process boundary.

Hooks

Local hooks use Husky.

  • pre-commit: lint-staged, staged Electron/UI/renderer boundary checks
  • pre-push: pnpm check:changed -- --push-ready

Changed-aware command behavior and rerun options are documented in Local Git Hooks.

Conflict Workflows

For merge, rebase, cherry-pick, or manual conflict resolution, inspect both branch intents and never resolve source conflicts with --ours or --theirs unless explicitly asked. Review high-risk desktop, daemon API, generated contract, release, and shared test harness files manually. After conflicts, run git diff --name-only --diff-filter=U and targeted checks for the affected surface.

Docs

Start from:

  • docs/conventions/README.md
  • docs/architecture/README.md
  • nearest area AGENTS.md

Logs

dev (when the feature is not in remote): ~/.tutti-dev/tuttid.db

prod: ~/.tutti/tuttid.db

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.