agentleFS
MicrosoftKnown publishermicrosoft/openclaw-dev/AGENTS.md

openclaw-dev

AGENTS.md25 starsChanged 5 months agoMITView on GitHub

Guidance for AI coding agents (Claude Code, OpenAI Codex, Cursor, Gemini CLI, Amp, and others) working in this repository. This repo deploys OpenClaw as a secure, hosted AI assistant on Azure Container Apps, wired to Azure OpenAI in Foundry Models over a Managed Identity (no API keys), gated by Entra ID Easy Auth, with an optional Microsoft Teams channel. Alpha, single-tenant, dev/test. For any deploy / configure / operate / Teams / troubleshoot / teardown request, follow the full playbook…

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 1 is common, 1 is distinctive, and 5 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Single entrypoint: use ./devclaw <cmd> (Windows .\devclaw.cmd <cmd>), a thin wrapper over the Azure Developer CLI (azd).

    line 19
  2. Very specific:

    Configure with azd env set <KEY> <VALUE>: before devclaw up. There is no .env file.

    line 22
  3. Very specific:

    Teams is opt-in: Default deploy is browser-only (no bot, no Teams).

    line 24
  4. Distinctive:

    Don't create bot app registrations by default.

    line 27
  5. Very specific:

    Restricted subscriptions/tenants: before devclaw up, set whichever of these apply: SERVICE_MANAGEMENT_REFERENCE=<smr-guid> (tenants that …

    line 28
  6. Common:

    Never add or suggest API keys.

    line 39
  7. Very specific:

    To pause cheaply: use devclaw stop (scale to 0, $0, state kept), not down.

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — openclaw-dev

Guidance for AI coding agents (Claude Code, OpenAI Codex, Cursor, Gemini CLI, Amp, and others) working in this repository.

This repo deploys OpenClaw as a secure, hosted AI assistant on Azure Container Apps, wired to Azure OpenAI in Foundry Models over a Managed Identity (no API keys), gated by Entra ID Easy Auth, with an optional Microsoft Teams channel. Alpha, single-tenant, dev/test.

Start here

For any deploy / configure / operate / Teams / troubleshoot / teardown request, follow the full playbook in skills/openclaw-dev/SKILL.md. It contains the command map, env-var contract, region list, and error catalog.

Non-negotiable rules

  • Single entrypoint: use ./devclaw <cmd> (Windows .\devclaw.cmd <cmd>), a thin wrapper over the Azure Developer CLI (azd). Fall back to azd directly only if the wrapper can't run.
  • Configure with azd env set <KEY> <VALUE> before devclaw up. There is no .env file. Model/version/capacity live in infra/main.bicep, not env vars.
  • Teams is opt-in. Default deploy is browser-only (no bot, no Teams). To enable the Teams add-on: azd env set ENABLE_TEAMS true then re-run devclaw up (or just run devclaw teams, which prompts and re-provisions). Don't create bot app registrations by default.
  • Restricted subscriptions/tenants: before devclaw up, set whichever of these apply: SERVICE_MANAGEMENT_REFERENCE=<smr-guid> (tenants that require it on new app regs), SKIP_STORAGE=true (subscriptions whose Azure Policy blocks shared-key storage — ACA file mounts need shared keys today; gateway token + sessions won't persist across replica restarts). ACR admin is already disabled; image pulls use the container app's managed identity.
  • Region AZURE_LOCATION must be in the allowed list in infra/main.bicep; set AZURE_OPENAI_LOCATION separately if that region lacks the model SKU.
  • Azure OpenAI only today (default gpt-5.4-mini). Don't claim Claude / other Foundry Models work yet — they're future scope.
  • Passwordless: model calls use Managed Identity (disableLocalAuth: true). Never add or suggest API keys.
  • Never commit secrets. _local/, .azure/, .azure-cli/, .azd-config/, the generated teams/package/manifest.json, and teams/openclaw-teams-app.zip are gitignored.
  • Confirm before destructive actions (devclaw down/azd down, az ad app delete, RBAC removal, deleting state): state what will be deleted and get explicit confirmation. Never use --force/--no-prompt to skip it.
  • To pause cheaply use devclaw stop (scale to 0, $0, state kept), not down.

Verify

devclaw status should show Running; open the printed URL, sign in with a Microsoft account, confirm the WebChat UI loads. devclaw test is only a status summary, not an end-to-end model test.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.