generic-agent

generic-agent is an agent for coding agents from liusencomic-cyber/douyin-agent-kit. It costs 0 tokens per session (477 once invoked), scanned A, original, MIT.

A general adapter for connecting a local coding agent, such as Claude Code or Codex, to the Douyin Agent Kit. It explains how the agent can use vision tools, local language models, confirmations, scheduling, and output locations.

In plain words
What is it for?
Running the kit from a local agent, checking the setup, processing Douyin content, optionally scheduling batch tasks, and saving results to an Obsidian inbox or local output folder.
Why use it?
It provides one setup path when the agent does not have its own dedicated integration. It also defines safer handling for logins, downloads, batch synchronization, and archiving.

Agent

Install

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.

agentmods
npx agentmods add agents/liusencomic-cyber/douyin-agent-kit/generic-agent
Clone the repo
git clone --depth 1 https://github.com/liusencomic-cyber/douyin-agent-kit

Wrote 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.

agentmods badge for generic-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/liusencomic-cyber/douyin-agent-kit/generic-agent.svg)](https://agentmods.dev/agents/liusencomic-cyber/douyin-agent-kit/generic-agent)
Your own site
<a href="https://agentmods.dev/agents/liusencomic-cyber/douyin-agent-kit/generic-agent"><img src="https://agentmods.dev/badge/agents/liusencomic-cyber/douyin-agent-kit/generic-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 477 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00477
Opus 5 $0.00000 $0.00238
Sonnet 5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00048

Measured 5d ago against content hash 83f1c11676d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generic-agent 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 5d 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.

agents/generic-agent.md · 39 lines

What it actually says

通用 Agent 接入说明(generic-agent)

适用于任意本地 Agent,包括 Claude Code / Codex / 其他 CLI 编码 Agent。 通用能力契约见 adapter-contract.md

若你的 Agent 不在 agents/ 单独成文,按本文接入即可;设置向导 (setup/setup_douyin_agent_kit.py)选择 agent: genericclaude-code / codex 时生成的 AGENT_SETUP.md 也指向本文。

视觉调用

  • 默认配置 vision.ocr_provider: agent-vision 意为"由 Agent 提供视觉"。 你的 Agent 有视觉工具(能读图/识别文字)就用它;如你的 Agent 无此能力, 把 ocr_provider 改为 tesseract(本地 OCR,需安装 tesseract)或 none
  • 语义判断走本地 Ollama(vision.judge_provider: ollamaollama pull qwen2.5:7b),与你的 Agent 无关。

确认交互

  • 下载、扫码登录、批量同步、归档/投递前,先向用户确认。
  • 收藏/博主批量操作低频执行(每天最多一次),遇风控即停。

定时(可选)

  • 你的 Agent 支持定时/后台任务时,可为批量同步配置每日任务; 否则手动触发,并把 features.favorites_sync / features.creator_distill 如实设为 false

投递

  • 归档笔记写入 archive.vault_inbox(Obsidian Vault 收件箱路径)。
  • 未启用归档时,转录汇总/判断结果写入脚本输出路径。

脚本运行

  • 系统 python3;依赖:python3 -m pip install -r requirements.txt (PEP 668 环境加 --break-system-packages)。
  • 先跑 python3 setup/checks.py,确认无 MISSING 再运行主流程。
Changes

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.

  1. 5d ago First seen · 39 lines · 0 tokens per session scan A 83f1c11676d8

Subscribe to this mod's changes

generic-agent is an agent published in the GitHub repository liusencomic-cyber/douyin-agent-kit (2 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 477 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.