clopen: Instructions file for Codex

AGENTS.md

clopen AGENTS.md is an instructions file for Codex, OpenCode from myrialabs/clopen. It costs 697 tokens per session, scanned A, original, MIT.

Project-specific instructions for AI coding agents working on the Clopen software project. They describe the expected workflow before, during, and after coding.

In plain words
What is it for?
Guiding coding tasks, pull-request work, checks, linting, and suggestions for branch names and commit messages in Clopen.
Why use it?
They give an agent the project’s rules and conventions, reducing avoidable mistakes such as running prohibited commands, changing agreed technical decisions, or creating unrequested files.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is myrialabs/clopen's own configuration. It tells Codex and OpenCode how to work on clopen itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything clopen configures →

Reuse

Borrowing it

Nothing to install: this file belongs to myrialabs/clopen. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/myrialabs/clopen/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/myrialabs/clopen

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clopen AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/myrialabs/clopen/agents-md/github.svg)](https://agentmods.dev/instructions/myrialabs/clopen/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/myrialabs/clopen/agents-md"><img src="https://agentmods.dev/badge/instructions/myrialabs/clopen/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clopen AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/myrialabs/clopen/agents-md"><img src="https://agentmods.dev/badge/instructions/myrialabs/clopen/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 697 This file is loaded in full into every session.
When invoked 697 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00697 $0.00697
Opus 5.5 $0.00279 $0.00279
Sonnet 5.5 $0.00139 $0.00139
Haiku 4.5 $0.00070 $0.00070

Measured 1mo ago against content hash 36729e5bfcdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clopen AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.*

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 97 lines · 697 tokens per session scan A 36729e5bfcdb

Subscribe to this mod's changes

clopen AGENTS.md is an instructions file published in the GitHub repository myrialabs/clopen (52 stars, last pushed yesterday), licensed MIT. It adds 697 tokens to every session, about $0.0028 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.