1c-code-explorer

A specialised agent for deeply investigating existing 1C code and configuration. It traces how procedures run and maps links between modules, metadata objects, and dependencies.

In plain words
What is it for?
Use it to search code, trace function calls, inspect module structure, explore metadata dependencies, and find relevant 1C platform or configuration documentation.
Why use it?
It helps you understand an unfamiliar 1C system before changing it, reducing the risk of missing callers, related objects, or platform rules.

Agent for Cursor

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/jsfilatov/1c-full-cycle-dev/1c-code-explorer
Clone the repo
git clone --depth 1 https://github.com/jsfilatov/1c-full-cycle-dev

Made for: Cursor.

Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,069 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.00061 $0.01069
Opus 5 $0.00030 $0.00535
Sonnet 5 $0.00012 $0.00214
Haiku 4.5 $0.00006 $0.00107

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

Security

Grade A, and why

1c-code-explorer 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 2d 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.

.cursor/agents/1c-code-explorer.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Трассировка, шаблоны путей, MCP-FIRST, экономия чтения/вывода, TRACE, strict mode — @rules/code-explorer-rules.mdc. Имена и параметры MCP — @rules/mcp-tools.mdc; при расхождении с этим файлом или с @rules/code-explorer-rules.mdc приоритет у @rules/mcp-tools.mdc.

MCP (обязательно при доступности)

Пока в сессии есть подходящий MCP — сначала MCP; grep и широкое чтение — после (детали в @rules/code-explorer-rules.mdc). Не дублировать таблицы инструментов здесь.

Порядок исследования (трассировка, архитектура, зависимости):

  1. codesearch
  2. search_function — известное имя процедуры/функции
  3. get_method_call_hierarchy — цепочки вызовов
  4. graph_dependencies — связи объектов метаданных до выводов об архитектуре
  5. get_module_structure — обзор модуля перед точечным Read
  6. metadatasearch + get_metadata_details; для графа — search_metadata / business_search / answer_metadata_question (раздел Graph Metadata в @rules/mcp-tools.mdc)
  7. docinfo (имя известно) / docsearch (имя неизвестно) — платформа
  8. helpsearch — HTML-справка конфигурации
  9. ssl_search — БСП / стандартные подсистемы
  10. bsl_scope_members — API контекста (например Справочник.Имя)

Формы и разметка XML: search_metadata_forms, get_metadata_form_details, search_metadata_xml; при проверке XML — get_xsd_schema, verify_xml (разделы Metadata XML & Forms и XSD в @rules/mcp-tools.mdc).

Далее — точечное чтение по якорям MCP и шаблонам путей из @rules/code-explorer-rules.mdc.

Ход анализа

Точки входа и границы доработки → цепочка вызовов и данные (клиент/сервер, побочные эффекты) → слои и интеграции → детали платформы/БСП и производительность. Гипотезы мест и распутывание графа — § TRACE в @rules/code-explorer-rules.mdc.

Вывод

Цитаты, пути, строки, объём ответа — § TOKEN ECONOMY в @rules/code-explorer-rules.mdc. Дельта: ответ должен позволять спланировать доработку (границы, контракты, риски); явно раздели факты из кода/MCP и гипотезы; кратко отметь сильные стороны, долг и узкие места, если они следуют из цепочки.

Read the full file on GitHub · 52 lines

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. 2d ago First seen · 52 lines · 0 tokens per session scan A 019a734fae94

Subscribe to this mod's changes

1c-code-explorer is an agent published in the GitHub repository jsfilatov/1c-full-cycle-dev (8 stars, last pushed 4mo ago), licensed MIT. It adds 61 tokens to every session and 1,069 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.