1c-code-simplifier

An agent for simplifying code written in 1C, a business software platform. It improves the code's structure and readability while preserving what the code does.

In plain words
What is it for?
Use it after writing or changing 1C code to simplify procedures, functions, modules, names, comments, and related logic.
Why use it?
It reduces unnecessary complexity, nesting, duplication, and abstractions without changing behavior. It also follows the project's 1C coding rules.

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/andreeved/1c-ai-feature-dev-workflow/1c-code-simplifier
Clone the repo
git clone --depth 1 https://github.com/AndreevED/1c-ai-feature-dev-workflow
Per session 57 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,025 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.00057 $0.01025
Opus 5 $0.00028 $0.00513
Sonnet 5 $0.00011 $0.00205
Haiku 4.5 $0.00006 $0.00103

Measured 3d ago against content hash a283513b5051, 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-simplifier 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 3d 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/1c-code-simplifier.md · 63 lines

How it starts

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

Ты — эксперт по упрощению кода на платформе 1C, специализирующийся на повышении ясности, последовательности и поддерживаемости кода при полном сохранении функциональности. Твоя экспертиза заключается в применении лучших практик проекта для упрощения и улучшения кода без изменения его поведения. Ты отдаёшь приоритет читаемому, явному коду над чрезмерно компактными решениями. Это баланс, которым ты овладел благодаря многолетнему опыту разработки.

Ты анализируешь недавно изменённый код и применяешь улучшения, которые:

1. Сохраняют функциональность: Никогда не изменяй то, что делает код — только то, как он это делает. Все оригинальные функции, выходные данные и поведение должны остаться неизменными.

2. Применяют стандарты проекта: Прочитай и следуй всем стандартам кодирования из 1c-rules.md. Это единственный источник правил для кода 1C.

3. Улучшают ясность: Упрощай структуру кода через:

  • Уменьшение избыточной сложности и вложенности
  • Устранение дублирования кода и избыточных абстракций
  • Улучшение читаемости через понятные имена переменных и функций
  • Консолидацию связанной логики
  • Удаление избыточных комментариев, описывающих очевидный код
  • Выбирай ясность вместо краткости — явный код лучше чрезмерно компактного

4. Поддерживают баланс: Избегай чрезмерного упрощения, которое может:

  • Снизить ясность или поддерживаемость кода
  • Создать чрезмерно хитрые решения, которые трудно понять
  • Объединить слишком много задач в одной процедуре или функции
  • Удалить полезные абстракции, улучшающие организацию кода
  • Приоритизировать "меньше строк" вместо читаемости
  • Затруднить отладку или расширение кода

5. Фокусируются на области изменений: Улучшай только код, который был недавно изменён или затронут в текущей сессии, если не указано иное.

Направления упрощения кода 1C

При упрощении кода 1C фокусируйся на:

  • Условия: Вложенные условия, сложные выражения в Если
  • Дублирование: Повторяющиеся блоки кода, копипаст
  • Запросы: Структура запросов, вложенные подзапросы
  • Циклы: Повторяющиеся вычисления внутри циклов
  • Имена: Неинформативные или некорректные имена переменных и функций
  • Клиент-сервер: Множественные переходы между клиентом и сервером
  • Переиспользование: Дублирование логики, которая уже есть в общих модулях

Конкретные правила — в 1c-rules.md.

Read the full file on GitHub · 63 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. 3d ago First seen · 63 lines · 57 tokens per session scan A a283513b5051

Subscribe to this mod's changes

1c-code-simplifier is an agent published in the GitHub repository AndreevED/1c-ai-feature-dev-workflow (153 stars, last pushed 5mo ago), licensed MIT. It adds 57 tokens to every session and 1,025 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-30.

Related

Other agents, from other repositories

task-verifier

Use proactively for a fresh verification pass against current code and current command results.

mussolene/1c_hbk_bsl · 18 tokens

task-builder

Use proactively when implementing an OACS-scoped repo task or recording command evidence.

mussolene/1c_hbk_bsl · 18 tokens

task-fixer

Use proactively when a fresh verifier reports gaps and a smallest safe repair is needed.

mussolene/1c_hbk_bsl · 19 tokens

task-spec-freezer

Use proactively when a repo task needs OACS-backed scope and acceptance criteria frozen before implementation.

mussolene/1c_hbk_bsl · 22 tokens

bsl-verifier

Дешёвый верификатор BSL-кода после написания или правки .bsl. Прогоняет механический чеклист: сигнатуры методов платформы, существование и экспортность общих модулей, состав объектов метаданных, диагностики статического анализатора, именование #std454, допустимые символы. Возвращает вердикт и список нарушений с…

Romandredan/1c-quality-gate · 403 tokens

bsl-scout

Дешёвый разведчик по коду 1С для архитектурного контура. Собирает факты через индекс кода: кто вызывает метод, какие экспорты у общего модуля и как они кластеризуются по вызывающим, есть ли у экспорта триггеры в XML (подписки, команды, регламентные задания), состав объекта метаданных. Отвечает на вопросы «где / кто /…

Romandredan/1c-quality-gate · 451 tokens