agentleFS
zenml-iozenml-io/kitaru/AGENTS.md

kitaru

AGENTS.md300 starsChanged 2 months agoApache-2.0View on GitHub

Kitaru is a mixed Python + docs repo. It produces the Python package (SDK and server) and the SDK reference docs app. The public marketing site and kitaru.ai runtime live in the sibling zenml-io-v2 repository, not here. For adapter, importer, specialized UI API, docs, CI, and release work, load the matching Kitaru repo skill under .agents/skills/. Keep each logical repo skill available under the same name in .claude/skills/; share host-neutral guidance and diverge only for a documented host-specific reason. Before…

  • Reads credentials

The file

Show its rules and text

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

27 rules. About 0 are common, 13 are distinctive, and 14 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 14

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Before editing a subtree, read the AGENTS.md files along its path that have not already been loaded.

    line 27
  2. Distinctive:

    If a skill or instruction blocks completion, name and link to its file, quote the relevant clause, and explain the specific unresolved …

    line 33
  3. Very specific:

    Use uv for Python dependency management and just for the normal command stack.

    line 39
  4. Distinctive:

    When test output may truncate, save the full log and preserve the test command's exit status.

    line 54
  5. Very specific:

    Follow US English spelling in code and docs (initialize, serialize, color).

    line 64
  6. Distinctive:

    Use type hints on public functions and return values.

    line 65
  7. Very specific:

    Prefer modern annotations (list[str], str | None) over legacy typing aliases.

    line 66
  8. Very specific:

    Do not use from __future__ import annotations.

    line 67
  9. Distinctive:

    Follow Google Python style for docstrings.

    line 74
  10. Distinctive:

    Keep comments focused on why the code exists or why a trade-off was chosen.

    line 79
  11. Distinctive:

    Treat leading underscore names as private to their module or class.

    line 80
  12. Very specific:

    Prefer Protocols/ABCs or isinstance over getattr/hasattr for capability checks.

    line 81
  13. Distinctive:

    Put helpers on the class when tied to its behavior.

    line 82
  14. Distinctive:

    Prefer Pydantic models for data structures.

    line 84
  15. Very specific:

    Use pytest for unit and integration tests.

    line 88
  16. Very specific:

    When you work under tests/, also read tests/AGENTS.md.

    line 92
  17. Distinctive:

    Never hard-wrap prose in Markdown files.

    line 102
  18. Very specific:

    Do not add hand-written pages to the FumaDocs app under docs/content/docs/.

    line 112
  19. Distinctive:

    Only document shipped features.

    line 115
  20. Very specific:

    Default branch is develop.

    line 121
  21. Very specific:

    Use short, imperative commit subjects such as Add ...

    line 123
  22. Distinctive:

    Keep commit titles concise, around 50 characters when practical.

    line 124
  23. Very specific:

    Never include a [Codex] prefix in PR titles.

    line 125
  24. Very specific:

    Every PR description should include a Reviewer Notes H2 or H3 section with a concrete reproduction path for reviewers.

    line 127
  25. Very specific:

    When changing Kitaru UI bundling, frontend smoke testing, Docker dashboard packaging, or release UI selection, read FRONTEND-TESTING.md …

    line 137
  26. Very specific:

    Do not commit local secrets, .env files, or anything in design/.

    line 142
  27. Distinctive:

    Do not commit RepoPrompt/orchestration scratch documents such as plans, reviews, handoffs, prompt exports, or ad-hoc coordination docs …

    line 145

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

Kitaru is a mixed Python + docs repo. It produces the Python package (SDK and server) and the SDK reference docs app. The public marketing site and kitaru.ai runtime live in the sibling zenml-io-v2 repository, not here.

Project Map

  • src/kitaru/: Python package (src layout); see src/kitaru/AGENTS.md
  • src/kitaru/api_models/: versioned request/response DTOs shared by server and SDK
  • src/kitaru/client/: async SDK making REST calls
  • src/kitaru/server/: FastAPI server (API, application, domain, adapters layers)
  • tests/: pytest suite; see tests/AGENTS.md when working there
  • examples/: runnable SDK examples, grouped as python/ and typescript/
  • docs/book/: hand-written GitBook docs; see docs/book/AGENTS.md
  • docs/content/docs/: generated SDK reference content
  • docs/app/, docs/scripts/, docs/worker/: reference app, generation, and redirect worker code
  • scripts/: OpenAPI generation, doc generation, and UI bundle scripts
  • docker/: Dockerfiles
  • design/: gitignored design notes; never commit anything from this directory

For adapter, importer, specialized UI API, docs, CI, and release work, load the matching Kitaru repo skill under .agents/skills/. Keep each logical repo skill available under the same name in .claude/skills/; share host-neutral guidance and diverge only for a documented host-specific reason.

Before editing a subtree, read the AGENTS.md files along its path that have not already been loaded. If a directory has no AGENTS.md but has a CLAUDE.md, read that guidance too.

Task scope and follow-through

Complete the work authorized by the user's request, including relevant verification and final review. Make reasonable assumptions for routine choices and continue independent authorized work while a material decision is pending. Task skills guide execution; they do not independently authorize commits, publication, or release actions. Do not ask again for an action already authorized in the conversation.

If a skill or instruction blocks completion, name and link to its file, quote the relevant clause, and explain the specific unresolved action. Distinguish an explicit requirement from your interpretation. Preserve the repository's human-review and release controls.

For substantial work with independent questions or modules, use subagents when parallel work would save time or improve quality. Assign concrete tasks and distinct file responsibilities for edits; the coordinator integrates and verifies the result. Keep small or tightly coupled work local.

Core Commands

