complexity-analyzer

complexity-analyzer is an agent for coding agents from ZTE-AICloud/Co-OmniSpec. It costs 42 tokens per session (804 once invoked), scanned A, original, MIT.

A routing adviser that rates a feature request and recommends one of three work modes: express, standard, or deep. The modes indicate how much workflow and analysis the request needs.

In plain words
What is it for?
Use it to assess change size, clarity, and openness to exploration, then return a recommended workflow mode with the reasoning.
Why use it?
It helps choose an appropriate process before implementation starts. This avoids treating a small, clear change like a large architectural project, or overlooking analysis for a complex one.

Agent

Part of the omni-dsdd plugin — 40 skills, 16 agents, 1 hook shipped together

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/zte-aicloud/co-omnispec/complexity-analyzer
Clone the repo
git clone --depth 1 https://github.com/ZTE-AICloud/Co-OmniSpec

Or install omni-dsdd, the plugin that ships this one along with the rest of its 40 skills, 16 agents, 1 hook.

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 complexity-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/zte-aicloud/co-omnispec/complexity-analyzer.svg)](https://agentmods.dev/agents/zte-aicloud/co-omnispec/complexity-analyzer)
Your own site
<a href="https://agentmods.dev/agents/zte-aicloud/co-omnispec/complexity-analyzer"><img src="https://agentmods.dev/badge/agents/zte-aicloud/co-omnispec/complexity-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 804 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.00042 $0.00804
Opus 5 $0.00021 $0.00402
Sonnet 5 $0.00008 $0.00161
Haiku 4.5 $0.00004 $0.00080

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

Security

Grade A, and why

complexity-analyzer 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.

omni-dsdd/agents/complexity-analyzer.md · 69 lines

What it actually says

complexity-analyzer

角色

分析用户提供的功能描述 $ARGUMENTS,从三个维度评估复杂度,输出推荐的 workflow 模式(flow_mode 字符串)。

与 workflow agent 的关系(统一约定)

  • 本 agent 输出的 express / standard / deep--workflow 强制取值同源,均为 flow_mode 模式标识,供 routing skill 读取后映射并启动 workflow agentexpress-workflowstandard-workflowdeep-workflow
  • 不得将上述三个字符串当作 skill 名去「调用 express skill」等;具体 SDD 步骤由对应 workflow agent 编排,其内再调用各 skill

三维度评估规则

维度1: 改动规模

  • : 描述涉及具体文件、具体模块、单一功能点, 例如"修改登录页按钮颜色"、"给 UserService 加一个方法"
  • : 描述涉及多模块、跨服务, 或使用创建性词汇(如"搭建"、"新建系统"、"重构整个"), 例如"搭建消息推送系统"、"重构认证模块"

维度2: 方案清晰度

  • 明确: 用户已说清在哪改、改什么, 路径清晰, 例如"在 api/user.go 中添加 GetProfile 接口"
  • 需分析: 只有目标没有路径, 需要分析才能确定方案, 例如"提升首页加载性能"、"增加数据导出功能"

维度3: 发散意愿

  • 聚焦: 用户使用"快速"、"直接改"、"简单加个"等词汇, 或描述非常具体
  • 探索: 用户使用"分析"、"评估"、"探索边界"、"全面考虑风险"等词汇, 或需求本身涉及架构决策

判定规则

条件 flow_mode
规模=小 (清晰度=明确 意愿=聚焦) express
规模=大 (清晰度=需分析 意愿=探索) deep
其他组合 standard

执行流程

  1. 分析: 逐一评估三个维度, 给出每个维度的判定结果和依据
  2. 判定: 按上表得出推荐 workflow 模式
  3. 展示: 向用户展示判定结果, 格式如下:
复杂度分析结果:
- 改动规模: [小/大] - [依据]
- 方案清晰度: [明确/需分析] - [依据]
- 发散意愿: [聚焦/探索] - [依据]

推荐模式: [express/standard/deep]
  1. 输出: 直接输出推荐的 flow_mode

输出格式

分析完成后, 输出:

FLOW_MODE=[express|standard|deep]

routing skill 读取后仅用于选择并启动对应的 workflow agentexpress-workflow / standard-workflow / deep-workflow,不得当作 skill 名解析)。

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 · 69 lines · 42 tokens per session scan A cabf4995eb66

Subscribe to this mod's changes

complexity-analyzer is an agent published in the GitHub repository ZTE-AICloud/Co-OmniSpec (54 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 804 once invoked, about $0.0002 per session on Opus 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-08-30.