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 rules/linhai0872/agno-agent-starter/agentsgit clone --depth 1 https://github.com/linhai0872/agno-agent-starterWrote 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/linhai0872/agno-agent-starter/agents)<a href="https://agentmods.dev/rules/linhai0872/agno-agent-starter/agents"><img src="https://agentmods.dev/badge/rules/linhai0872/agno-agent-starter/agents.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00480 |
| Opus 5 | $0.00000 | $0.00240 |
| Sonnet 5 | $0.00000 | $0.00096 |
| Haiku 4.5 | $0.00000 | $0.00048 |
Grade A, and why
agents 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 3d 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.
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.
What it actually says
Agent 开发规范
目录结构
app/agents/{agent_name}/
├── __init__.py # 导出
├── agent.py # Agent 定义 + ModelConfig
├── prompts.py # System Prompt
├── schemas.py # Pydantic Schema(Structured Output)
└── tools.py # 工具函数(可选)
创建流程
- 创建目录:
mkdir -p app/agents/my_agent - 实现 agent.py(参考模板)
- 在
app/agents/__init__.py注册
Agent 模板
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from app.models import ModelConfig, create_model
AGENT_MODEL_CONFIG = ModelConfig(
model_id="google/gemini-2.5-flash-preview-09-2025",
temperature=0.2,
max_tokens=8192,
)
def create_my_agent(db: PostgresDb) -> Agent:
return Agent(
id="my-agent", # kebab-case
name="My Agent",
model=create_model(AGENT_MODEL_CONFIG),
db=db,
instructions=SYSTEM_PROMPT,
tools=[...],
markdown=True,
)
Structured Output
from pydantic import BaseModel, Field
class MyOutput(BaseModel):
result: str = Field(..., description="结果")
confidence: float = Field(..., ge=0, le=1)
agent = Agent(
output_schema=MyOutput,
use_json_mode=True,
)
注册
# app/agents/__init__.py
from app.agents.my_agent.agent import create_my_agent
agents.append(create_my_agent(db))
关键参数
| 参数 | 说明 |
|---|---|
| id | Agent ID,kebab-case,决定 API URL |
| model | 模型实例,使用 create_model() |
| db | PostgresDb 连接 |
| instructions | System Prompt |
| tools | 工具函数列表 |
| output_schema | Pydantic Model(可选) |
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.
- 3d ago First seen · 83 lines · 0 tokens per session scan A 015271ea04d6
agents is a cursor rule published in the GitHub repository linhai0872/agno-agent-starter (6 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 480 tokens. 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-31.
Other cursor rules, from other repositories
agent-development
Guidelines for developing pydantic-ai agents, tools, and handlers.
code-patterns
Python code style and recurring patterns (config, logging, errors, paths).
python-style
Python 编码风格强制约束——AI 写代码时必须遵守的格式指令.
backend-python
Python and FastAPI standards for the backend.
02-python-standards
Python coding standards, libraries, and concurrency safety.
sqlmodel
Satisfying the type checker when working with SQLModel.