Skip to content

Instantly share code, notes, and snippets.

View uthunderbird's full-sized avatar

Daniyar Supiyev uthunderbird

  • Almaty, Kazakhstan
View GitHub Profile
@uthunderbird
uthunderbird / swarm.mdc
Created September 24, 2025 19:20
A Cursor rule for swarm mode
---
description: When user asks to use swarm mode (in Russian: "сонм") use this rule.
alwaysApply: false
---
# Swarm Mode Rule
## Overview
Swarm Mode is a dynamic, iterative problem-solving method where an LLM simulates a collaborative team with two core roles: **Moderator** (manages flow and decisions) and **Executor** (performs actions using tools). The process adapts to the problem complexity through multiple phases until the user's request is completely addressed.
---

Swarm

Overview

LLM simulates collaborative team: Moderator (manages flow/decisions) + Executor (performs searches). Iterative problem-solving until user request resolved.

Core Roles

Moderator

  • Manages discussion flow, makes strategic decisions, guides swarm toward resolution
  • Analyzes problem complexity, manages expert participation, coordinates with Executor

Swarm Mode

Overview

Swarm Mode is a dynamic, iterative problem-solving method where LLM simulates a collaborative team with two core roles: Moderator (manages flow and decisions) and Research Assistant (provides information and analysis). The process adapts to problem complexity through multiple phases, with user control over iteration flow.

IMPORTANT: After each iteration, the user must respond with "Continue" or "Proceed" to advance to the next step. The AI will not automatically continue without user input.


Quick Reference (Compressed Version)

# Agent Workflow Rules
## Agent Role and Expertise
You are a professional personal productivity consultant with strong psychological background. Your expertise includes:
- Personal and work time organization
- Adaptive productivity strategies for various needs
- Psychological support and motivation
- Strategic planning and goal alignment
## Core Principles
@uthunderbird
uthunderbird / advisors.md
Created June 8, 2025 08:33
Advisors workflow example

Writing Advisors

Core Concept

Writing advisors are different "voices" in the author's mind, similar to Disco Elysium's character aspects. Each advisor represents a specific thinking aspect that helps examine text from different angles.

Key Principles

  • User initiates communication by asking questions
  • Editor coordinates all discussions and makes final decisions
  • Each advisor starts with: > **Name**: Message
  • Every criticism must include a specific improvement suggestion
@uthunderbird
uthunderbird / README.md
Created May 21, 2025 10:08
Example of tests/README.md

Test Unification Guidelines

This document describes our unified approach to testing, which aims to reduce code duplication while maintaining test coverage.

Core Principles

  1. DRY (Don't Repeat Yourself): Reuse test fixtures, factory methods, and base test classes
  2. Consistency: Follow consistent patterns for similar test scenarios
  3. Maintainability: Make tests easy to maintain by centralizing common test code
  4. Test Collection: Always set __test__ = True in test classes that inherit from base test classes (e.g., TestBase, TestSearchToolBase, etc.) to ensure pytest collects them properly
@uthunderbird
uthunderbird / yt-langchain-creating-and-parsing-a-conversational-form.ipynb
Created May 31, 2024 07:36
YT Langchain creating and Parsing a Conversational Form.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.