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.
- CLAUDE.mdCLAUDE.md
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
- Distinctive: line 17
Follow agreed-upon architecture and patterns
- Distinctive: line 18
Do not change technical decisions without discussion
- Distinctive: line 19
Ensure code matches the established folder structure
- Distinctive: line 20
Use chosen libraries and frameworks
- Very specific: line 21
Do NOT run bun run dev or bun run build commands
- Very specific: line 25
Run bun run check and bun run lint to ensure code functions properly
- Distinctive: line 26
Do not create any .md files unless explicitly instructed
- Very specific: line 29
Commit: <type>(<scope>): <subject> — imperative mood, lowercase, no period, max 72 chars
- Distinctive: line 30
Do NOT create the branch or commit automatically — only suggest the names for review
- Distinctive: line 37
COMMUNICATE: if existing plans need to be changed
- Distinctive: line 38
STOP: after each stage for review
- Very specific: line 47
Always use bun commands (never npm/pnpm/yarn)
- Very specific: line 59
Use const by default; use let only when reassignment is needed
- Distinctive: line 61
Use Svelte 5 runes for state management (not traditional stores)
- Distinctive: line 62
Follow Tailwind CSS v4 conventions
- Very specific: line 63
Use custom logger module (debug) instead of console.*
- Very specific: line 67
Run bun run check for type checking and bun run lint for linting
- Distinctive: line 68
Ensure all checks pass before committing
- Distinctive: line 73
Ask for clarification when requirements are unclear
- Distinctive: line 80
Run dev/build commands during development
- Distinctive: line 81
Create documentation files without request
- Distinctive: line 83
Use console.* directly (use debug module instead)
- Very specific: line 91
Run bun run check and bun run lint after coding
- Distinctive: line 92
Stop and wait for confirmation between stages
- Distinctive: line 95
Follow Svelte 5 runes system
- Distinctive: line 96
Use debug module for logging
≈ “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.
Files
AI Agent Guidelines for Clopen
This document provides guidelines for AI coding agents when working on the Clopen project.
WORK PROTOCOL
Before Coding
- Identify which stage is currently being worked on
- Understand the specific task that needs to be completed
- For PR-related tasks (e.g., "review PR #123", "check PR X"), read
MAINTAINERS.mdfirst 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 devorbun run buildcommands
After Coding
- Run
bun run checkandbun run lintto 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
- Branch:
IMPORTANT RULES
- Be CONSISTENT with previously made decisions
- COMMUNICATE if existing plans need to be changed
- STOP after each stage for review
PROJECT-SPECIFIC GUIDELINES
Runtime & Package Manager
- Bun-only project — Node.js and Deno are NOT supported
- Always use
buncommands (never npm/pnpm/yarn) - Runtime checks exist in
bin/clopen.tsandbackend/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
constby default; useletonly when reassignment is needed - In
.sveltefiles:letfor$stateand$bindable;constfor$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 checkfor type checking andbun run lintfor 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 checkandbun run lintafter 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
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
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.