Use uv for Python dependency management and just for the normal command stack.

  • uv sync: install and sync dependencies
  • uv sync --extra server: include server components
  • just fix: auto-fix formatting, lint, and YAML issues
  • just check: run format, lint, OpenAPI freshness, typecheck, typos, YAML, actions lint, and links
  • just test: run the full pytest suite
  • just test tests/test_file.py::test_name: run one targeted test
  • just build: build wheel and sdist locally

During iteration, format changed files and run tests for the changed behavior. just fix rewrites Python files and workflow YAML across the checkout; prefer file-scoped formatters for narrow changes and review incidental edits after a full fix.

Before handing off a code PR, run just check and the relevant test suites. Run the full core suite for shared core behavior or changes spanning several core modules; plugin changes follow plugins/AGENTS.md. Documentation-only changes need relevant documentation checks, not the product test suite. Repeat successful checks only when subsequent edits affect them, failures occur, or unresolved evidence warrants it.

When test output may truncate, save the full log and preserve the test command's exit status. Run this in Bash as a separate command, then inspect the saved log:

bash -o pipefail -c 'just test 2>&1 | tee /tmp/kitaru-tests-yourtask.log'

Replace yourtask with a unique task identifier. The pipeline reports failure if either the tests or log capture fails; a filtered summary alone is not evidence that tests passed.

Coding Style

  • Follow US English spelling in code and docs (initialize, serialize, color).
  • Use type hints on public functions and return values.
  • Prefer modern annotations (list[str], str | None) over legacy typing aliases.
  • Do not use from __future__ import annotations. Pydantic and FastAPI inspect annotations at runtime, and string annotations break that inspection.
  • Name a function or method for the action it performs, not the value it returns. Write _get_bearer_credential, _get_account_name, _get_name_taken_message, not _bearer_credential, _account_name, _name_taken. A bare noun reads as an attribute at the call site.
  • Follow Google Python style for docstrings.
  • Describe the symbol in a docstring, never its callers. Write "Set the account name and contact email", not "Set the identity fields mirrored from an external account". A caller named in a docstring is wrong as soon as a second caller appears.
  • Keep comments focused on why the code exists or why a trade-off was chosen.
  • Treat leading underscore names as private to their module or class.
  • Prefer Protocols/ABCs or isinstance over getattr/hasattr for capability checks.
  • Put helpers on the class when tied to its behavior; use standalone utilities only for generic cross-module functions.
  • Prefer Pydantic models for data structures.

Testing

Use pytest for unit and integration tests. Name files test_*.py and test functions test_*. Mirror source paths where practical. Every bug fix should include a regression test that fails before the fix and passes after it.

When you work under tests/, also read tests/AGENTS.md.

Tests cover ordinary changes. When a change can only be proven against a live stack, such as import, replay, experiment, job, or worker behavior, devtools/ runs one locally: uv run python devtools/seed.py --db-name kitaru_<yourtask> --keep seeds a server end to end. Read devtools/AGENTS.md first, and clean up the stacks and databases you create.

Docs

  • Never hard-wrap prose in Markdown files. Keep each paragraph and each list item on one logical line; use line breaks only for Markdown structure such as headings, blank lines, list items, tables, and fenced code blocks.

Kitaru docs live on three different surfaces:

  • Hand-written docs are GitBook Markdown in docs/book/, published to docs.zenml.io/kitaru.
  • Generated SDK reference docs live under docs/content/docs/ and are served at sdkdocs.kitaru.ai.
  • kitaru.ai/docs/* is handled by the redirect worker under docs/worker/.

Do not add hand-written pages to the FumaDocs app under docs/content/docs/; they belong in docs/book/. Do not hand-edit generated reference output.

Only document shipped features.

The quickstart example lives in examples/python/pydantic_ai_ticket_resolver/. Its README owns clone, frozen installation, local workspace setup, agent registration, worker startup, and the checked-in trace import. The conceptual quickstart in docs/book/getting-started/quickstart.md and the detailed tutorial in docs/book/tutorials/returns-agent/ explain the same method without copying that setup contract. When changing example commands, fixtures, behavior, or terminology, inspect both documentation paths and validate the example contract. Apply the same check in the other direction when changing either documentation path.

Git, Commits, and PRs

  • Default branch is develop; PRs normally target develop. During the v2 migration, v2 feature work may target its explicitly named integration branch.
  • main tracks the latest released version only; do not push directly.
  • Use short, imperative commit subjects such as Add ... or Update ....
  • Keep commit titles concise, around 50 characters when practical.
  • Never include a [Codex] prefix in PR titles.
  • Link related issues when applicable.
  • Every PR description should include a Reviewer Notes H2 or H3 section with a concrete reproduction path for reviewers.
  • Track deprecated surfaces in DEPRECATIONS.md at the repository root.
  • Never merge a PR that has not received an approving human review — this includes dependabot bumps and trivial changes, and it must not be bypassed with gh pr merge --admin or similar. Documented review of every change is part of our change-management controls (relevant to compliance frameworks such as SOC 2). Prepare the PR, request review, and wait.

CI/CD

Python CI runs on push/PR to develop; docs CI runs for docs/reference-related changes.

When changing Kitaru UI bundling, frontend smoke testing, Docker dashboard packaging, or release UI selection, read FRONTEND-TESTING.md first.

Security and Generated Files

Do not commit local secrets, .env files, or anything in design/. Use uv, not raw pip, for dependency management to keep environments reproducible.

Do not commit RepoPrompt/orchestration scratch documents such as plans, reviews, handoffs, prompt exports, or ad-hoc coordination docs unless the user explicitly asks for that artifact to be part of repository history.

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.