Many-Foot: Instructions file for Codex

AGENTS.md

Many-Foot AGENTS.md is an instructions file for Codex, OpenCode from wuwahe/Many-Foot. It costs 9,167 tokens per session, scanned A, original, Apache-2.0.

Project instructions for ManyFoot, a Java and React system where multiple AI agents are coordinated by a supervisor.

In plain words
What is it for?
Use them when adding or changing backend Java code, frontend React code, agent integrations, tools, sandbox features, or tests in the ManyFoot repository.
Why use it?
They give coding agents the project’s architecture, module boundaries, commands, and rules for keeping changes testable and maintainable.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions OpenCode.

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

Reuse

Borrowing it

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

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 Many-Foot AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wuwahe/many-foot/agents-md"><img src="https://agentmods.dev/badge/instructions/wuwahe/many-foot/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,167 This file is loaded in full into every session.
When invoked 9,167 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.09167 $0.09167
Opus 5.5 $0.03667 $0.03667
Sonnet 5.5 $0.01833 $0.01833
Haiku 4.5 $0.00917 $0.00917

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

Security

Grade A, and why

Many-Foot 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 2mo 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 · 1,190 lines

How it starts

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

AGENTS.md

本文件为 OpenCode / AI 编程 Agent 在 ManyFoot 代码库中工作时提供高信号指导。

AI 在本项目中不应只完成"能跑的代码",而应以架构师视角进行设计与实现:优先保证模块边界清晰、职责单一、低耦合、高内聚、易测试、易扩展、易替换。


一、核心编码原则

1. 架构师式编码要求

在新增、修改代码时,必须优先考虑:

  • 是否符合现有模块边界
  • 是否破坏已有继承链、策略链、工厂注册机制
  • 是否引入了不必要的耦合
  • 是否方便后续扩展新的 Agent、模型厂商、工具、沙箱能力
  • 是否可以通过配置扩展,而不是硬编码
  • 是否可以独立测试
  • 是否符合 Spring Boot 的 Bean 生命周期和条件装配习惯

不要为了快速实现功能而写临时逻辑、硬编码分支、跨模块直接调用、重复代码或"大而全"的类。


二、快速参考

后端

# 构建
mvn clean package

# 运行(端口 8100)
mvn spring-boot:run

# 测试
mvn test

前端

# 进入前端目录
cd foot-ui

# 安装依赖
npm install

# 启动开发服务器(端口 3000)
npm run dev

# 类型检查
npm run typecheck

# 生产构建
npm run build

# 预览构建
npm run preview

三、项目概述

ManyFoot 是基于 Spring AI Alibaba Agent Framework 的 Supervisor 多智能体协作系统,采用 ReactAgent 模式实现智能体编排。

技术栈

后端:

  • Spring Boot 3.4.4
  • Java 17
  • Maven
  • Spring AI 1.1.0
  • Spring AI Alibaba Agent Framework 1.1.0.0
  • Redis (Redisson)
  • Docker Sandbox
  • Apache Tika(文档解析)

前端:

  • React 19
  • TypeScript
  • Vite
  • Tailwind CSS CDN
  • react-markdown + remark-gfm
  • lucide-react

本项目定位:可扩展的多智能体协作框架,通过 Supervisor 模式协调 8 个智能体完成复杂任务。


四、根包与模块边界

后端根包

com.lh.manyfoot

单模块 Maven 项目。

包路径 职责
agent.core.* 智能体核心接口:Agent、AbstractAgent、AbstractToolAgent、StreamingAgent、ToolAwareAgent
agent.context.* 智能体执行上下文:AgentContext、AgentAttachment、SessionContextHolder
agent.domain.* 智能体领域对象:PlanGraph、TaskSpec、ActionCall、ActionResult、DomainDraft 等
agent.exception.* 智能体异常:AgentExecutionException
agent.factory.* 智能体工厂:AgentFactory、AgentType
agent.impl.* 智能体实现:SupervisorAgent、PlannerRouterAgent、ResearchRetrievalAgent、DomainSpecialistAgent、DocumentSpecialistAgent、ToolActionExecutorAgent、CodeAgent、ChatAgent
agent.prompt.* 提示词提供者:AgentPromptProvider 及各智能体专属 PromptProvider
agent.registry.* 智能体注册表:AgentRegistry(动态发现所有 Agent Bean)
agent.strategy.* 执行策略:ExecutionStrategy、SyncCallStrategy、StreamingStrategy
agent.supervisor.* Supervisor 编排:AgentTool(Agent→ToolCallback 适配器)、SupervisorToolProvider
agent.support.* 工具类:SpecialistJsonUtils、AgentMessageFactory
agent.tool.* 工具提供者:AgentToolProvider、FullToolProvider
agent.tool.sandbox.* 沙箱工具:SandboxTool、SandboxEngine、DocumentParser、ExecutionResultFormatter
agent.tool.sandbox.domain.* 沙箱领域对象:SandboxExecutionRequest、SandboxExecutionResult、SandboxCodeType
models.registry.* 模型注册:ModelResolver、AiModelRegistrar、ModelRole、AiModelInitializer
models.failover.* 故障转移:FailoverChatModel
models.support.* 模型支持:ChatOptionsBinder
models.* 厂商工厂:AiModelFactory 接口及各厂商实现(Dashscope、OpenAI、Anthropic、DeepSeek、Gemini、Ollama、Qianfan 等)
config.* Spring 配置:RedissonConfig、DockerClientConfig、McpClientConfig、ManyFootToolConfig
config.properties.* 配置属性:AiProvidersProperties、SandboxConfig、VendorEnums
controller.* REST API:ChatController、R(统一响应)、HttpStatus
controller.dto.* 请求 DTO:ChatRequest
service.* 基础设施服务:SandboxContainerManager、RedisUtils
domain 共享 DTO / 枚举:ExecutionResult、ExecutionStatus、SandboxContainer、ContainerStatus、AiModelConfig

Read the full file on GitHub · 1,190 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. 2mo ago First seen · 1,190 lines · 9,167 tokens per session scan A d3da5d065496

Subscribe to this mod's changes

Many-Foot AGENTS.md is an instructions file published in the GitHub repository wuwahe/Many-Foot (12 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 9,167 tokens to every session, about $0.0367 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

Many-Foot AGENTS.md compared with instructions from other repositories

Many-Foot AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Many-Foot AGENTS.mdwuwahe/Many-FootInstructions file124mo agoApache-2.0A9,167Codex, OpenCode
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