Skip to content
Adonis0123Public

About

One manifest for the rules and skills of every AI agent you run

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

agent-env: one habits.toml, four ribbons to a laptop, a terminal, a server and a cloud bot, and a doctor checking each one

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.

privacy scan Python 3.11+ Node 22.18+ (panel) MIT

English | 中文

agent-env-demo.en.mp4

agent-env in 25 seconds: one habits.toml wired to a Mac, WSL, a server bot and a cloud bot; each plugin and its visibility; the built plugins; two targets composing different AGENTS.md files; the status of every target; the panel

How it works

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
Loading
  • 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.

Set up with your AI agent

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, run git init in it, and clone https://github.com/Adonis0123/agent-env into vendor/agent-env inside it. (2) Open vendor/agent-env/docs/guide/setup.md and follow "Use it for your setup" (the folder and the clone are already done): copy profiles/_template/starter/ into ~/my-agent-env and fill in the manifest for this machine and for the agent you are running in. (3) Run bin/agent-env check until it shows no FAIL, then run bin/agent-env doctor. (4) Until I say yes, do not change any file outside ~/my-agent-env and 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).

Try the demo

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 bot

The 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):

The Environments panel: every environment's targets, plugins and doctor findings, each with how to fix it

What doctor checks

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.

Docs

License

MIT

About

One manifest for the rules and skills of every AI agent you run

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages