Borrowing it
Nothing to install: this file belongs to wb04307201/spring-ai-loom-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/wb04307201/spring-ai-loom-agent/master/CLAUDE.mdgit clone --depth 1 https://github.com/wb04307201/spring-ai-loom-agentWrote 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.
[](https://agentmods.dev/instructions/wb04307201/spring-ai-loom-agent/claude-md)<a href="https://agentmods.dev/instructions/wb04307201/spring-ai-loom-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/wb04307201/spring-ai-loom-agent/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.
<a href="https://agentmods.dev/instructions/wb04307201/spring-ai-loom-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/wb04307201/spring-ai-loom-agent/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.16803 | $0.16803 |
| Opus 5.5 | $0.06721 | $0.06721 |
| Sonnet 5.5 | $0.03361 | $0.03361 |
| Haiku 4.5 | $0.01680 | $0.01680 |
Grade C, and why
spring-ai-loom-agent CLAUDE.md scanned grade C with 1 finding 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 18d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **Schema** (单一 V1.0 一站式 init,**项目只跑全新库**;任何已有 V1/V2 历史部署必须 `flyway baseline` 或 `rm -rf ~/.loom/datasource` 重跑): How it starts
The opening of the file, as written. The whole thing — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
Spring AI LoomAgent — A Spring Boot auto-configuration library that provides an out-of-the-box chat UI with RAG knowledge base, MCP tool calling, Skill library + Skill market, and role-based access (RBAC) for Spring AI applications.
- JDK: 25+
- Framework: Spring Boot 4.x + Spring AI 2.x
- Build: Maven (multi-module)
- Database: H2 (default), with Flyway migrations
- No CHANGELOG: this project does not maintain a
CHANGELOG.md— readgit logfor the change history
Project Overview Images
docs/project-overview-en.png and docs/project-overview-zh.png (shown at the top of README.md / README.zh-CN.md) are generated by the project skill at .claude/skills/project-overview-image/ via a deterministic pipeline (2026-09-19 起取代 wan2.7-image 文生图 —— 旧 zh 图实测重复卡/章节跳号等随机缺陷压不住):generate.py 的 DATA(结构)+ LABELS(双语文案)是布局单一真源 → 自包含 HTML/CSS(科技风:近黑蓝墨底 + 浮起暗面板 + 霓虹青唯一强调色 + 等宽字体点缀,2026-10-04 改版)→ 本地无头 Chromium(Playwright)截图 1600×840 @2x = 3200×1680;统计胶囊与小注的 universal/RBAC 数字由 TOOLS 卡片集合推导(universal_count() / rbac_count(),分类真源是 UNIVERSAL_IDS / RBAC_IDS 两个 frozenset)—— 加工具只需动 TOOLS 与对应集合,不必再手工同步计数。check.py 静态校验结构自洽/工具分类不重叠不遗漏/LABELS 与 COPY 双语键对齐/版式文案齐全/产物尺寸。改内容 = 改 generate.py 的 DATA/LABELS/COPY;配色与版式 = 改该文件的视觉 token 与 build() 内 CSS。依赖仅 pip install playwright && playwright install chromium(不再需要 DASHSCOPE key)。Regenerate via the skill trigger phrases ("更新项目概览图", "刷新 README 顶部的 overview 图", "生成 docs/project-overview-{en,zh}.png") whenever the architecture changes meaningfully — never hand-edit the PNGs;改内容 = 改 generate.py 的 DATA/LABELS。
Module Structure
| Module | Purpose |
|---|---|
spring-ai-loom-agent |
Core library — chat, knowledge base, file, MCP, skill (market + role auth), RBAC (user/role/mcp), user interfaces + default implementations, H2-backed JVector vector store (loom_vector_store), H2 schema, static frontend resources |
spring-ai-loom-agent-spring-boot-autoconfigure |
LoomAgentConfiguration with 7 nested static @Configuration classes (Infrastructure, Chat, Rag, Mcp, Tool, Storage, Web) — @AutoConfiguration with @ConditionalOnMissingBean on all beans for full replaceability |
spring-ai-loom-agent-spring-boot-starter |
Empty JAR that depends on autoconfigure — the one dependency users add |
spring-ai-loom-agent-test |
Test application with application.yml — run locally to verify changes |
loom-{file,http,process,git,maven,compile}-core |
无 Spring 依赖的纯操作层(FileOperations / HttpEngine / ProcessUtils / GitOperations / MavenOperations / CompileAndDeployOperations)— 主库工具是它们的薄包装;loom-file-core 另含 PathSecurityUtils(沙箱/ symlink 校验)+ LoomPaths(全仓路径派生单一真源:userRoot(内建 username 消毒)/ userFileDir / userCompileWorkspacesDir / DEFAULT_USERS_BASE) |
loom-http-core |
无 Spring 依赖的纯 HTTP 引擎 + 存储服务(HttpEngine + HttpStorage + HttpConfig + ProfileService/SystemService/EndpointService/HistoryService/InvokeService 等) |
loom-http-mcp |
独立可运行的 MCP server(19 个 @McpTool snake_case + 4 个 @McpResource);basePath 默认 ~/.loom/http-mcp/(不与 ~/.loom/mcp/ 共享,避免 profile 凭据混入 loom-file-mcp 可读沙箱) |
loom-{file,git,maven,compile}-mcp |
独立可运行的 MCP server(各自 *McpProperties + application.yml)。路径双轨制:主库(多租户)一切用户路径经 LoomPaths 从 usersBasePath 派生;MCP server(单租户进程)走扁平 basePath 参数配置,4 个 server 默认共享沙箱 ~/.loom/mcp(git clone 的仓库 file/maven MCP 可直接互操作) |
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.
- 18d ago Changed · +28 lines · +3,213 tokens per session 80e314ac397d
- 1mo ago Changed · +416 tokens per session d2a8b56910fa
- 1mo ago Changed · +680 tokens per session acf4c5e47c2e
- 1mo ago Changed · +2 lines · +1,234 tokens per session 26bd78e2dcc0
- 1mo ago Changed · +45 lines · +4,410 tokens per session a1aea3156622
- 1mo ago Changed · +97 lines · +1,911 tokens per session cb6b88236bd2
- 1mo ago First seen · 169 lines · 4,939 tokens per session scan C 3def1315e317
spring-ai-loom-agent CLAUDE.md is an instructions file published in the GitHub repository wb04307201/spring-ai-loom-agent (327 stars, last pushed 18d ago), licensed Apache-2.0. It adds 16,803 tokens to every session, about $0.0672 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
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).
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.
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).
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.
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).
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.