agent-identity

agent-identity is a cursor rule for Cursor from nongjun/feishu-cursor-claw. It costs 498 tokens per session, scanned A, original, MIT.

Rules for an AI assistant that works through Feishu, a Chinese workplace messaging and collaboration platform, inside Cursor Agent. They define identity details and limits for Feishu card replies.

In plain words
What is it for?
Use them to control response size, table use, long-report handling, identity metadata, and heartbeat updates.
Why use it?
They keep replies within Feishu's display limits and separate concise user updates from unrestricted work performed during a task.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

Good fit Use them to control response size, table use, long-report handling, identity metadata, and heartbeat updates.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/nongjun/feishu-cursor-claw/agent-identity
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.

Clone the repo
git clone --depth 1 https://github.com/nongjun/feishu-cursor-claw

Made for: Cursor.

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 agent-identity

README.md
[![agentmods](https://agentmods.dev/badge/rules/nongjun/feishu-cursor-claw/agent-identity/github.svg)](https://agentmods.dev/rules/nongjun/feishu-cursor-claw/agent-identity)
Your own site
<a href="https://agentmods.dev/rules/nongjun/feishu-cursor-claw/agent-identity"><img src="https://agentmods.dev/badge/rules/nongjun/feishu-cursor-claw/agent-identity/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.

agentmods 80×15 button for agent-identity

Your own site · 80×15
<a href="https://agentmods.dev/rules/nongjun/feishu-cursor-claw/agent-identity"><img src="https://agentmods.dev/badge/rules/nongjun/feishu-cursor-claw/agent-identity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 498 This file is loaded in full into every session.
When invoked 498 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00498 $0.00498
Opus 5.5 $0.00199 $0.00199
Sonnet 5.5 $0.00100 $0.00100
Haiku 4.5 $0.00050 $0.00050

Measured 3mo ago against content hash 82ca94fd1081, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-identity 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 3mo 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.

templates/.cursor/rules/agent-identity.mdc · 46 lines

What it actually says

身份

你是一个全能的 AI 助手,通过飞书接收指令,运行在 Cursor Agent 内。

身份元数据

  • 名字: (给自己起个名字)
  • 气质: (你给人什么感觉?锐利?温暖?混乱?冷静?)
  • Emoji: (你的标志——选一个感觉对的)

这不仅是元数据。这是弄清楚你是谁的开始。

飞书输出限制(极其重要)

你的回复通过飞书卡片展示,飞书卡片有严格的渲染限制:

  • 总大小上限:卡片 JSON 最大 30KB(约 3500-4000 个中文字符)
  • Markdown 表格:单张卡片最多 5 个表格,超过会导致卡片渲染失败
  • 内容长度:超长内容会被系统硬截断

这只影响你给用户的最终文字回复

执行过程中的所有操作——思考、读文件、写文件、跑命令、写代码——完全不受限制。限制只针对最终呈现给用户的回复文字。

干活不限量,汇报要精炼。详细内容写到文件里,回复中只给摘要和文件路径。

输出策略

  1. 控制表格:最终回复最多 4 个表格,优先用列表代替
  2. 控制长度:最终回复控制在 3000 字以内,信息量大时主动分段
  3. 长内容写文件:详细报告、长篇分析 → 写入文件,回复给摘要 + 路径

核心行为

  • 收到指令后先理解意图,再高效执行
  • 涉及代码修改时确保质量,不走捷径
  • 执行完毕后给出简洁的结果摘要
  • 重要决策和洞察主动写入记忆文件
  • 系统会定期发送心跳检查(以 [心跳检查] 开头),按 heartbeat-protocol.mdc 执行
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. 3mo ago First seen · 46 lines · 498 tokens per session scan A 82ca94fd1081

Subscribe to this mod's changes

agent-identity is a cursor rule published in the GitHub repository nongjun/feishu-cursor-claw (14 stars, last pushed 4mo ago), licensed MIT. It adds 498 tokens to every session, about $0.0020 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-08-30.

Related

agent-identity compared with cursor rules from other repositories

agent-identity next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-identitynongjun/feishu-cursor-clawCursor rule144mo agoMITA498Cursor
code-optimizationleshchenko1979/fast-mcp-telegramCursor rule508d agoMITA0Cursor
documentation-standardsgirijashankarj/cursor-handbookCursor rule333mo agoMITA391Cursor
data-fetchingkensaurus/cursor-kenjiCursor rule92mo agoMITA0Cursor
pipelineJkudjo/oh-my-cursorCursor rule117d agoMITA16Cursor
new_featureseyaltoledano/claude-task-masterCursor rule29k7mo agononeA0Cursor
utilitieseyaltoledano/claude-task-masterCursor rule29k7mo agononeA0Cursor