theseus-kit: Instructions file for Claude Code

CLAUDE.md

theseus-kit CLAUDE.md is an instructions file for Claude Code from A2C-SMCP/theseus-kit. It costs 2,838 tokens per session, scanned A, original, MIT.

Repository instructions for theseus-kit, a Python MCP server for working with TFRobot configurations. They include setup, quality checks, tests, packaging commands, and end-to-end tests that require a real robot.

In plain words
What is it for?
Use them to install dependencies, run the server, format and type-check code, run tests, build packages, and run robot-backed end-to-end tests.
Why use it?
They tell a coding agent how to develop and check this specific project, including which tests need external robot access.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is A2C-SMCP/theseus-kit's own configuration. It tells Claude Code how to work on theseus-kit 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 theseus-kit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to A2C-SMCP/theseus-kit. 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/A2C-SMCP/theseus-kit/develop/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/A2C-SMCP/theseus-kit

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 theseus-kit CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/a2c-smcp/theseus-kit/claude-md/github.svg)](https://agentmods.dev/instructions/a2c-smcp/theseus-kit/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/a2c-smcp/theseus-kit/claude-md"><img src="https://agentmods.dev/badge/instructions/a2c-smcp/theseus-kit/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 theseus-kit CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/a2c-smcp/theseus-kit/claude-md"><img src="https://agentmods.dev/badge/instructions/a2c-smcp/theseus-kit/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,838 This file is loaded in full into every session.
When invoked 2,838 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.02838 $0.02838
Opus 5.5 $0.01135 $0.01135
Sonnet 5.5 $0.00568 $0.00568
Haiku 4.5 $0.00284 $0.00284

Measured 1mo ago against content hash a78d4c9710ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

theseus-kit 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 1mo 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 · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 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.

项目概述

theseus-kit 是一个 MCP 服务器,用于安全地检查、编辑、模板化和发布 TFRobot 配置。它通过标准 MCP 协议运行,同时暴露可选的 A2C-SMCP 兼容的 window:// 和 skill:// 资源。

当前状态:0.1.1,已实现 11 个 MCP 工具、3 个配置窗口和 12 类技能。默认 stdio 入口使用用户 PAT;无 PAT 的 stdio OAuth 外部回调登录尚未实现。

开发命令

需要 Python 3.11+ 和 uv。

uv sync --locked --all-groups   # 安装全部依赖
uv run theseus-kit              # 启动 MCP 服务器(stdio 传输)

所有质量检查通过 Poe 任务运行:

uv run poe check       # 顺序执行 format-check → lint → typecheck
uv run poe ci          # CI 完整流程:lock-check → check → test-cov
uv run poe format      # ruff 格式化
uv run poe lint        # ruff 代码检查
uv run poe typecheck   # mypy 严格模式类型检查
uv run poe test        # 运行测试(pytest,asyncio 模式 auto)
uv run poe test-cov    # 测试覆盖率(需要 ≥80%)
uv run poe build       # 构建 wheel + sdist
uv run poe package-check  # twine 检查构建产物

任务列表可通过 uv run poe --help 查看。

运行单个测试

uv run pytest tests/test_auth_routing.py -v
uv run pytest tests/test_auth_routing.py::test_exchange_wire_user_pat -v

E2E 测试(需要真实机器人)

THESEUS_E2E=1 \
THESEUS_ROBOT__ROBOT_ID=<rid> \
THESEUS_ROBOT__NAMESPACE=<ns> \
THESEUS_ROBOT__ROBOT_TYPE=tfrobot \
THESEUS_ROBOT__API_BASE_URL=https://api.<clusterDomain> \
THESEUS_ROBOT__MANAGER_BASE_URL=https://<manager-host> \
THESEUS_CREDENTIAL__KIND=user_pat \
THESEUS_CREDENTIAL__PAT=<tfp_...> \
THESEUS_CREDENTIAL__ROBOT_PUBLIC_ID=<orgSlug>:<employeeNo> \
uv run pytest tests/test_e2e_robot.py -v -m e2e

发布前准备

uv run poe ci && uv run poe build && uv run poe package-check

发布流程见 docs/releasing.md:版本号由 bump-my-version 管理,通过 GitHub Release + OIDC Trusted Publishing 发布到 PyPI/TestPyPI。

架构

分层设计

  1. MCP 表面层(server.py)— FastMCP 实例,工具/资源声明
  2. 应用服务层(services/)— 读取、创建、编辑、删除、校验、保存模板、发布用例
  3. TFRobot 客户端(transport.py、routing.py、tokens.py、credentials.py)— 认证 HTTP 适配器,对接 /v1/factory/** 和 /llms.txt
  4. 资源投影层 — window:// 实时快照(resources.py,三个窗口 summary/recent/topology + 订阅能力 subscriptions.py)与 skill:// 技能指南(skills/,12 个类别,三层结构):theseus 总纲调度 → 阶段技能 persona-interview / persona-optimize / plan-config / apply-config-plan → 原子技能 analyze-config / manage-topology / tune-config / save-template / publish-config / write-tfonto,外加反馈闭环技能 enhance。阶段交接物在机器人工作区 ~/.theseus/workspaces/<slug>/(画像 <slug>.md + configs/ + plans/)

Read the full file on GitHub · 149 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. 1mo ago Changed · +11 tokens per session a78d4c9710ca
  2. 2mo ago First seen · 149 lines · 2,827 tokens per session scan A d646e69e4e4d

Subscribe to this mod's changes

theseus-kit CLAUDE.md is an instructions file published in the GitHub repository A2C-SMCP/theseus-kit (0 stars, last pushed 1mo ago), licensed MIT. It adds 2,838 tokens to every session, about $0.0114 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-31.

Related

theseus-kit CLAUDE.md compared with instructions from other repositories

theseus-kit CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
theseus-kit CLAUDE.mdA2C-SMCP/theseus-kitInstructions file01mo agoMITA2,838Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode