Agent-Worlds: Instructions file for Claude Code

CLAUDE.md

Agent-Worlds CLAUDE.md is an instructions file for Claude Code from hjl2004-10/Agent-Worlds. It costs 7,125 tokens per session, scanned A, original, MIT.

A project-specific instruction guide for Agent-Worlds, an AI-agent platform. It explains the project's architecture, development commands, file locations, and language rules.

In plain words
What is it for?
Use it when developing or reviewing Agent-Worlds code, especially work involving its agent architecture, local development setup, prompts, tools, or assets.
Why use it?
It gives coding agents shared context so they can find the right files, follow project conventions, and respond in Chinese.

Instructions file for Claude Code

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

This is hjl2004-10/Agent-Worlds's own configuration. It tells Claude Code how to work on Agent-Worlds 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 Agent-Worlds configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hjl2004-10/Agent-Worlds. 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/hjl2004-10/Agent-Worlds/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/hjl2004-10/Agent-Worlds

Made for: Claude Code.

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 Agent-Worlds CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hjl2004-10/agent-worlds/claude-md/github.svg)](https://agentmods.dev/instructions/hjl2004-10/agent-worlds/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/hjl2004-10/agent-worlds/claude-md"><img src="https://agentmods.dev/badge/instructions/hjl2004-10/agent-worlds/claude-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 Agent-Worlds CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hjl2004-10/agent-worlds/claude-md"><img src="https://agentmods.dev/badge/instructions/hjl2004-10/agent-worlds/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,125 This file is loaded in full into every session.
When invoked 7,125 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.07125 $0.07125
Opus 5 $0.03563 $0.03563
Sonnet 5 $0.01425 $0.01425
Haiku 4.5 $0.00713 $0.00713

Measured 9d ago against content hash 882f70e2093f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

Agent-Worlds CLAUDE.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 9d 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.

CLAUDE.md · 532 lines

How it starts

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

AI_夸父 开发规范文档 (v2.0 - Skill化重构)


🌐 【语言要求】所有 Skill(/qa、/review、/plan-eng-review 等)的最终回答、报告、表格、总结必须使用中文。过程中的内部思考、代码注释、变量名等不限语言。

⚠️ 【重要提示】当前项目文件过大,查找时请尽量避免全量查找,避免读完整个上下文。优先使用精确路径或针对性搜索。

📝 【开发环境】不用构建了,现在只在开发环境下进行。前端使用 npm run dev,后端直接 python main.py

🐍 【Python 路径】使用系统 Python 3.10+ 或虚拟环境,直接 python main.py 启动。

🗂️ 【素材库】像素素材统一放在 static/public/ 下使用。


架构总览:概念坐标系(先看这张图)

本系统是一个 agent 平台(AI_OS)。代码骨架与业界 agent 架构趋同:横向是多子系统、纵向是作用域分层,两者正交。先建立这张坐标系,再看下面的分层原则与目录职责,每块代码的"身份"就清楚了。

核心链Scaffolding(拼脚手架)→ 经 Harness(驾驭层)→ 跑出 Agentic Loop(循环)→ 实例化为 Agent(带运行时状态的个体)。 一个 NPC 的 hjl = 一份 scaffolding;core/ 运行时 = harness;跑起来带记忆/坐标/关系 = agent。

横向:子系统(业界术语 ↔ 本项目目录)

业界概念 本项目目录 职责
Gateway 网关 main.py + api/auth.py 请求入口、路由挂载、token/CORS 守卫
Channel 渠道·LLM 出站 tools/llm/tools/llm_l1.pyllm_l2.py 选 LLM 供应商(zhipu/volcano/local/claude),代码内已用 channel 命名
Channel 渠道·对话入站 core/wechat/tools/qq_bot*.py 对话从哪个外部来源进来
Scaffolding 脚手架 tools/loader_l1.pycore/prompt/data/*.hjlconfig/ 装配 agent:提示词变量槽 + 工具组 + 技能 + MCP + persona + 记忆/图谱策略。hjl 即脚手架载体
Harness 驾驭层 core/social/drive/mem/graph/tools/tool_l1.py 运行时引擎:让脚手架跑起来(对话、移动、记忆、图谱、工具执行)
Agentic Loop core/social/social_l1.py::_chat_with_tool_loop plan→act→observe 循环(寄生在 harness 内)
Context Engineering core/prompt/prompt_l2.py::build_context 运行时策展有限上下文:注入哪些变量、各多少限量
State Bus 状态总线 core/state_bus.pyapi/_state.py 子系统间事件推送/共享态(神经系统)
Frontend 前端 static/ 像素风 UI、地图、调试面板。构建部署npm run buildstatic/dist/main.py 经 StaticFiles serve(非 dev 热部署)

术语参考:HuggingFace·agent-glossaryMartin Fowler·Harness EngineeringAnthropic·Context Engineering

Read the full file on GitHub · 532 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. 9d ago First seen · 532 lines · 7,125 tokens per session scan A 882f70e2093f

Subscribe to this mod's changes

Agent-Worlds CLAUDE.md is an instructions file published in the GitHub repository hjl2004-10/Agent-Worlds (7 stars, last pushed yesterday), licensed MIT. It adds 7,125 tokens to every session, about $0.0356 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-31.

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

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,737 tokens