Skip to content
Development
Command

/evolve

Aggregate accumulated rule-friction signals into user-approved behavior rules in LLM-RULES.md (ruleset self-improvement loop)

From plugin
ai-rules-1c
55045 skills13 agents45 commands
> /plugin marketplace add comol/ai_rules_1c
> /plugin install 1c-rules@1c-rules

Command definition

evolve.md
description: Aggregate accumulated rule-friction signals into user-approved behavior rules in LLM-RULES.md (ruleset self-improvement loop)
userOnly: true
argumentHint: "[note <text>|show]"

/evolve — ruleset self-improvement via LLM-RULES.md

Turn friction observed during work (user corrections of agent behavior, demonstrably redundant mandated steps, conflicting rules) into explicit, user-approved rules in `LLM-RULES.md` at the project root.

This command is the **only** legitimate writer of `LLM-RULES.md`. During regular tasks agents never edit it, `AGENTS.md`, or the installed rule files inline — they capture friction signals and, when signals accumulate, recommend running this command. The capture discipline and the recommendation trigger are canon in `AGENTS.md → Rules self-improvement`; this file owns everything from aggregation onward.

Precedence reminder: `LLM-RULES.md` overrides `AGENTS.md` and the on-demand rules; `USER-RULES.md` and `memory.md` override `LLM-RULES.md`.

Parse the argument: empty — full pass (collect → cluster → propose → approve → write); `note <text>` — record one friction signal and stop; `show` — report the current state, no writes.

Full pass (default)

1. Collect signals

Gather friction signals from, in order:

1. **Current session** — corrections and steers the user gave in this chat that contradict or refine behavior mandated by the active ruleset. 2. **Memory search** (all connected providers per `content/rules/project-memory.md`) — query for `rule-friction` notes and deduplicate across providers; refine with behavior keywords if the first query is too broad. Respect the no-blind-chaining discipline of `AGENTS.md → MCP Tool Calling → C`. All memory writes in this command use the same rule's Cognee → OpenViking → templates priority. 3. **`memory.md` fallback entries** — behavior-steering entries recorded there while `remember` was unavailable. 4. **User input** passed with the command invocation.

Skip episodes already consumed by an earlier pass: consumed episodes are cited in the `Evidence` lines of existing `LLM-RULES.md` entries, and notes older than the `Last /evolve run:` date are suspect — re-check them against existing entries before reuse.

2. Cluster and apply the evidence threshold

  • Group signals by the behavior they target (the same re-asked question, the same redundant step, the same naming correction), one cluster → at most one proposed entry.
  • **Threshold:** ≥ 2 independent episodes → propose. A single episode is proposable only when the user explicitly requested a permanent change ("always…", "never…", "запомни…") — otherwise keep it as **pending**: report it in the closing summary, write nothing.
  • A proposal that conflicts with `USER-RULES.md` or `memory.md` is not proposed at all — those layers outrank `LLM-RULES.md`. Report the conflict instead.

3. Protected areas — higher bar

Proposals that **weaken** any of the following are safety-relevant: the verification chain (`syntaxcheck` / `check_1c_code` / `review_1c_code`, validator budgets, the `content/rules/verification-gates.md` gates), transactions / locks discipline, security / RLS / secrets / PII handling, `CONFUSION` gates on material forks, MCP evidence gates for BSL / metadata / spec authoring.

For such proposals:

  • mark the entry `[safety-relevant]` and present it **separately** — never bundled into a blanket "approve all" with routine entries;
  • state what the weakened gate currently catches and what will catch it instead;
  • prefer narrowing the scope or introducing a `.dev.env` parameter (the `VERIFICATION_DEPTH` / `QUICKFIX_MAX_LINES` pattern) over deleting or relaxing the rule text;
  • never propose a blanket disable of a verification or safety mechanism.

The model is a poor judge of the usefulness of gates that constrain the model — that asymmetry is exactly why this section exists.

4. Approval gate

Present every surviving proposal as a numbered list; per proposal: the rule text, scope, evidence episodes (one line), what base rule or `AGENTS.md` section it refines or overrides, and the `[safety-relevant]` flag where applicable. Then one consolidated question round with per-entry approve / reject / edit. Safety-relevant entries require their own explicit confirmation.

No approval — no write. For rejected proposals, record one `remember` note (`rule-friction: rejected — <behavior>`) so the same proposal is not re-raised from the same episodes.

5. Write to `LLM-RULES.md`

If the file is absent (older install), create it first with the template structure: the `# LLM Rules` title with its one-line pointer, the `Last /evolve run:` line, `## Active rules`, `## Superseded`.

Entry format (English, imperative, original 1C identifiers as-is, no secrets / PII):

### R-007 — <short title> (YYYY-MM-DD)

- **Rule:** <imperative behavior rule>
- **Scope:** <when / where it applies>
- **Evidence:** <episodes in one line>
- **Check:** <the situation that reproduced the friction> → <the behavior the rule now requires>
- **Refines:** <`AGENTS.md → <section>` / `<rule-file>.md` / none>
  • **`Check` is the failing case the rule answers.** Write it from the episodes (what the agent was asked, what it did), not from the rule text, so the next session or the user can replay it and see the change. A proposal whose episodes cannot be stated as such a situation stays pending.
  • Ids are sequential `R-NNN` across the whole file, including superseded entries.
  • **Dedupe on write:** a proposal targeting the same behavior as an existing active entry merges into it (update the text, extend `Evidence`); a proposal contradicting an existing entry **replaces** it — move the old entry under `## Superseded` with a `Superseded by R-NNN (YYYY-MM-DD)` line. Two conflicting active entries must never coexist.
  • Update the `Last /evolve run:` line to today's date.
  • **Entropy budget:** when active entries exceed ~20, the pass must open with a consolidati
Read more
@comol
Ships withai-rules-1c

Rules\skills\subagens for vibecoding in 1C(bsl)

55032 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
550
Star history of comol/ai_rules_1c on GitHub, a chart by star-history.com

Other commands on ai-rules-1c.

build-release

build-release

Command

Build release artifacts from committed sources — .cf for the main configuration and .cfe per extension, with optional version…

@comol@comolInstall Command
caveman

caveman

Command

Toggle the caveman communication style — set CAVEMAN (on|auto|off) in .dev.env for the whole project; on|off|auto persist,…

@comol@comolInstall Command
check-uuid

check-uuid

Command

Check a 1C XML configuration dump for duplicate UUIDs, and optionally regenerate them

@comol@comolInstall Command
checkmcp

checkmcp

Command

Check availability of 1C MCP servers and install/start the missing ones

@comol@comolInstall Command
checkupdates

checkupdates

Command

Read-only check for available updates of the 1C MCP server images and of the 1c-rules ruleset, without pulling or installing…

@comol@comolInstall Command
deploy-and-test

deploy-and-test

Command

Load the configuration into the test infobase from .dev.env and check the result in the 1C interface — QA MCP first, the web…

@comol@comolInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command