

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# API Agent Guide23Read surrounding module, class, and function docstrings plus non-obvious comments before changing backend behavior. They are local contracts; update them only when their owned behavior changes, and keep them aligned with the current code.45## Commands67Run backend checks from the repository root:89- Format and lint: `make lint`10- Type check: `make type-check`11- Unit tests: `make test`12- Targeted tests: `make test TARGET_TESTS=./api/tests/<path>`1314Run direct Python commands through `uv run --project api`. Docker-backed integration suites are normally CI-owned. Do not start long-running services as part of routine agent work.1516## Architecture And Boundaries1718- Keep transport parsing and serialization in controllers, orchestration in services, and domain policy in `core/` or its domain owner. Keep `libs/` business-agnostic and reuse existing owners before adding abstractions.19- Before changing controller schemas, generated API contracts, or `SystemFeatureModel`, read `controllers/API_SCHEMA_GUIDE.md`. Treat `/system-features` as a minimal unauthenticated bootstrap allowlist, not a general configuration registry.20- Scope tenant-owned reads and writes by the complete owner chain, and propagate `tenant_id` across every affected layer. Reconstruct trusted internal references from validated database state after payload or async boundaries.21- Keep write transactions explicit and bounded. Do not perform external I/O inside an open transaction unless a documented consistency contract requires it.22- Read configuration through `configs.dify_config`, access storage through `extensions.ext_storage.storage`, and route outbound HTTP through the existing SSRF-safe owner in `core.helper.ssrf_proxy`.23- Use Pydantic v2 for request and response models. Reuse domain-specific exceptions and translate them at the controller boundary.24- Use existing Celery task and queue owners for asynchronous work; do not route unrelated jobs through workflow-specific services.25- Celery tasks that may be retried or redelivered must keep side effects idempotent and log affected resource identifiers.26
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| langgenius/difydify-agent/AGENTS.md · 152k | AGENTS.md | styleagent-behaviour | 58/100 | 14 days ago | |
| langgenius/difyweb/AGENTS.md · 152k | AGENTS.md | teststyletesting-strategyagent-behaviour | 47/100 | 14 days ago | |
| langgenius/difyweb/features/agent-v2/AGENTS.md · 152k | AGENTS.md | agent-behaviour | 16/100 | 14 days ago | |
| langgenius/difycli/AGENTS.md · 152k | AGENTS.md | testtypestesting-strategy | 58/100 | 14 days ago | |
| langgenius/difycli/src/commands/AGENTS.md · 152k | AGENTS.md | testlint-formatagent-behaviour | 74/100 | 14 days ago | |
| langgenius/difye2e/AGENTS.md · 152k | AGENTS.md | setupstyletesting-strategyapi | 72/100 | 7 days ago | |
| langgenius/difye2e/features/agent-v2/AGENTS.md · 152k | AGENTS.md | setupbuildtesting-strategyapi+1 | 58/100 | 14 days ago | |
| langgenius/difypackages/dify-ui/AGENTS.md · 152k | AGENTS.md | stylesecurityuido-not | 50/100 | 14 days ago | |
| langgenius/difyAGENTS.md · 152k | AGENTS.md | no sections | 40/100 | 11 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 200k | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago | |
| aaif-goose/gooseAGENTS.md · 53k | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 8 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 14 days ago | |
| vllm-project/vllmAGENTS.md · 88k | AGENTS.md | setuptestlint-formatstyle+5 | 100/100 | 14 days ago | |
| elastic/elasticsearchx-pack/plugin/inference/AGENTS.md · 78k | AGENTS.md | buildtestlint-formatstyle+3 | 100/100 | 14 days ago | |
| bagisto/bagistoAGENTS.md · 28k | AGENTS.md | setupbuildteststyle+7 | 100/100 | 7 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 13 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/langgenius-dify-api-agents)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.