lalaclaw: Instructions file for Codex

AGENTS.md

lalaclaw AGENTS.md is an instructions file for Codex, OpenCode from aliramw/lalaclaw. It costs 7,505 tokens per session, scanned A, original, MIT.

Development instructions for Lalaclaw, a web app that runs a frontend development server and a separate backend server.

In plain words
What is it for?
Use them when starting the app locally, connecting its frontend to the backend, testing mock mode, or updating versions and the changelog.
Why use it?
They provide the correct local ports, API proxy, mock mode, and release-version rules, preventing frontend and backend testing from using the wrong setup.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; built for openclaw.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aliramw/lalaclaw/agents-md"><img src="https://agentmods.dev/badge/instructions/aliramw/lalaclaw/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,505 This file is loaded in full into every session.
When invoked 7,505 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.07505 $0.07505
Opus 5 $0.03753 $0.03753
Sonnet 5 $0.01501 $0.01501
Haiku 4.5 $0.00751 $0.00751

Measured 8d ago against content hash 4e77442089ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

lalaclaw 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 8d 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 · 304 lines

How it starts

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

AGENTS.md

开发服务启动 / Dev Servers

开发态需要同时启动前端和后端,不使用 dist/
Run both frontend and backend in development. Do not use dist/.

前端开发服务 / Frontend

在项目根目录运行:

npm run dev -- --host 127.0.0.1 --port 5173 --strictPort

前端访问地址 / Frontend URL:

http://127.0.0.1:5173

后端开发服务 / Backend

在项目根目录运行:

PORT=3000 HOST=127.0.0.1 node server.js

后端接口地址 / Backend URL:

http://127.0.0.1:3000

联调说明 / Notes

  • 页面入口使用 http://127.0.0.1:5173。Use http://127.0.0.1:5173 as the main dev entry.
  • vite.config.mjs 已将 /api/* 代理到 http://127.0.0.1:3000vite.config.mjs already proxies /api/* to http://127.0.0.1:3000.
  • 不要用 npm start 做前端联调,它依赖已有 dist/。Do not use npm start for frontend dev verification.
  • 默认自动连接本地 OpenClaw。The app auto-detects local OpenClaw by default.
  • 强制 mock 模式:COMMANDCENTER_FORCE_MOCK=1 PORT=3000 HOST=127.0.0.1 node server.js

版本维护 / Versioning

  • 版本号变更时必须同步更新 CHANGELOG.md。Update CHANGELOG.md whenever the project version changes.
  • 发布版本必须保持 npm 兼容。同一天的第 N 个版本使用 YYYY.M.D-N,例如 2026.3.17-2,不要使用 YYYY.M.D.N。Release versions must stay npm-compatible. For the Nth release on the same day, use YYYY.M.D-N, for example 2026.3.17-2, not YYYY.M.D.N.
  • CHANGELOG.md 需明确记录新增、修改、修复和重要行为变化。Record additions, changes, fixes, and important behavior changes clearly.

发布顺序 / Release Order

  • 发布时按固定顺序执行,避免版本号、tag、npm 包和 GitHub release 中间状态不一致。Follow a fixed release order to avoid mismatches between the version, tag, npm package, and GitHub release.
  • 先把版本号从当前版本 bump 到目标版本,例如 2026.3.17-5 -> 2026.3.17-6。First bump the version from the current release to the target release, for example 2026.3.17-5 -> 2026.3.17-6.
  • CHANGELOG.md,并同步更新 READMEdocumentation-quick-start 等文档里的示例版本号。Update CHANGELOG.md, then sync example version numbers in README, documentation-quick-start, and related docs.
  • 跑一轮关键测试和构建,至少覆盖 release 前最关键的 lint、test、build。Run the key validation steps before release, at minimum the critical lint, test, and build commands.
  • npm publish 之前,必须验证“将要发布的 npm 产物”,不能只验证源码工作区。Before npm publish, validate the actual npm artifact that will be released instead of only validating the source checkout.
  • 发布前必须执行 npm run pack:release,让 tarball 输出到 artifacts/,并在干净临时目录里安装该 tarball 做一次安装态验证。Run npm run pack:release before release so the tarball lands in artifacts/, then install that tarball in a clean temporary directory for installed-package validation.
  • 安装态验证至少要覆盖一次真实启动路径:能启动服务、首页不白屏、浏览器 console 无新的 runtime error。The installed-package validation must cover one real startup path: the app starts, the first screen is not blank, and the browser console shows no new runtime errors.
  • vite build、打包日志或安装态 smoke test 中出现 Circular chunk、chunk 初始化错误、首屏空白等信号时,视为 release blocker,不得继续发布。Treat Circular chunk, chunk-init failures, blank-first-screen symptoms, or similar build/install smoke signals as release blockers.
  • 任何修改 vite.config.*manualChunks、构建产物入口、Mermaid/Monaco/预览器等打包敏感区域的改动,发布前都必须补跑一次安装态 smoke test。Any change touching vite.config.*, manualChunks, bundle entry behavior, or packaging-sensitive areas such as Mermaid, Monaco, or preview pipelines must rerun the installed-package smoke test before release.
  • 验证通过后再提交并推送到 origin/main。Only commit and push to origin/main after those checks pass.
  • 推送完成后再创建 Git tag 和 GitHub release。Create the Git tag and GitHub release only after the main branch has been pushed.
  • 最后发布 npm 包。Publish the npm package last.
  • 每次发布新版本时,必须单独询问维护者这次是否要给该版本打 stable dist-tag,不能默认自动打。For every new release, explicitly ask the maintainer whether this version should receive the stable dist-tag; never assume stable promotion automatically.
  • 如果维护者还没有明确确认,默认只发布版本本身,或先发布到非 latest / 非 stable 的 dist-tag(例如 next),不要擅自改动 stable。If the maintainer has not explicitly confirmed, publish the version itself only, or use a non-latest / non-stable dist-tag such as next; do not change stable on your own.
  • 如果维护者确认要打 stable,优先用 npm dist-tag add lalaclaw@<version> stable 提升一个“已经发布过”的版本,而不是为了改 tag 重发同版本。If the maintainer confirms stable, prefer promoting an already-published version with npm dist-tag add lalaclaw@<version> stable instead of republishing the same version only to change tags.
  • 如果维护者确认本次不应再保留某个版本的 stable 标记,可以用 npm dist-tag add lalaclaw@<older-version> stablestable 挪回旧版本,或在确有需要时用 npm dist-tag rm lalaclaw stable 移除 stable。If the maintainer decides a version should no longer be stable, move stable back to an older version with npm dist-tag add lalaclaw@<older-version> stable, or remove the tag with npm dist-tag rm lalaclaw stable when that behavior is explicitly desired.

Read the full file on GitHub · 304 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. 8d ago First seen · 304 lines · 7,505 tokens per session scan A 4e77442089ba

Subscribe to this mod's changes

lalaclaw AGENTS.md is an instructions file published in the GitHub repository aliramw/lalaclaw (21 stars, last pushed 2mo ago), licensed MIT. It adds 7,505 tokens to every session, about $0.0375 per session on Opus 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

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens