research-claw CLAUDE.md

research-claw CLAUDE.md is an instructions file for coding agents from nanoAgentTeam/research-claw. It costs 833 tokens per session, scanned A, original, MIT.

Project instructions for Research Claw, a self-hosted AI research assistant that manages papers, literature searches, academic updates, deadlines, and project workspaces.

In plain words
What is it for?
Running its agents and gateways, managing paper projects, compiling LaTeX, syncing with Overleaf, searching, using Git, and coordinating subagents.
Why use it?
They explain the required language, Python version, commands, authentication, architecture, and agent roles for this research system.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/nanoagentteam/research-claw/claude-md
Clone the repo
git clone --depth 1 https://github.com/nanoAgentTeam/research-claw

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 research-claw CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nanoagentteam/research-claw/claude-md.svg)](https://agentmods.dev/instructions/nanoagentteam/research-claw/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/nanoagentteam/research-claw/claude-md"><img src="https://agentmods.dev/badge/instructions/nanoagentteam/research-claw/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 833 This file is loaded in full into every session.
When invoked 833 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00833 $0.00833
Opus 5 $0.00417 $0.00417
Sonnet 5 $0.00167 $0.00167
Haiku 4.5 $0.00083 $0.00083

Measured 6d ago against content hash 3dfd265a5a90, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

research-claw 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 6d 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 · 61 lines

What it actually says

CLAUDE.md

这是一个为 Claude Code (claude.ai/code) 在此存储库中工作时提供指导的文件。

重要提示:请始终使用简体中文回答用户的问题和进行交流。

代码要兼容 python 3.11

开发指令

核心执行

  • 交互式 Agent: python cli/main.py agent
  • 单次消息 Agent: python cli/main.py agent -m "你的指令" -p ProjectID
  • 网关模式 (飞书/Telegram): python cli/main.py gateway --port 18790
  • 启动子 Agent: python cli/main.py subagent --role RoleName --project-id PID --session SID
  • 初始配置: python cli/main.py onboard (创建配置文件与工作区)

环境配置

python 3.11+
  • 安装依赖: pip install -r requirements.txt
  • 认证: Overleaf 同步需要 .olauth 文件 (通过 ols login 生成)。

代码架构

概览

Research Claw 是一个自托管的 AI 科研助手,管理论文项目、检索文献、追踪学术进展与截稿日期,并通过多渠道随时响应。它基于分层 AI Agent 架构,管理一个 workspace/ 目录,分为 Default (全局管理) 与 Project (特定论文) 空间。

核心组件 (core/)

  • Project (core/project.py): 核心抽象。管理 core 目录 (LaTeX 文件)、Git 版本控制、Overleaf 同步以及 LaTeX 编译。
  • Session (core/session.py): 在项目内管理独立的对话历史、元数据以及子 Agent 的工作区。
  • FS (core/fs/): 提供路径安全的文件操作以及为子 Agent 提供 Overlay 虚拟文件系统。
  • Tools (core/tools/): 模块化的工具系统 (搜索、编译、Git 等),通过 config/tools.json 配置。

Agent 系统 (agent/)

  • AgentLoop (agent/loop.py): Assistant 角色的主执行循环。处理工具调用与指令路由。
  • WideAgentLoop (agent/wide_loop.py): 编排复杂的多 Agent 任务 (Swarm/DAG 模式)。
  • GitAgent (agent/git_agent.py): 专门用于版本控制操作的 Agent。

分层与隔离

  • Assistant (主 Agent): 对项目的 core/ 目录拥有完整的读写权限。
  • Worker (子 Agent): 在 Session 特定的 subagents/ 覆盖层中工作。变更仅在 Assistant 核准后或通过 MergeAgent 合并至 core/

工作区结构

  • workspace/{项目名}/{项目名}/: "core" 目录 (实际的 LaTeX 文件 + Git)。
  • workspace/{项目名}/{MMDD_NN}/: Session 目录,用于历史记录与隔离。
  • workspace/{项目名}/project.yaml: 项目特定设定 (Overleaf ID, Git 配置, LaTeX 引擎)。

开发指南

  • 路径安全: 务必使用 project.resolve(path)session.fs 以防止路径穿越 (Path Traversal)。
  • 日志: 使用 loguru 进行结构化日志记录。
  • 配置: 全局设置位于 settings.json;功能开关位于 config/*.json
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. 6d ago First seen · 61 lines · 833 tokens per session scan A 3dfd265a5a90

Subscribe to this mod's changes

research-claw CLAUDE.md is an instructions file published in the GitHub repository nanoAgentTeam/research-claw (292 stars, last pushed 2mo ago), licensed MIT. It adds 833 tokens to every session, about $0.0042 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.