One manifest for the rules and skills of every AI agent you run, on every machine.
Claude Code, Codex, Grok, pi, Cursor, Hermes and cloud chat bots get their rules as plugins, and one doctor checks them all.
English | 中文
agent-env-demo.en.mp4
flowchart TB
SRC["<b>Your private repository</b><br/>manifest/habits.toml · rules sources · skills"]
PLG["<b>Plugins</b>: git repositories, one visibility each<br/>public · personal · company · local (never pushed)"]
LAP["<b>Your machines</b><br/>Claude Code · Codex · pi · Cursor"]
SRV["<b>Remote server</b><br/>Hermes bot"]
BOT["<b>Cloud-hosted bot</b><br/>Grok"]
DOC["<b>doctor</b> → status JSON → panel"]
SRC -->|"plugin build → scan → publish"| PLG
SRC -->|"compose AGENTS.md locally,<br/>in the target's plugin order"| LAP
PLG -->|"pull on a systemd timer"| SRV
PLG -->|"pointer rule, the bot pulls"| BOT
LAP -.->|check| DOC
SRV -.->|check| DOC
BOT -.->|check| DOC
- Edit once. Rules live in one source, split by who may read them. Each target (one host on one machine) is an ordered list of plugins; later ones append to or override earlier ones, and every override is reported.
- Targets fetch, nothing is pushed into them. Your own machines compose locally, a server pulls on a timer, a cloud bot follows a short pointer rule.
- Private and dry run by default. Anything without a visibility stays local. Public and personal plugins are
scanned for home paths, emails and secrets before they are written, and nothing is pushed without
--yes.
How the engine is built: ARCHITECTURE.md.
You do not have to write code or type commands. Paste this to Claude Code, Codex or Grok Build:
Set up agent-env for me. I do not write code, so run every command yourself and tell me in plain words what happened. (1) Create the folder
~/my-agent-env, rungit initin it, and clone https://github.com/Adonis0123/agent-env intovendor/agent-envinside it. (2) Openvendor/agent-env/docs/guide/setup.mdand follow "Use it for your setup" (the folder and the clone are already done): copyprofiles/_template/starter/into~/my-agent-envand fill in the manifest for this machine and for the agent you are running in. (3) Runbin/agent-env checkuntil it shows no FAIL, then runbin/agent-env doctor. (4) Until I say yes, do not change any file outside~/my-agent-envand do not push anything. Then report: what you set up, what doctor found and what each finding means, which fixes you can make once I agree, and what I have to do myself.
The first run only reads and reports. The agent stops and asks before it writes an agent's rules file or pushes, and leaves four things to you: saying yes, signing in, pasting a pointer rule into a bot's app, and creating tokens (details).
One machine and one agent? You do not need the engine. Install the public plugin https://github.com/Adonis0123/agent-plugin-public in that agent instead (how).
Requires Python 3.11+ and git. examples/demo/ is a made-up user with a Mac, a WSL box, a server bot and a cloud
bot (the four environments).
git clone https://github.com/Adonis0123/agent-env.git && cd agent-env
export XDG_STATE_HOME="$PWD/.demo-state" # keep the demo's builds out of your real state directory
M=examples/demo/manifest/habits.toml
bin/agent-env check --manifest "$M" # validate the manifest
bin/agent-env plugin build --all --manifest "$M" # build the five demo plugins
bin/agent-env render --target mac/claude-code --manifest "$M" # print the composed AGENTS.md (no write)
bin/agent-env plugin pointer --target grok-bot/bot --manifest "$M" # the pointer rule for a cloud botThe panel shows every environment as a to-do list and a matrix (npm --prefix panel test, then
AGENT_ENV_STATUS_FILE=panel/fixtures/v8-plugins.json node panel/dev-server.ts):
Every expectation of every target: links, generated files, composed rules, plugins, services, logins, and secrets by name only. Each finding ends with 修复: and the command that fixes it. All commands: docs/guide/commands.md.
Status: v0.1.0, extracted from a setup that runs on macOS, WSL, a Linux server and a cloud-hosted bot. The CLI's messages and some docs are in Chinese (zh-CN) for now; the code, the manifest keys and these docs are in English. The engine has no personal data in it: your manifest, profiles and private skills live in your own private repository.
- Set up: who it is for, what you do yourself, the steps an agent follows, the demo
- Commands: every command, the repository layout, development
- Architecture: concepts, data flow, module map, privacy, extension points
- Plugins design, status JSON, decisions, glossary
- For agents: the runbook skill
skills/agent-env/SKILL.md; rules for changing this repository inAGENTS.md


