tg-search

tg-search is a skill for Claude Code from sanjar-x/claudegram. It costs 59 tokens per session (330 once invoked), scanned A, original, MIT.

A search tool for finding messages across Telegram or within one selected chat. Telegram is a messaging service where people communicate in chats and groups.

In plain words
What is it for?
Use it to search Telegram by text, optionally restrict the search to a named chat, and view matching messages sorted from newest to oldest.
Why use it?
It avoids manually scrolling through conversations to locate older messages about a topic.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claudegram plugin — 7 skills, 3 commands, 5 hooks, 1 MCP server shipped together

Good fit Use it to search Telegram by text, optionally restrict the search to a named chat, and view matching messages sorted from newest to oldest.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanjar-x/claudegram/tg-search
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.

Any agent
npx skills add sanjar-x/claudegram --skill tg-search
Clone the repo
git clone --depth 1 https://github.com/sanjar-x/claudegram

Made for: Claude Code.

Or install claudegram, the plugin that ships this one along with the rest of its 7 skills, 3 commands, 5 hooks, 1 MCP server.

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 tg-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanjar-x/claudegram/tg-search/github.svg)](https://agentmods.dev/skills/sanjar-x/claudegram/tg-search)
Your own site
<a href="https://agentmods.dev/skills/sanjar-x/claudegram/tg-search"><img src="https://agentmods.dev/badge/skills/sanjar-x/claudegram/tg-search/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 tg-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/sanjar-x/claudegram/tg-search"><img src="https://agentmods.dev/badge/skills/sanjar-x/claudegram/tg-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 330 The whole file, excluding the scripts and references it only reads on demand.
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.00059 $0.00330
Opus 5 $0.00030 $0.00165
Sonnet 5 $0.00012 $0.00066
Haiku 4.5 $0.00006 $0.00033

Measured 12d ago against content hash c4e07063aa78, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

tg-search 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 12d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • tg-search — 100% identical, 0 lines differ
skills/tg-search/SKILL.md · 27 lines

What it actually says

Найди сообщения в Telegram по запросу: $query.

Если задан $chat — ограничь поиск им. Иначе ищи глобально.

Алгоритм:

  1. Если $chat начинается с @ — преобразуй через mcp__plugin_claudegram_claudegram__resolve_username в id.
  2. Вызови mcp__plugin_claudegram_claudegram__search_messages с query="$query", chat=<id или None>, limit=30.
  3. Выведи результаты таблицей: дата | чат | отправитель | фрагмент текста (≤100 символов).
  4. Сортируй от новых к старым.

Если результатов нет — предложи переформулировать или расширить поиск (убрать фильтр чата). Не выдумывай результаты.

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. 12d ago First seen · 27 lines · 59 tokens per session scan A c4e07063aa78

Subscribe to this mod's changes

tg-search is a skill published in the GitHub repository sanjar-x/claudegram (2 stars, last pushed 4mo ago), licensed MIT. It adds 59 tokens to every session and 330 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

dream

Prunes and consolidates the project's auto-memory to keep it minimal — deletes stale, wrong, or redundant memories, merges overlapping ones into existing files, and trims the index. Strong bias against growth: never creates new memory files and never stores new facts. Verifies staleness against the current codebase…

oprogramadorreal/optimus-claude · 85 tokens

masterplan-detect

Suggest /masterplan import only when legacy masterplan bundle state files (docs/masterplan/ /state.yml at schema 5.x) exist without a matching v8 run. Generic planning artifacts (PLAN.md, TODO.md, ROADMAP.md, design docs, PR task lists) are NOT importable — no /masterplan import can ingest them; mention them only as…

rasatpetabit/masterplan · 116 tokens

skill-creator

Authors and audits Claude Code skills: frontmatter, directory layout, scope, invocation control, and bundled references or scripts.

anilcancakir/claude-code · 28 tokens

git-master

Git expert: atomic commits with style detection, rebase and squash, and history archaeology through blame, bisect and pickaxe.

anilcancakir/claude-code · 29 tokens

guide

Open the showreel visual setup guide, or walk the user through installing the plugin's dependencies. Use when the user asks how to set up showreel, install its dependencies, pre-warm the capture motor, install vhs, or says "showreel guide", "setup guide", "como instalar o showreel".

HeyRenan/showreel · 70 tokens

showreel

Use when the user wants to explain or document something visually — annotated screenshots, feature demos, flow GIFs, terminal recordings, before/after comparisons — or says "take a screenshot", "record this flow", "make a gif of", "show how this works", "annotate this page", "demo this feature", "grava um gif", "tira…

HeyRenan/showreel · 98 tokens