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 skills add DuanZGit/D-Hub --skill agnes-multimodalgit clone --depth 1 https://github.com/DuanZGit/D-HubWrote 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/skills/duanzgit/d-hub/agnes-multimodal)<a href="https://agentmods.dev/skills/duanzgit/d-hub/agnes-multimodal"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/agnes-multimodal/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/skills/duanzgit/d-hub/agnes-multimodal"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/agnes-multimodal.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.00144 | $0.01038 |
| Opus 5.5 | $0.00058 | $0.00415 |
| Sonnet 5.5 | $0.00029 | $0.00208 |
| Haiku 4.5 | $0.00014 | $0.00104 |
Grade A, and why
agnes-multimodal 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 26d 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
Agnes 多模态(图像 + 视频)
图像(pi 原生入口,优先)
扩展 ~/.pi/agent/extensions/agnes-media 把 Agnes/agnes-image-2.5-flash 注册进 image 模型目录。
任何会话的 codemode 里直接调(默认已开 +codemode):
const painter = await models.getModelOfType("image", "Agnes", "agnes-image-2.5-flash");
const result = await models.generateImages(painter, {
input: [
{ type: "text", text: "一只在沙发上打盹的橘猫,水彩风格,1K" },
// 图生图/多参考帧:加 { type: "image", data: "<base64>", mimeType: "image/png" }
],
});
if (result.stopReason === "error") { console.log(result.errorMessage); }
for (const block of result.output) {
if (block.type === "image") image(block); // 结果名会带临时文件路径
}
- 出图尺寸档位:改扩展里
model.extraParams.size(1K/2K/3K/4K),不传默认 1K - key 自动走
~/.agents-env/get-key.sh PI_AGNES_API_KEY(和 models.json 的 Agnes chat 同源) - 当前免费期;定价 1K/2K/3K/4K 档 ¥70/100/140/160 每千张
视频(CLI,走限时免费模型)
pi 的模型目录没有 video 类型,视频走 CLI。CLI 固定用 agnes-video-2.5-flash:限时免费 ¥0/秒,仅 720P(付费版 agnes-video-2.5 不碰;用户要求只用免费通道)。建任务→轮询→下载 mp4:
~/.pi/agent/bin/agnes-video "海浪拍打礁石,低角度慢镜头" \
--seconds 5 --size 720P --aspect 16:9 --out ~/Videos
# 图生视频:加 --i2i <首帧URL>(可配 --i2i-end <尾帧URL>)
# 参考模式:--ref <图/音频/视频URL> 可多次;--v2v <视频URL>(可配 --audio)
# 成功 stdout 一行本地 mp4 路径;--json 输出 {video_id, path}
- 时长 4–12s;免费 flash 仅 720P(传其它档位 CLI 直接报错)
- 队列满时服务端返 503
video_queue_full,稍后重试即可,不是配置问题 - 长任务:生成要几分钟,用
bg_run跑,别用同步 bash 卡住 - 轮询文档:
GET https://api.agnes-ai.cn/agnesapi?video_id=X&model_name=agnes-video-2.5-flash
出片后
- 图片/视频结果路径打给用户(可点链接,绝对路径)
- 免费期间视频也不用为花钱确认,图像同样免费
- 生图模型
agnes-image-2.5-flash免费期;agnes-3.0-flash是纯对话模型,不出图不出片 agnes-3.0-flash能看图,但必须走/v1/chat/completions(api 类型openai-completions):/v1/responses和/v1/messages两个入口的图片转换是坏的,带图必 400(2026-10-09 实测,报错里图片变成{'type':'unknown'});models.json + agnes-media 扩展里该模型的 api 已固定为openai-completions,改回去就会复爆
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.
- 26d ago First seen · 55 lines · 144 tokens per session scan A e1c2f48d1974
agnes-multimodal is a skill published in the GitHub repository DuanZGit/D-Hub (0 stars, last pushed yesterday), licensed MIT. It adds 144 tokens to every session and 1,038 once invoked, about $0.0006 per session on Opus 5.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-11-10.
agnes-multimodal compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agnes-multimodalDuanZGit/D-Hub | Skill | 0 | yesterday | MIT | A | 144 | Claude Code |
| edgeone skill scannerTencent/AI-Infra-Guard | Skill | 7.9k | 3d ago | Apache-2.0 | A | 148 | Claude Code, Codex |
| babysitkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 45 | Claude Code |
| rubber-duckkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 161 | Claude Code, Codex |
| project-wikiGeminiLight/MindOS | Skill | 707 | yesterday | MIT | A | 63 | Claude Code, Codex |
| mindos-zhGeminiLight/MindOS | Skill | 707 | yesterday | MIT | A | 490 | Claude Code |
| mindosGeminiLight/MindOS | Skill | 707 | yesterday | MIT | A | 136 | Claude Code |