agentleFS
ComposioHQComposioHQ/composio/python/AGENTS.md

composio / python

AGENTS.md30k starsChanged 2 months agoMITView on GitHub

Python SDK guidance for AI agents. python/ contains the Python SDK, provider packages, tests, nox sessions, release scripts, and Python docs. Run from python/: Every field of an API response is untrusted input — including slugs, IDs, and filenames. The SDK's threat model assumes the backend may be compromised or the connection MITM'd, and that a third-party toolkit can return anything. When untrusted directory components such as slugs or IDs become part of a filesystem path, use composio.utils.safe_path.secure_join(root, *components). For…

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about ComposioHQ/composio

The biggest 5 of 61 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 61

Talked about on GitHub, Bluesky and Hacker News (61 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 9

4 more on Bluesky

The file

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

10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use python-sdk for core SDK code under python/composio/.

    line 11
  2. Very specific:

    Use python-providers for python/providers/*.

    line 12
  3. Very specific:

    Use python-testing for Ruff, mypy, pytest, nox, and Makefile verification.

    line 13
  4. Very specific:

    Use python-release for build, bump, and publishing workflow changes.

    line 14
  5. Very specific:

    Use cross-sdk-parity when matching TypeScript SDK behavior.

    line 15
  6. Distinctive:

    Use Ruff for formatting/linting and mypy for type checks.

    line 39
  7. Distinctive:

    Add pytest coverage for behavior changes.

    line 40
  8. Very specific:

    Keep provider-specific changes under the relevant python/providers/<provider>/ package.

    line 41
  9. Very specific:

    When bumping composio-client, update python/pyproject.toml, python/setup.py, and root uv.lock together.

    line 42
  10. Very specific:

    When untrusted directory components such as slugs or IDs become part of a filesystem path, use composio.utils.safe_path.secure_join(root, …

    line 50

≈ “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

Python SDK guidance for AI agents.

Scope

python/ contains the Python SDK, provider packages, tests, nox sessions, release scripts, and Python docs.

Skill Routing

  • Use python-sdk for core SDK code under python/composio/.
  • Use python-providers for python/providers/*.
  • Use python-testing for Ruff, mypy, pytest, nox, and Makefile verification.
  • Use python-release for build, bump, and publishing workflow changes.
  • Use cross-sdk-parity when matching TypeScript SDK behavior.

Setup

Run from python/:

make env
source .venv/bin/activate

Commands

make fmt
make chk
make tst
make snt
make type_inference
make build

Rules

  • Use Ruff for formatting/linting and mypy for type checks.
  • Add pytest coverage for behavior changes.
  • Keep provider-specific changes under the relevant python/providers/<provider>/ package.
  • When bumping composio-client, update python/pyproject.toml, python/setup.py, and root uv.lock together.

Trust boundary

Every field of an API response is untrusted input — including slugs, IDs, and filenames. The SDK's threat model assumes the backend may be compromised or the connection MITM'd, and that a third-party toolkit can return anything.

When untrusted directory components such as slugs or IDs become part of a filesystem path, use composio.utils.safe_path.secure_join(root, *components). For an untrusted filename, use secure_basename_join(base, filename, root=root) so ordinary extensions remain valid while the write stays anchored to the trusted root. Both helpers enforce two rules:

  1. Anchor containment on a constant. Checking a derived path against a directory that untrusted input helped build compares tainted against tainted and always passes. A directory built as root / untrusted_a / untrusted_b and then validated against that same built directory is checked against a reference the input was free to move.
  2. Validate before touching the filesystem. No mkdir or open until the final path is known to be inside the root, so a rejected write leaves no attacker-chosen directories behind.

tests/test_path_join_guardrail.py enforces this: any path join whose right-hand side is not a literal or module constant must be listed there with a reason.

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.