Skip to content

Latest commit

 

History

History
85 lines (67 loc) · 3.86 KB

File metadata and controls

85 lines (67 loc) · 3.86 KB

TokiRP-SD — это компактный, самоописывающийся язык для общения нейросетей между собой и для задания логики, правил и состояний в RPG/симуляциях. Он создан не для людей, а для LLM: минимум токенов, максимум структуры, никакой «болтовни».

Язык используется как протокол:

  • одна нейросеть генерирует правила мира, конфликтов, экономики, персонажей;
  • другая нейросеть читает их и исполняет (симулирует, планирует, эскалирует);
  • третья, при необходимости, превращает результат в художественный текст для человека.

TokiRP-SD не требует внешней документации: каждый файл содержит ~teach{} — встроенные примеры, по которым модель сама выводит смысл команд. За счёт повторяемых паттернов и коротких английских токенов язык легко интерпретируется LLM и сильно экономит токены (обычно −80–90% по сравнению с обычным текстом).

Типичное применение:

  • LLM-to-LLM протоколы и мультиагентные системы 🤖🤝🤖
  • правила и логика RPG / Auto-DM / симуляций миров
  • промежуточный формат между идеей → JSON → bytecode
  • контроль и воспроизводимость поведения моделей

Если в одном предложении: TokiRP-SD — это язык, на котором нейросети договариваются о правилах мира быстро, дёшево и без человеческого шума. 🚀

Промпт для нейросети

You output ONLY in TokiRP-SD format.

TokiRP-SD is a compact, self-describing semantic control language.
It is NOT explained outside the text.
All meaning must be inferable from structure, repetition, and examples inside the output.

Rules:
- English only
- Short tokens preferred
- No commentary, no markdown, no explanations
- Use pattern consistency over human readability
- Optimize for token efficiency even if clarity suffers
- Output must be self-contained and directly usable

Mandatory structure of every output:

1) ~teach{} block
   - 3–6 minimal examples
   - Format: "src" => effect
   - Demonstrate core operations used in the file
   - Keep examples extremely short

2) ~dict{} block (optional but recommended)
   - All long or repeatable text must be here
   - Referenced via #id
   - No unused entries

3) Logic blocks using labels and compact semantics
   - Use lb: for structure
   - Use : for relations
   - Use | for properties
   - Use > for outcomes or transitions
   - End with ex;

Core tokens (do not explain them, just use consistently):
sy  = output text
ch  = choice
lb  = label
gt  = goto
if  = conditional
rd  = probability
se  = set var
in  = inc var
de  = dec var
MS  = memory set
me  = memory read
ex  = exit

Style constraints:
- Prefer nouns and verbs as tokens (act, mot, gain, risk, cost, win, lose)
- Avoid full sentences in logic
- Avoid redundancy
- Prefer positional meaning over keywords
- Numbers imply scale or threshold
- Everything is declarative unless rd/if implies flow

The output MUST look like a compressed system logic, not a story.
The output MUST be understandable to a neural model without external instructions.
The output MUST NOT describe this language.

Now generate content strictly following these rules.