agentleFS
myrialabsmyrialabs/clopen/AGENTS.md

clopen

AGENTS.md48 starsChanged 4 months agoMITView on GitHub

This document provides guidelines for AI coding agents when working on the Clopen project.

  • 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

Show its rules and text

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

26 rules. About 0 are common, 18 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow agreed-upon architecture and patterns

    line 17
  2. Distinctive:

    Do not change technical decisions without discussion

    line 18
  3. Distinctive:

    Ensure code matches the established folder structure

    line 19
  4. Distinctive:

    Use chosen libraries and frameworks

    line 20
  5. Very specific:

    Do NOT run bun run dev or bun run build commands

    line 21
  6. Very specific:

    Run bun run check and bun run lint to ensure code functions properly

    line 25
  7. Distinctive:

    Do not create any .md files unless explicitly instructed

    line 26
  8. Very specific:

    Commit: <type>(<scope>): <subject> — imperative mood, lowercase, no period, max 72 chars

    line 29
  9. Distinctive:

    Do NOT create the branch or commit automatically — only suggest the names for review

    line 30
  10. Distinctive:

    COMMUNICATE: if existing plans need to be changed

    line 37
  11. Distinctive:

    STOP: after each stage for review

    line 38
  12. Very specific:

    Always use bun commands (never npm/pnpm/yarn)

    line 47
  13. Very specific:

    Use const by default; use let only when reassignment is needed

    line 59
  14. Distinctive:

    Use Svelte 5 runes for state management (not traditional stores)

    line 61
  15. Distinctive:

    Follow Tailwind CSS v4 conventions

    line 62
  16. Very specific:

    Use custom logger module (debug) instead of console.*

    line 63
  17. Very specific:

    Run bun run check for type checking and bun run lint for linting

    line 67
  18. Distinctive:

    Ensure all checks pass before committing

    line 68
  19. Distinctive:

    Ask for clarification when requirements are unclear

    line 73
  20. Distinctive:

    Run dev/build commands during development

    line 80
  21. Distinctive:

    Create documentation files without request

    line 81
  22. Distinctive:

    Use console.* directly (use debug module instead)

    line 83
  23. Very specific:

    Run bun run check and bun run lint after coding

    line 91
  24. Distinctive:

    Stop and wait for confirmation between stages

    line 92
  25. Distinctive:

    Follow Svelte 5 runes system

    line 95
  26. Distinctive:

    Use debug module for logging

    line 96

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

AI Agent Guidelines for Clopen

This document provides guidelines for AI coding agents when working on the Clopen project.


WORK PROTOCOL

Before Coding

  1. Identify which stage is currently being worked on
  2. Understand the specific task that needs to be completed
  3. For PR-related tasks (e.g., "review PR #123", "check PR X"), read MAINTAINERS.md first to understand the PR workflow, review process, and maintainer conventions

During Coding

  • Follow agreed-upon architecture and patterns
  • Do not change technical decisions without discussion
  • Ensure code matches the established folder structure
  • Use chosen libraries and frameworks
  • Do NOT run bun run dev or bun run build commands

After Coding

  • Run bun run check and bun run lint to ensure code functions properly
  • Do not create any .md files unless explicitly instructed
  • Suggest a branch name and commit message following CONTRIBUTING.md conventions:
    • Branch: <type>/<description> — lowercase, kebab-case, concise
    • Commit: <type>(<scope>): <subject> — imperative mood, lowercase, no period, max 72 chars
    • Do NOT create the branch or commit automatically — only suggest the names for review

IMPORTANT RULES

  1. Be CONSISTENT with previously made decisions
  2. COMMUNICATE if existing plans need to be changed
  3. STOP after each stage for review

PROJECT-SPECIFIC GUIDELINES

Runtime & Package Manager

  • Bun-only project — Node.js and Deno are NOT supported
  • Always use bun commands (never npm/pnpm/yarn)
  • Runtime checks exist in bin/clopen.ts and backend/index.ts

Architecture

  • Backend: Bun + Elysia with WebSocket architecture
  • Frontend: Svelte 5 with runes system ($state, $derived, $effect)
  • Database: SQLite with migration system

Code Style

  • TypeScript throughout the entire codebase
  • Use const by default; use let only when reassignment is needed
  • In .svelte files: let for $state and $bindable; const for $derived, $props, functions
  • Use Svelte 5 runes for state management (not traditional stores)
  • Follow Tailwind CSS v4 conventions
  • Use custom logger module (debug) instead of console.*

Testing

  • Run bun run check for type checking and bun run lint for linting
  • Ensure all checks pass before committing

Communication

  • Report progress after each significant change
  • Ask for clarification when requirements are unclear
  • Discuss architectural changes before implementation

DO NOT

  • Run dev/build commands during development
  • Create documentation files without request
  • Proceed without confirmation after each stage
  • Use console.* directly (use debug module instead)
  • Change technical stack decisions independently

DO

  • Follow established patterns
  • Run bun run check and bun run lint after coding
  • Stop and wait for confirmation between stages
  • Communicate before making significant changes
  • Use TypeScript throughout
  • Follow Svelte 5 runes system
  • Use debug module for logging

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.