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
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 repository20 other files it gives its agents.
- devtools/AGENTS.mdAGENTS.md
- plugins/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docker/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- kitaru-adapter-developmentSkill
- kitaru-devSkill
- kitaru-docsSkill
- kitaru-importer-developmentSkill
- kitaru-releaseSkill
- kitaru-tests-releaseSkill
- kitaru-ui-api-developmentSkill
- kitaru-adapter-developmentSkill
- kitaru-devSkill
- kitaru-docsSkill
- kitaru-importer-developmentSkill
- kitaru-releaseSkill
- kitaru-tests-releaseSkill
- kitaru-ui-api-developmentSkill
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
- Distinctive: line 27
Before editing a subtree, read the AGENTS.md files along its path that have not already been loaded.
- Distinctive: line 33
If a skill or instruction blocks completion, name and link to its file, quote the relevant clause, and explain the specific unresolved …
- Very specific: line 39
Use uv for Python dependency management and just for the normal command stack.
- Distinctive: line 54
When test output may truncate, save the full log and preserve the test command's exit status.
- Very specific: line 64
Follow US English spelling in code and docs (initialize, serialize, color).
- Distinctive: line 65
Use type hints on public functions and return values.
- Very specific: line 66
Prefer modern annotations (list[str], str | None) over legacy typing aliases.
- Very specific: line 67
Do not use from __future__ import annotations.
- Distinctive: line 74
Follow Google Python style for docstrings.
- Distinctive: line 79
Keep comments focused on why the code exists or why a trade-off was chosen.
- Distinctive: line 80
Treat leading underscore names as private to their module or class.
- Very specific: line 81
Prefer Protocols/ABCs or isinstance over getattr/hasattr for capability checks.
- Distinctive: line 82
Put helpers on the class when tied to its behavior.
- Distinctive: line 84
Prefer Pydantic models for data structures.
- Very specific: line 88
Use pytest for unit and integration tests.
- Very specific: line 92
When you work under tests/, also read tests/AGENTS.md.
- Distinctive: line 102
Never hard-wrap prose in Markdown files.
- Very specific: line 112
Do not add hand-written pages to the FumaDocs app under docs/content/docs/.
- Distinctive: line 115
Only document shipped features.
- Very specific: line 121
Default branch is develop.
- Very specific: line 123
Use short, imperative commit subjects such as Add ...
- Distinctive: line 124
Keep commit titles concise, around 50 characters when practical.
- Very specific: line 125
Never include a [Codex] prefix in PR titles.
- Very specific: line 127
Every PR description should include a Reviewer Notes H2 or H3 section with a concrete reproduction path for reviewers.
- Very specific: line 137
When changing Kitaru UI bundling, frontend smoke testing, Docker dashboard packaging, or release UI selection, read FRONTEND-TESTING.md …
- Very specific: line 142
Do not commit local secrets, .env files, or anything in design/.
- Distinctive: line 145
Do not commit RepoPrompt/orchestration scratch documents such as plans, reviews, handoffs, prompt exports, or ad-hoc coordination docs …
≈ “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.
Files
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 (srclayout); seesrc/kitaru/AGENTS.mdsrc/kitaru/api_models/: versioned request/response DTOs shared by server and SDKsrc/kitaru/client/: async SDK making REST callssrc/kitaru/server/: FastAPI server (API, application, domain, adapters layers)tests/: pytest suite; seetests/AGENTS.mdwhen working thereexamples/: runnable SDK examples, grouped aspython/andtypescript/docs/book/: hand-written GitBook docs; seedocs/book/AGENTS.mddocs/content/docs/: generated SDK reference contentdocs/app/,docs/scripts/,docs/worker/: reference app, generation, and redirect worker codescripts/: OpenAPI generation, doc generation, and UI bundle scriptsdocker/: Dockerfilesdesign/: 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 dependenciesuv sync --extra server: include server componentsjust fix: auto-fix formatting, lint, and YAML issuesjust check: run format, lint, OpenAPI freshness, typecheck, typos, YAML, actions lint, and linksjust test: run the full pytest suitejust test tests/test_file.py::test_name: run one targeted testjust 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 legacytypingaliases. - 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
isinstanceovergetattr/hasattrfor 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 todocs.zenml.io/kitaru. - Generated SDK reference docs live under
docs/content/docs/and are served atsdkdocs.kitaru.ai. kitaru.ai/docs/*is handled by the redirect worker underdocs/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 targetdevelop. During the v2 migration, v2 feature work may target its explicitly named integration branch. maintracks the latest released version only; do not push directly.- Use short, imperative commit subjects such as
Add ...orUpdate .... - 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 NotesH2 or H3 section with a concrete reproduction path for reviewers. - Track deprecated surfaces in
DEPRECATIONS.mdat 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 --adminor 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.
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
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.

