openrevoke
AGENTS.md8 starsChanged 7 days agoMITView on GitHub
Rules: backend tests in backend/tests (pytest; policy in CONTRIBUTING.md), none in the panel; check every change by running it too (checks below, then the dev stack). A model change needs an Alembic revision (skills/backend/new-model.md). Development data is fictional (backend/app/db/seed.py). English code and docs; max 600 lines per file. A workspace that holds this repo may add rules in ../AGENTS.md. Open source app for companies with dozens of SaaS tools and no single place that shows people, costs and access. Three…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,117 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 repository10 other files it gives its agents.
- backend/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- frontend/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- diagnoseSkill
- exploreSkill
- harnessSkill
- shipSkill
- verifySkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Offboarding: when someone leaves, write actions remove or suspend their accounts, through the app's API or, without an API, through a …
- Distinctive: line 120
Before changing a feature listed here, read its skill.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.
Files
Open Revoke (product): agent instructions
Rules: backend tests in backend/tests (pytest; policy in CONTRIBUTING.md),
none in the panel; check every change by running it too (checks below, then the dev stack). A model change needs an Alembic revision
(skills/backend/new-model.md). Development data is fictional
(backend/app/db/seed.py). English code and docs; max 600 lines per file.
A workspace that holds this repo may add rules in ../AGENTS.md.
What it is
Open source app for companies with dozens of SaaS tools and no single place that shows people, costs and access. Three features:
- Inventory: who has an account in which app, synced from Google Workspace, GitHub, SCIM, Slack, Claude, ChatGPT and others, matched to people by e-mail.
- Costs: price per seat or plan, converted to the organization's currency with daily exchange rates.
- Offboarding: when someone leaves, write actions remove or suspend
their accounts, through the app's API or, without an API, through a shared
Chromium (
browsercontainer) where an admin is signed in. Each write is verified by reading the account list again.
An MCP server lets AI assistants (Claude Code, Codex) do what a panel user can.
A Slack agent (skills/backend/slack-agent.md) takes access requests in
direct messages: a language model (Anthropic, OpenAI, OpenRouter or any
OpenAI-compatible endpoint) turns "I need Notion" into an onboarding action
for the person who wrote, per-app policy decides if an admin approves it.
App discovery scans Google Workspace sign-in logs for apps people use with the company account. The code must work for any company, not only one.
Connectors are checked on the test connectors, not yet on real accounts.
Files
.agents/: skills (explore, verify, diagnose, harness)..claude/:skillssymlink to.agents/skillsfor Claude Code..github/: own AGENTS.md inworkflows/. CI (ruff,alembic check, panel, Helm, ShellCheck), release on tagv*(images, SBOM, cosign, SLSA L3, chart; Trivy, install, update and kind tests), CodeQL, zizmor, Scorecard, Dependabot. Actions pinned to SHA..dockerignore,.gitignore: build context and git filters..trivyignore: vulnerabilities a release accepts, each with a reason..env.example: template of the git-ignored.env;install.shfills it.CHANGELOG.md: release notes; a noticeable change adds a line under[Unreleased].CONTRIBUTING.md,CODE_OF_CONDUCT.md,SECURITY.md: MIT, no CLA; Contributor Covenant; private vulnerability reports.LICENSE: plain MIT text only, so GitHub detects MIT. Exceptions (ee/, third-party code) go toNOTICE;ee/LICENSE(commercial, no code yet) for paid features.NOTICE: copyright, theee/exception to MIT, the "Open Revoke" trademark, catalog app names and logos as their owners' trademarks, vendored code.README.md: public overview and get started; details indocs/.TELEMETRY.md: what telemetry sends, how to turn it off.Dockerfile: targetsapp(API, worker and panel under supervisor),backend-dev(dev stack),browser.compose.yaml: self-hosting on release images, one port, Caddy profilehttps.compose.build.yaml: overlay that buildsappandbrowserfrom source.compose.dev.yaml: development stack, hot reload, fictional data, ports 18410-18415 on 127.0.0.1.backend/: own AGENTS.md. Python 3.14, FastAPI, SQLAlchemy 2 with Alembic, Temporal, Redis.frontend/: own AGENTS.md. Next.js 16 panel, React 19, Tailwind 4, Bun.deploy/, no map: bundleinstall.sh, host commandopen-revoke,lib/*.sh(POSIX sh);helm/openrevoke/chart (own AGENTS.md),helm/artifacthub-repo.yml.scripts/, no map:release.sh(changelog, tag),build-release.sh(images and bundle),newest-version.sh(SemVer order, also inrelease.yml),browser-packages-key.sh(cache key of the browser image's Debian packages, release workflows). Skillskills/backend/releases.md.docker/, no map:entrypoint.sh(python -m app.db migrate, then supervisor),supervisord.conf,caddy/Caddyfile,browser/(own AGENTS.md).docs/: own AGENTS.md. Click recipes, self-hosting,openapi.json,connectors/.ee/, no map:LICENSEonly.skills/: features that span several files (list below).
Plans and business data never go into this repo: it is public.
Architecture in one paragraph
The panel (web) calls /api/... on its own origin; Next.js proxies it to
FastAPI (api). Business logic lives in backend/app/services/, endpoints in
backend/app/api/ stay thin. Long work runs as Temporal workflows in
worker: SyncConnectionWorkflow (accounts of one connection, scheduled per
connection), ExecuteActionWorkflow (write actions with read-back
verification), scan and exchange-rate workflows. Connectors implement
backend/app/connectors/base.py and register in backend/app/connectors/registry.py; browser connectors
talk to the browser container over CDP. Connector secrets are encrypted
with OPEN_REVOKE_SECRET_KEY (Fernet).
Checks before "done"
dc below is docker compose -f compose.dev.yaml, run in this folder
(maintainers may have a wrapper such as dock exec api ...).
dc exec api ruff check .
dc exec api ruff format --check .
dc exec web bun run lint
dc exec web bun run typecheckA noticeable change also adds a line to CHANGELOG.md.
Then check the behaviour in the running stack: call the endpoint
(curl http://localhost:18411/...), run the workflow, open the
page (http://localhost:18410/people). After an endpoint or schema change refresh the
contract:
dc exec -T api python scripts/export_openapi.py > docs/openapi.json,
then update frontend/src/lib/api/types.ts by hand.
Secrets
.env in this folder (git-ignored, template .env.example) holds
OPEN_REVOKE_SECRET_KEY. Both stacks read it. Losing the key makes stored
connector secrets unreadable. Real admin credentials for tests stay in a
password manager, never in the repo or in fixtures.
Task to skill
Procedures in .agents/skills/ (Claude Code finds them through the
.claude/skills symlink). Feature skills are in the next section.
| Task | Skill |
| unfamiliar area, 3+ unread files, backend + frontend | explore (subagent open-revoke-explore) |
| bug, error, stuck workflow, wrong data | diagnose |
| end of every change: checks, stack run, local commit | verify |
AGENTS.md, folder map, skill, subagent, hook | harness |
publish to GitHub: pull request, Macroscope review, merge (never push to main) | ship |
Skills
Before changing a feature listed here, read its skill. When you change code a
skill covers, update the skill in the same commit. New skill: a file in
skills/backend/ or skills/frontend/ with what the feature does, its files,
the data flow and how to extend it; add it to this list. Skills are in English.
Backend (skills/backend/):
- auth.md: panel sign-in: first admin, invites, self sign-up, password, 2FA, sessions, reset links, CLI
- exchange-rates.md: daily rates, costs in the organization currency
- domain-model.md: domain model, account matching, costs, actions, API conventions
- app-discovery.md: Google Workspace scan of third-party sign-ins, risk,
/discovery - app-catalog.md: known SaaS apps (
backend/app/catalog/apps.json), matching, logos - setup-checklist.md:
/welcomequestions, dashboard checklist - google-cloud-setup.md: automatic Google Cloud setup in the shared browser (Discovery "Automatic")
- actions.md: write actions,
ExecuteActionWorkflow, read-back verification - docker-single-image.md: Dockerfile targets, self-hosting image,
compose.dev.yaml - releases.md: versions, release build, installer,
open-revokecommand, update check, Helm chart - click-recipes.md: writes in apps without an API: format, runner, fake panel
- browser.md:
browsercontainer, CDP, live view,BrowserSession, header capture - new-connector.md: app connector, secrets, account sync,
SyncConnectionWorkflow - new-endpoint.md: new REST endpoint (router, service, schema)
- new-model.md: SQLAlchemy model, Alembic migration, seed data
- new-workflow.md: Temporal workflow and activities
- temporal-local-stack.md: local Temporal server without Web UI
- timezone.md: time zone in backend services
- mcp.md: MCP at
/mcp: task and API tools, anonymous listing, tokens - access-requests.md: request policy, manager and admin steps,
/requests, CSV, Slack buttons - access-profiles.md: apps with roles, assignment with onboarding batch, missing and extra access
- slack-agent.md: Slack bot for access requests, AI model settings, Socket Mode runner
Frontend (skills/frontend/):
- auth.md: sign-in pages,
AuthGate, 2FA, settings - currency.md: amounts in the organization currency
- new-page.md: new page (App Router)
- ui-kit.md: read before any screen work: shared components only, tokens, loading, motion
- new-component.md: UI component (shadcn and CVA)
- api-communication.md:
/apiproxy, types, React Query, errors - pages.md: pages, their hooks, connection form from JSON Schema
- timezone.md: date formatting
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
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.

