Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/srtab/daiv/agents-mdgit clone --depth 1 https://github.com/srtab/daivWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01359 | $0.01359 |
| Opus 5 | $0.00679 | $0.00679 |
| Sonnet 5 | $0.00272 | $0.00272 |
| Haiku 4.5 | $0.00136 | $0.00136 |
Grade A, and why
daiv AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to agents when working with code in this repository.
Commands (verified)
make test # unit tests + coverage; CI gate
make lint-fix # check + fix lint/format in one step — prefer this over make lint
make lint # check only (no fixes); CI gate
make lint-typing # ty, daiv/ only
# Single test / pattern
uv run pytest tests/unit_tests/accounts/test_views.py
uv run pytest tests/unit_tests/ -k "test_notes"
# Integration tests (real LLM calls; need docker/local/app/config.secrets.env: LLM key + GitLab creds)
make integration-tests
# Translations
make makemessages && make compilemessages
asyncio_mode = "auto"— no@pytest.mark.asyncioneeded.- Python 3.14 only (
requires-python = ">=3.14,<3.15"). - Never edit
pyproject.tomlby hand — useuv add <pkg>==<version>/uv remove <pkg>(deps are==-pinned;parableis git-pinned, not on PyPI).
Repo map (only what's non-obvious)
daiv/automation/— LangGraph/deepagents agent: tools (agent/tools/), skills (agent/skills/), deferred tools (agent/deferred/), middleware (agent/middlewares/)daiv/codebase/— GitLab/GitHub clients (clients/), webhooks,.daiv.ymlrepo configdaiv/mcp_server/+daiv/jobs/— MCP sub-app (submit_job/get_job_status) +run_job_task(MCP + webhooks)daiv/core/— sandbox client, Redis, shared constantsdaiv/daiv/settings/components/— split settings;common.pyhasINSTALLED_APPSevals/— eval suite, not run bymake test- UI rules live in
DESIGN.md(icon system, layout tokens, floating surfaces) anddocs/(mkdocs) — consult before touching templates/CSS.
Invariants / footguns
- Test imports —
pythonpath = ["daiv", "."]; in tests importfrom automation.agent.graph import ...(nodaiv.prefix). - Tools can't mutate
runtime.state— return aCommand(update={...}, messages=[ToolMessage(...)]); in tests unpackisinstance(result, Command). - Auth — email signup disabled (
AccountAdapter.is_open_for_signup→False);AdminRequiredMixinneedsuser.is_admin;APIKey.objects.create_key(...)is async. run_job_taskrequires a non-empty UUIDthread_id— theActivityrow and checkpointer share it; missing breaks chat resume.- Bot labels (
daiv/daiv-max/daiv-auto) live indaiv/core/constants.py— don't hardcode. - Per-repo agent config — agent reads
.agents/AGENTS.md, skills from.agents/skills/, subagents from.agents/subagents/; a custom skill shadows a same-named built-in. - Repository memory —
MemoryEntryrows are append-only truth;RepositoryMemory.contentis a render cache frommemory/render.py, never model-generated; enforcememory_max_*viaprune_to_budget, not by slicing. - Sandbox wire schemas —
daiv/core/sandbox/schemas.dump.jsonis canonical;tests/unit_tests/core/sandbox/test_schema_consistency.pyfails on drift. Regenerate from the daiv-sandbox repo after changingdaiv_sandbox/schemas.py. - Skill asset paths resolve to
<location>/<skill>/..., not the bash CWD — invoke skill scripts by absolute path. - PEP 758 —
except E1, E2:is valid; ruff canonicalises it unparenthesised — don't "fix" it back to parens (pure churn). - Django — test settings module is
daiv.settings.test;NINJA_SKIP_REGISTRY=trueis auto-set in tests. - Views by content type — HTML = CBVs in
daiv/<app>/views.py; JSON = a django-ninjaRouterindaiv/<app>/api/views.py(orapi/router.py), registered indaiv/daiv/api.py. Filtered lists usedjango_filters.FilterSet+FilterView(strict=False), not hand-rolledrequest.GET/Paginator. - Dependency upgrade blockers (re-verify first): redis 8.x blocked by
redisvl(vialanggraph-checkpoint-redis); mcp 2.0 blocked bylangchain-mcp-adapters(removes v1 import paths used inmcp_server/+automation/agent/mcp/). Deps are==-pinned, souv lock --upgrade --dry-runshows only transitive updates — check the PyPI JSON API per direct dep. - Detailed behaviour lives in module docstrings, not here — e.g.
automation/agent/chat_models.py,core/ui_events.py,chat/api/relay.py. Read the relevant docstring before changing that area.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 65 lines · 1,359 tokens per session scan A a5d04e991821
daiv AGENTS.md is an instructions file published in the GitHub repository srtab/daiv (22 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,359 tokens to every session, about $0.0068 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
flock AGENTS.md
Instructions for Onelevenvy/flock, covering agents.md, project overview, build & development commands, rust backend and build the cli.
TradingAgents-Telegram CLAUDE.md
Instructions for IvanWng97/TradingAgents-Telegram, covering tradingagents-telegram — architecture reference, layout, architecture (for code reviewers), request lifecycle (manual /watch tap) and state ownership.
flock CLAUDE.md
Instructions for Onelevenvy/flock, covering claude.md, project overview, build & development commands, rust backend and build the cli.
langchain AGENTS.md
Instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
opik python_sdk.instructions.md
Instructions for comet-ml/opik, covering opik python sdk code review guidelines, 🔧 core architecture principles, three-layer architecture, execution paths and 📋 api design standards.
deepagents AGENTS.md
Instructions for langchain-ai/deepagents, covering global development guidelines for the deep agents monorepo, corridor security analysis, development workflow, suppressing ruff rules and pr conventions.