nuwax: Instructions file for Codex

AGENTS.md

nuwax AGENTS.md is an instructions file for Codex, OpenCode from nuwax-ai/nuwax. It costs 2,360 tokens per session, scanned A, original, Apache-2.0.

Repository instructions describing an AI-assisted web IDE that communicates through SSE, a way to stream live events between a server and browser. They cover file management, development servers, chats, sessions, and tool calls.

In plain words
What is it for?
They help maintain or extend the IDE's streaming chat, automatic file saving, server monitoring, session handling, code generation, and tool execution.
Why use it?
They give an agent a map of how real-time messages, files, sessions, and development processes fit together.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nuwax-ai/nuwax/agents-md"><img src="https://agentmods.dev/badge/instructions/nuwax-ai/nuwax/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,360 This file is loaded in full into every session.
When invoked 2,360 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.02360 $0.02360
Opus 5.5 $0.00944 $0.00944
Sonnet 5.5 $0.00472 $0.00472
Haiku 4.5 $0.00236 $0.00236

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

Security

Grade A, and why

nuwax 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 · 61 lines

How it starts

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

nuwax 前端(nuwax-frontend)

React 18 + TypeScript + umi max;中文交流与注释。包管理器 pnpm(pnpm-lock.yaml,脚本 npm/pnpm 均可跑)。桌面端 nuwax-client/nuwaclaw 经 webview 复用本仓库。

常用命令

  • 开发:npm run dev(max dev;predev 跑 doctor --quick 提醒微应用产物/子模块问题,不拦截);构建:build:prod / build:dev;环境体检:npm run doctor(只读,子模块/pin/产物/工具链)
  • 全量测试:npx vitest run(裸 npm run test 是 watch 模式);脚本层测试(提测/微应用构建升级/doctor/类型门,不联网):npm run test:scripts
  • 会话合同网:npm run test:conversation;会话 E2E:e2e:conversation(需 dev server + ego-browser 登录态)、e2e:mock-chat(mock 场景走查);组合 verify:conversation
  • 分层依赖检查:npm run lint:arch(depcruise;存量豁免基线 .dependency-cruiser-known-violations.json)
  • 提交:husky 钩子自动 prettier;commit message 走 conventional(type(scope): subject,verify-commit 校验);standard-version 发版
  • 同步测试部署:bash scripts/deploy_sync_test.sh —— 个人分支 → 版本分支(如 feat-2026.9.30,origin)→dev→test 级联合并+质量门+构建,推 gitlab/test 内网测试环境;配置 scripts/deploy_sync_test.env(模板 scripts/deploy_sync_test.env.example,FEATURE_BRANCH/VERSION_BRANCH 必填无默认,缺失时交互提示);DRY_RUN=1 演练、INIT_ONLY=1 只配置
  • 快速提测:bash deploy_test.sh —— 代码已在 dev 时使用,本地汇合双远端 dev → test,自动升级微应用并过质量门,构建后推 origin/test+gitlab/test,不推远端 dev。全链与快速通道的选源、隔离、重试及冲突规则统一见 提测手册。
  • 提测提速三约定(2026-09-30):① 主区不干净时脚本自动转入 .deploy-worktree 隔离跑全链(主区/并行开发零互抢,USE_WORKTREE=0/1 控制)② 网络抖动(SSL 瞬断/fetch 断)脚本自动退避重试,勿手工重启整链;提测前不再本地预跑质量门(脚本步骤 4 即门,断点续跑免重付)
  • 产物哈希稳定性(2026-10-08):① src/constants/version.ts 不再烤 git 哈希(只含 APP_VERSION/APP_NAME,随 standard-version 发版变);gitHash 由 dist/version.json 运行时读取,勿再向源码烤提交哈希 ② deploy 构建 DIST_RETENTION=1 自动保留上一版 dist 的旧哈希资源(默认 3 代,DIST_RETAIN_GENERATIONS 可调,机制见 scripts/deploy-asset-retention.mjs),防发版后旧页面 chunk 404 弹「资源加载失败」;本地构建不设该变量零影响 ③ webpack runtime 已抽 runtimeChunk: 'single',增量发版未改动页面的缓存仍可命中

核心业务入口

  • 会话:src/pages/Chat/** —— 五入口复用 UnifiedChatSession(Chat / ConversationAgent 会话面板 / EditAgent 预览调试 / 插件 / 技能);术语口径 V1=旧线(legacy 数据+V1 渲染)/V2=新线(runtime 数据+V2 渲染),默认已全 V2;调试回切 ?conversationRuntime=0 或 ?conversationRenderer=v1
  • 智能体平台:EditAgent(编排 + AgentFlow)、ConversationAgent、AppDev/AppDevPro(Web IDE)、SpacePluginTool(插件)
  • 目录速查:pages/ · components/(base / business-component) · hooks/ · services/ · models/ · utils/ · features/conversation/(会话新线)

Read the full file on GitHub · 61 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. 5d ago Changed · -4 lines · -286 tokens per session 0d8dc0130a7c
  2. 10d ago Changed · +8 lines · -71 tokens per session 3c35c767247c
  3. 11d ago Changed · +4 lines · +313 tokens per session 82c87ee62c73
  4. 12d ago Changed · +1 lines · +447 tokens per session 6bed37be7fb8
  5. 17d ago Changed · +5 lines · +749 tokens per session 7b6b3976489f
  6. 1mo ago Changed · -901 lines · -4,599 tokens per session 1c81ee31c2a7
  7. 1mo ago First seen · 948 lines · 5,807 tokens per session scan A 921d4f85d6ba

Subscribe to this mod's changes

nuwax AGENTS.md is an instructions file published in the GitHub repository nuwax-ai/nuwax (897 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,360 tokens to every session, about $0.0094 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

Other instructions, from other repositories

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 · 9,715 tokens

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,786 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens