lemonclaw: Instructions file for Codex

AGENTS.md

lemonclaw AGENTS.md is an instructions file for Codex, OpenCode from nl8590687/lemonclaw. It costs 396 tokens per session, scanned A, original, Apache-2.0.

Project instructions for LemonClaw, an open-source AI assistant that can act as a digital employee across communication channels.

In plain words
What is it for?
Use them when implementing, debugging, or reviewing LemonClaw’s agent loop, channels, configuration, database access, or tests.
Why use it?
They document the project layout and key design constraints, including its single SQLite database and required architecture checks before coding.

Instructions file for CodexOpenCode

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

This is nl8590687/lemonclaw's own configuration. It tells Codex and OpenCode how to work on lemonclaw 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 lemonclaw configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nl8590687/lemonclaw. 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/nl8590687/lemonclaw/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/nl8590687/lemonclaw

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 lemonclaw AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nl8590687/lemonclaw/agents-md/github.svg)](https://agentmods.dev/instructions/nl8590687/lemonclaw/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/nl8590687/lemonclaw/agents-md"><img src="https://agentmods.dev/badge/instructions/nl8590687/lemonclaw/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 lemonclaw AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nl8590687/lemonclaw/agents-md"><img src="https://agentmods.dev/badge/instructions/nl8590687/lemonclaw/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 396 This file is loaded in full into every session.
When invoked 396 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.00396 $0.00396
Opus 5.5 $0.00158 $0.00158
Sonnet 5.5 $0.00079 $0.00079
Haiku 4.5 $0.00040 $0.00040

Measured 5d ago against content hash 292389fe330f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lemonclaw 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 5d 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 · 30 lines

What it actually says

This file provides guidance to AI coding agents working with this repository.

Project Overview

LemonClaw is an open-source, universal AI digital employee agent.

Project Structure

|- .lemonclaw/    LemonClaw核心配置存储目录
|--- .env         LemonClaw环境变量配置文件
|--- .env.example LemonClaw环境变量配置文件样例文件
|--- lemonclaw.db LemonClaw全局Sqlite3数据库文件
|- agent/         Agent实现模块
|- channels/      输入输出设备和通道实现模块
|- dao/           数据库model和dao操作模块
|- config/        配置相关代码模块
|- tests/         单元测试目录
|- loop.py        Agent Loop核心代码
|- main.py        启动入口代码

Structure Design

约束

  1. 实现代码之前,必须先了解当前项目的整体代码风格和架构设计,保持现在的设计不变
  2. 整个项目全局只能使用一个 sqlite数据库文件.lemonclaw/lemonclaw.db,不允许出现多个。
  3. 不允许写重复代码,所有新增代码都要基于当前的代码结构设计,合并同类项,除非用户有新的明确要求。
  4. 代码结构要清洗,设计要参考设计模式和设计原则的优秀最佳实践,例如抽象工厂模式、单例模式、单一职责原则、开闭原则等。
  5. 目录和模块必须遵循其业务语义:channels/device/ 中的模块对应具体设备或通道;某个通道的附属能力(如飞书消息表情回复)应归入该通道实现,不应作为同级设备模块。新增文件前先判断是否适合合并到现有模块。
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. 5d ago Changed · +1 lines · +76 tokens per session 292389fe330f
  2. 12d ago Changed · +2 lines · +77 tokens per session 37c37dcdb3a3
  3. 2mo ago First seen · 27 lines · 243 tokens per session scan A 49a7aca6023d

Subscribe to this mod's changes

lemonclaw AGENTS.md is an instructions file published in the GitHub repository nl8590687/lemonclaw (59 stars, last pushed 2d ago), licensed Apache-2.0. It adds 396 tokens to every session, about $0.0016 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.

Related

lemonclaw AGENTS.md compared with instructions from other repositories

lemonclaw AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lemonclaw AGENTS.mdnl8590687/lemonclawInstructions file592d agoApache-2.0A396Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode