agentleFS
tronschelltronschell/shinbo/AGENTS.md

shinbo

AGENTS.md1 starsChanged 3 months agoMITView on GitHub

This file is the source of truth for every agent working in this repository. No comments. Period. Full stop. Not in TypeScript, Rust, Zig, CSS, shell, JSON5, or config. No file headers, no section banners, no TODO, no ponytail: markers, no commented-out code, no explanatory notes above a function, no restating what the next line does. Doc comments (///, /** */, JSDoc) are comments too. Delete comments you find in code you are already editing. If something needs explaining, rename…

  • 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,266 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 repository7 other files it gives its agents.

The file

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

6 rules. About 0 are common, 3 are distinctive, and 3 are 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No comments. Period. Full stop.

    line 7
  2. Very specific:

    Delete comments you find in code you are already editing.

    line 13
  3. Distinctive:

    Do not add a crate, trait, service locator, or plugin framework until a second real implementation needs the boundary.

    line 41
  4. Distinctive:

    Do that work in a subagent, one per repository, so it starts with a clean context window and reads that repo's own standards.

    line 76
  5. Very specific:

    Every PR runs ci; its required check gate selects affected suites.

    line 84
  6. Very specific:

    When preparing or updating a feature PR, write its ## Release notes section from the completed diff using the release skill below.

    line 99

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

Shinbo repository guide

This file is the source of truth for every agent working in this repository.

Comments

No comments. Period. Full stop. Not in TypeScript, Rust, Zig, CSS, shell, JSON5, or config. No file headers, no section banners, no TODO, no ponytail: markers, no commented-out code, no explanatory notes above a function, no restating what the next line does. Doc comments (///, /** */, JSDoc) are comments too.

Delete comments you find in code you are already editing. If something needs explaining, rename it, split it, or write it down in docs/ — not in the source.

The only exceptions are lines a tool refuses to run without: shebangs, #!/usr/bin/env, license headers required by a vendored file's original license, and directives like // @ts-expect-error, #![allow(...)], or eslint-disable. A directive carries no prose.

Layout

Shinbo is a macOS-first Electron application. Electron owns windows and the sandboxed presentation, Rust owns durable data and the host boundary, and Zig owns the agent harness. Keep those boundaries visible.

Ownership

  • desktop/main: Electron lifecycle, windows, global shortcuts, trusted IPC, and the narrow preload bridge.
  • desktop/src: sandboxed React views and presentation state; no Node access.
  • desktop/shared: types and validation both processes agree on; no Electron imports.
  • crates/host: NDJSON bridge onto the stores. It talks to no model and answers requests only — the app process drives every provider call.
  • crates/core: thread and scheduled records, validation, and atomic Markdown persistence.
  • harness: shinbo-cli, the fork of vercel-labs/fx driven over ACP from desktop/main/harness.ts. Apache-2.0; keep harness/FORK.md honest.

Do not add a crate, trait, service locator, or plugin framework until a second real implementation needs the boundary. Keep filesystem, process, network, image, and model work outside the renderer. Validate every IPC and NDJSON input at its trust boundary.

Checks

npm --prefix desktop run check
cargo fmt --all -- --check
cargo check --workspace --locked --all-targets
cargo test --workspace --locked
cargo clippy --workspace --locked --all-targets -- -D warnings
(cd harness && zig build test)

Visible or platform work is not complete until the real app has been launched and the changed interaction exercised. Report unverified shortcuts, privacy permissions, VoiceOver behavior, display geometry, signing, and non-macOS paths.

Sibling repositories

Shinbo ships as three repos: shinbo (this one, the desktop app), shinbo-mobile (~/Documents/shinbo-mobile, the iPhone client that acts as a remote for this app and as a local agent), and shinbo-website (~/Documents/shinbo-website, the public site, docs, and roadmap). A change here usually needs a change there.

  • A new feature lands on the website: the page or tile that covers it, its ROADMAP.md entry, and screenshots of the real app in public/shots/ if it is major enough to see.
  • A change to tools, models, permissions, or anything inherent to the app lands in the website docs, and in mobile if it touches the bridge protocol.
  • Anything that breaks or extends what the phone talks to is a mobile change in the same batch.

Do that work in a subagent, one per repository, so it starts with a clean context window and reads that repo's own standards.

Full contract: .claude/skills/sibling-repos/SKILL.md.

Releasing

Feature branches start from and squash-merge into dev, the default branch. Every PR runs ci; its required check gate selects affected suites. Renderer changes run desktop checks on both platforms; documentation and version-only bumps avoid compilation. Harness, integration, and unknown changes run all suites. Build changes and promotion PRs also package and install-smoke both platforms. Only the owner can merge dev directly into main; no temporary promotion branch or main-to-dev synchronization PR is needed. That merge commit is the release. ci packages the macOS and Windows x64 candidates on that push. The release workflow reads the root package.json version, skips if that version is already published, and otherwise verifies both candidates, signs and notarizes the macOS app, and publishes both with notes collected from the merged commits. Bump the version on dev before promoting, preferably in the final feature PR for that release. Promotion requires a newer version and exactly dev's tree. There is no changelog file, generated release PR, or hand-made tag.

When preparing or updating a feature PR, write its ## Release notes section from the completed diff using the release skill below. The squash commit keeps that section, and the release job collects it automatically. The agent doing the work writes these notes; the owner does not maintain a separate changelog.

The workflows in .github/workflows/ run the checks above and nothing else that cannot be run locally. They are config, so the no-comments rule applies to them.

Full contract: .claude/skills/releasing/SKILL.md.

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.