Borrowing it
Nothing to install: this file belongs to Artesiana/agent2. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Artesiana/agent2/main/.cursorrulesgit clone --depth 1 https://github.com/Artesiana/agent2Wrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/artesiana/agent2/cursorrules)<a href="https://agentmods.dev/rules/artesiana/agent2/cursorrules"><img src="https://agentmods.dev/badge/rules/artesiana/agent2/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/artesiana/agent2/cursorrules"><img src="https://agentmods.dev/badge/rules/artesiana/agent2/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00399 | $0.00399 |
| Opus 5.5 | $0.00160 | $0.00160 |
| Sonnet 5.5 | $0.00080 | $0.00080 |
| Haiku 4.5 | $0.00040 | $0.00040 |
Grade A, and why
cursorrules scanned grade A with 1 finding 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 2mo ago.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Docker: docker compose up -d && curl localhost:8001/health What it actually says
Agent2 — Production Runtime for AI Agents
What this repo is
Agent2 is a framework for building production AI agents with typed HTTP APIs. PydanticAI handles the agent loop. Agent2 handles everything else: API, auth, pause/resume, approvals, provider routing, knowledge search.
Key patterns
- Agents live in agents// with: schemas.py, agent.py, tools.py, config.yaml, main.py
- create_agent() from shared/runtime.py is the ONLY way to build agents
- create_app() from shared/api.py is the ONLY way to build FastAPI apps
- Use instructions= (not system_prompt=) for agent prompts
- Use toolsets= for MCP server connections
- Output schemas are Pydantic BaseModel classes passed as output_type=
Code style
- Python 3.12+, type hints on all signatures
- from future import annotations in all shared/ modules
- RFC 7807 error responses via ProblemError
- Config uses frozen dataclasses with from_env(), not pydantic-settings
- OpenRouter models: OpenAIChatModel + OpenRouterProvider
Architecture rules
- shared/ is framework code — never modify it for agent-specific logic
- Each agent is a separate Docker service
- Prompts are code-first; Langfuse is optional for observability
- Knowledge is in R2R, accessed via Knowledge MCP
Testing
- uv run pytest tests/ -v (unit tests, no Docker needed)
- Docker: docker compose up -d && curl localhost:8001/health
Creating a new agent
- cp -r agents/_template agents/my-agent
- Edit schemas.py (Pydantic output model)
- Edit agent.py (create_agent + tools)
- Edit config.yaml (name, model, collections)
- Edit main.py (create_app call)
- Add to docker-compose.yml
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.
- 2mo ago First seen · 40 lines · 399 tokens per session scan A 8087baa08bc4
cursorrules is a cursor rule published in the GitHub repository Artesiana/agent2 (37 stars, last pushed 6mo ago), licensed MIT. It adds 399 tokens to every session, about $0.0016 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
cursorrules compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cursorrulesArtesiana/agent2 | Cursor rule | 37 | 6mo ago | MIT | A | 399 | Cursor |
| cursor-aidumemmonkey2jack/aiduMEI | Cursor rule | 21 | 2d ago | MIT | A | 0 | Cursor |
| desktop-release-gateopensquad-ai/opensquad | Cursor rule | 7 | 17d ago | MIT | A | 0 | Cursor |
| branch-dev-mainopensquad-ai/opensquad | Cursor rule | 7 | 17d ago | MIT | A | 187 | Cursor |
| commitPukakiii/Job-Agent | Cursor rule | 2 | 4mo ago | none | A | 123 | Cursor |
| rolesPukakiii/Job-Agent | Cursor rule | 2 | 4mo ago | none | A | 23 | Cursor |
| global-rulesPukakiii/Job-Agent | Cursor rule | 2 | 4mo ago | none | A | 17 | Cursor |