agentleFS
whiteboardmonkwhiteboardmonk/agcluster-container/AGENTS.md

agcluster-container

AGENTS.md78 starsChanged 13 months agoMITView on GitHub

  • Reads credentials
  • Installs packages
  • 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 repositoryOne other file it gives its agents.

The file

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

3 rules. About 0 are common, 2 are distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add unit tests for new services/models.

    line 24
  2. Very specific:

    Use conventional commits when possible (feat:, fix:, chore:, docs:).

    line 30
  3. Distinctive:

    Keep commits scoped; avoid mixing backend and UI refactors unless tightly coupled.

    line 32

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

Repository Guidelines

Project Structure & Modules

  • src/agcluster/container/ – FastAPI backend: api/ endpoints, core/ orchestration (session, container, translation), models/ Pydantic schemas, and ui/ Next.js dashboard.
  • tests/ – Pytest suites split into unit/ and integration/; markers also cover e2e (Docker-backed).
  • e2e/agcluster.spec.ts – Root Playwright checks against a running stack.
  • docker/, docker-compose.yml, configs/, .env.example – Deployment assets; copy .env.example to .env before local runs.
  • docs/, examples/ – Reference material and sample agent configurations.

Build, Test, and Development Commands

  • Backend setup: pip install -e ".[dev]" (Python 3.11+). Start stack: docker compose up -d; rebuild images with docker compose build.
  • API-only run (dev): uvicorn agcluster.container.api.main:app --reload after setting ANTHROPIC_API_KEY and other env vars.
  • Backend tests: pytest tests/ (all), pytest tests/unit, pytest tests/integration, or pytest --cov=agcluster.container tests/.
  • UI workspace (src/agcluster/container/ui): npm install, then npm run dev for Next.js, npm run build/npm start for production, npm test for Vitest, npm run test:e2e for Playwright UI flows.
  • Root Playwright smoke (if stack is up): npm test from repo root runs playwright test.

Coding Style & Naming Conventions

  • Python: Black and Ruff with 100-char lines; optional mypy (mypy src/agcluster). Prefer typed function signatures in new code.
  • Tests: filenames test_*.py; classes Test*; functions test_*. Use pytest markers @pytest.mark.unit|integration|e2e and keep fixtures in tests/conftest.py.
  • TypeScript/React: ESLint + TypeScript; follow existing component patterns in src/agcluster/container/ui. Use PascalCase for components, camelCase for hooks/utilities.
  • Tailwind is locked to v3; avoid @apply in new styles—prefer utility classes or scoped CSS modules.

Testing Guidelines

  • Add unit tests for new services/models; integration tests for API surface changes; Playwright for end-to-end UI/agent flows.
  • Aim to keep coverage gaps small (HTML report in htmlcov/ from pytest --cov). Include edge cases around Docker/session lifecycle and file handling.
  • For UI changes, pair Vitest component coverage with Playwright scenarios that validate auth, upload/download, and agent launch flows.
  • Record any required Docker/ENV prerequisites in the test description to keep CI reproducible.

Commit & Pull Request Guidelines

  • Use conventional commits when possible (feat:, fix:, chore:, docs:); keep subjects imperative and under ~72 chars.
  • PRs should include: concise summary, linked issue/Linear ticket, test plan with commands run, and screenshots/GIFs for UI changes.
  • Keep commits scoped; avoid mixing backend and UI refactors unless tightly coupled. Update docs/config examples when behavior changes.

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.