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 agents/evalstate/fast-agent/promptinggit clone --depth 1 https://github.com/evalstate/fast-agentWhat 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.02080 |
| Opus 5 | $0.00000 | $0.01040 |
| Sonnet 5 | $0.00000 | $0.00416 |
| Haiku 4.5 | $0.00000 | $0.00208 |
Grade A, and why
prompting 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prompting Agents
fast-agent provides a flexible MCP based API for sending messages to agents, with convenience methods for handling Files, Prompts and Resources.
Read more about the use of MCP types in fast-agent in the MCP overview.
Sending Messages
The simplest way of sending a message to an agent is the send method:
response: str = await agent.send("how are you?")
This returns the text of the agent's response as a string, making it ideal for simple interactions.
You can attach files by using Prompt.user() method to construct your message:
from fast_agent import Prompt
from pathlib import Path
plans: str = await agent.send(Prompt.user("Summarise this PDF", Path("secret-plans.pdf")))
Prompt.user() automatically converts content to the appropriate MCP Type. For example, image/png becomes ImageContent and application/pdf becomes an EmbeddedResource.
You can also use MCP Types directly - for example:
from mcp_types import ImageContent, TextContent
mcp_text: TextContent = TextContent(type="text", text="Analyse this image.")
mcp_image: ImageContent = ImageContent(type="image", mime_type="image/png", data=base_64_encoded)
response: str = await agent.send(Prompt.user(mcp_text, mcp_image))
Note: use
Prompt.assistant()to produce messages for theassistantrole.
Using generate() and multipart content
The generate() method allows you to access multimodal content from an agent, or its Tool Calls as well as send conversational pairs.
from fast_agent import FastAgent, Prompt, PromptMessageExtended
message = Prompt.user("Describe an image of a sunset")
response: PromptMessageExtended = await agent.generate([message])
print(response.last_text()) # Main text response
The key difference between send() and generate() is that generate() returns a PromptMessageExtended object, giving you access to the complete response structure:
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.
- 2d ago First seen · 297 lines · 0 tokens per session scan A f0e0064700d6
prompting is an agent published in the GitHub repository evalstate/fast-agent (3,904 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,080 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-30.
Other agents, from other repositories
agentlas-core-engine-meta-agent
Use this agent when the user asks for /meta-agent, a single agent builder, multi-agent team builder, or packaging existing agents into Agentlas architecture.
Explore
Fast read-only codebase & docs exploration. Returns structured findings, never raw file dumps.
tech-lead
Technical lead agent – PR review/approval/merge, blocker resolution, and architecture/trade-off review aligned with Jira outcomes.
unittest-generator
Use this agent when you need to create unit tests for your code in unittest.TestCase format, organized in a tests folder with concept-based subfolders. Examples: Context: User has just written a new authentication module and needs comprehensive unit tests. user: 'I just finished writing my user authentication…
external-system-integration-expert
你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.
DocScribe
Write docs/ prose for a completed change, in caveman style, per the repo's Documentation Update Protocol. Use after a change lands to update docs/architecture.md, docs/ .md, README, or docs/AGENTS.md — the Rule-6 delegation target (main agent must NOT edit docs/ directly). Self-contained — give it the diff + target…