agentleFS
GetStreamGetStream/Vision-Agents/CLAUDE.md

Vision-Agents

CLAUDE.md8.1k starsChanged 13 months agoApache-2.0View on GitHub

Python monorepo managed with uv workspaces. The core framework lives in agents-core/ and plugins live in plugins/ (37+ packages). Python >= 3.10, 3.12 recommended. All commands use uv. Never use python -m. If you run into dependency issues, stop and ask. - ordered as: stdlib, third-party, local package, relative. Use TYPE_CHECKING guard for imports only needed by type annotations. - Never import from private modules (_foo) outside of the package's own __init__.py. Use the public re-export (e.g. from vision_agents.testing import…

  • Reads credentials

Trending

Quiet since September.thin dataabout the whole repository

Dec 2025: 2 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the GetStream/Vision-Agents repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about GetStream/Vision-Agents

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

See all 9

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

On GitHub · 5

On Hacker News · 3

On Bluesky · 1

The file

Show its rules and text

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

21 rules. About 0 are common, 11 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

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

    All commands use uv. Never use python -m.

    line 11
  2. Very specific:

    Keep unit-tests for the class under the same test class.

    line 37
  3. Distinctive:

    ALWAYS test behavior, not calling a path.

    line 38
  4. Distinctive:

    Use pytest.fixture for test setup, not helper methods

    line 39
  5. Distinctive:

    NEVER observe method calls in tests.

    line 40
  6. Very specific:

    Prefer specific exceptions if they are known.

    line 45
  7. Very specific:

    Avoid getattr, hasattr, delattr, setattr.

    line 46
  8. Very specific:

    Do not use section comments like # -- some section --

    line 48
  9. Very specific:

    Prefer logger.exception() when logging an error with a traceback instead of logger.error("Error: {exc}")

    line 49
  10. Distinctive:

    Do not use local imports, import at the top of the module

    line 50
  11. Very specific:

    Avoid using Any type.

    line 52
  12. Distinctive:

    When adding code to an existing file, follow the patterns already established in that file (e.g.

    line 53
  13. Very specific:

    Never import from private modules (_foo) outside of the package's own __init__.py.

    line 60
  14. Very specific:

    use them everywhere. Modern syntax: X | Y unions, dict[str, T] generics, full Callable signatures, Optional for nullable params.

    line 69
  15. Very specific:

    Use asyncio.Lock, asyncio.Task, asyncio.gather for concurrency.

    line 85
  16. Distinctive:

    Don't add error handling, logging, validation, comments, abstractions, config options, or "future-proofing" I didn't ask for.

    line 95
  17. Distinctive:

    Do not remove valid comments when editing/refactoring code.

    line 100
  18. Distinctive:

    When making multiple related changes to the same file, combine them into fewer Edit calls with enough surrounding context, rather than one …

    line 109
  19. Distinctive:

    Run tests with Bash directly.

    line 110
  20. Distinctive:

    Only use TodoWrite for tasks with 5+ steps.

    line 111
  21. Distinctive:

    Only include user-facing changes (public API breaks, features, fixes).

    line 117

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md

CLAUDE.md

Project overview

Python monorepo managed with uv workspaces. The core framework lives in agents-core/ and plugins live in plugins/ (37+ packages). Python >= 3.10, 3.12 recommended.

Commands

All commands use uv. Never use python -m. If you run into dependency issues, stop and ask.

# Full check (ruff + mypy + unit tests)
uv run --no-sync dev.py check

# Unit tests only (--no-sync avoids uv panic in sandboxed environments)
uv run --no-sync pytest -m "not integration"

# Integration tests (needs .env secrets)
uv run --no-sync pytest -m "integration"

# Lint & format
uv run --no-sync ruff check .
uv run --no-sync ruff format .

# Type check
uv run --no-sync mypy

Testing

  • Framework: pytest. Never mock.
  • @pytest.mark.asyncio is not needed (asyncio_mode = auto).
  • Integration tests use @pytest.mark.integration.
  • NEVER adjust sys.path.
  • Keep unit-tests for the class under the same test class. Do not spread them around different test classes. For example, tests for Agent must be inside TestAgent, etc.
  • ALWAYS test behavior, not calling a path.
  • Use pytest.fixture for test setup, not helper methods
  • NEVER observe method calls in tests; assert on outputs and state.

Python rules

  • Never use from __future__ import annotations.
  • Prefer specific exceptions if they are known. If the exception type is not clear, it is ok to use except Exception as e.
  • Avoid getattr, hasattr, delattr, setattr; prefer normal attribute access.
  • Docstrings: Google style, keep them short.
  • Do not use section comments like # -- some section --
  • Prefer logger.exception() when logging an error with a traceback instead of logger.error("Error: {exc}")
  • Do not use local imports, import at the top of the module
  • Avoid # type: ignore comments.
  • Avoid using Any type.
  • When adding code to an existing file, follow the patterns already established in that file (e.g. error handling style, import guards, naming).

Code style

Imports:

  • ordered as: stdlib, third-party, local package, relative. Use TYPE_CHECKING guard for imports only needed by type annotations.
  • Never import from private modules (_foo) outside of the package's own __init__.py. Use the public re-export (e.g. from vision_agents.testing import TestResponse, not from vision_agents.testing._run_result import TestResponse).

Naming:

  • private attributes and methods use a leading underscore (_sessions, _warmup_agent). Public API is plain snake_case.

Type annotations:

  • use them everywhere. Modern syntax: X | Y unions, dict[str, T] generics, full Callable signatures, Optional for nullable params.

Logging:

module-level logger = logging.getLogger(__name__). Use debug for lifecycle, info for notable events, error for failures without a traceback, exception for errors with traceback.

  • In hot paths (audio processing, event handling), guard debug logging behind if logger.isEnabledFor(logging.DEBUG): to avoid formatting overhead when debug is disabled.

Constructor validation:

  • raise ValueError with a descriptive message for invalid args. Prefer custom domain exceptions over generic ones.

Async patterns:

  • async-first lifecycle methods (start/stop). Support __aenter__/__aexit__ for context manager usage.
  • Use asyncio.Lock, asyncio.Task, asyncio.gather for concurrency.
  • Clean up resources in finally blocks.

Method order:

  • __init__, public lifecycle methods, properties, public feature methods, private helpers, dunder methods.

Other

  • Smallest possible diff. Prefer deleting code over adding it.
  • Don't add error handling, logging, validation, comments, abstractions, config options, or "future-proofing" I didn't ask for.
  • Match the style and abstraction level of surrounding code. Don't introduce new patterns or helpers unless asked.
  • Fix root causes, not symptoms. No try/except to swallow bugs.
  • Change only what I asked for. Don't refactor adjacent code — ask first.
  • Do not remove valid comments when editing/refactoring code.

Plugins

  • In every plugins/*/pyproject.toml, the wheel target must be packages = ["vision_agents"]. Listing "." pulls tests/, README.md, example/, etc. into the published wheel.
  • Each plugin must keep readme = "README.md" in [project] and a README.md next to its pyproject.toml so PyPI renders a description page.

Token efficiency

  • When making multiple related changes to the same file, combine them into fewer Edit calls with enough surrounding context, rather than one edit per change.
  • Run tests with Bash directly. Only use subagents for test runs when you need to do other work in parallel.
  • Only use TodoWrite for tasks with 5+ steps. Don't update it after every individual edit.

Changelog

  • Lives in CHANGELOG.md at the repo root.
  • Organised by version heading (# v0.4.0), then sections: Breaking Changes, New Features, Bug Fixes.
  • Only include user-facing changes (public API breaks, features, fixes). Skip docs-only and CI-only commits.
  • Reference PR numbers inline, e.g. (#374).
  • To generate: git log <last-tag>..HEAD --oneline --no-merges, then classify each commit.

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.