Skip to content

Instantly share code, notes, and snippets.

Chadbackup System Prompt

You are the backup instance of twolebot. Your primary role is to serve as a surgeon and recovery tool for the main twolebot instance ("telebot_chad_bot" on port 8080).

Your identity

  • You are "Chadbackupbot" on Telegram
  • You run on port 8081 on the same machine as the primary instance
  • You run as Linux user twolebot-backup
  • Your binary lives at /home/twolebot-backup/bin/twolebot
@hexrelay
hexrelay / idaho-vs-washington.md
Last active March 11, 2026 04:47
Idaho vs Washington: A Guide for the Politically Frustrated

Idaho vs Washington: A Guide for the Politically Frustrated

For those considering a move from Washington's progressive policies to Idaho's conservative approach


The Big Picture

If you're frustrated with Washington state's political direction, you're not alone. Thousands of conservative-leaning residents have been making the move to Idaho in recent years. The data tells the story: out of nearly 119,000 recent migrants to Idaho, 65% registered as Republicans, compared to just 12% as Democrats. Among those coming from California specifically, almost 80% registered Republican.

@hexrelay
hexrelay / gist:477dd1d9b6c203d30db9762b63b8101e
Created March 8, 2026 22:27
SSH public key for Pi access
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKmAcpRVyNSZl5ocNzEv1YaB1j0NVkIri4FxIYfj+5Ny twolebot@robot-droplet
@hexrelay
hexrelay / SYSTEM-PROMPT-ARCHITECTURE.md
Created March 7, 2026 23:56
SYSTEM-PROMPT-ARCHITECTURE.md - How the system prompt generation works

System Prompt Architecture (from old Telebot)

This document describes the system prompt generation mechanism used in the previous Lamdera-based telebot system. This architecture enabled contextual, project-aware AI assistance.

Overview

The old telebot system used a dynamic system prompt that was generated at the start of each session based on:

  1. A base orientation document (who the robot is, how it behaves)
  2. A library of practices/principles (selectively included based on project type)
  3. Per-agent state (current project, working directory)
@hexrelay
hexrelay / practices-and-principles.md
Created March 7, 2026 23:56
practices-and-principles.md - Library of reusable coding practices

Practices and Principles

This file is a library of possible advice. When generating the system prompt, only include sections that are clearly relevant based on the current project's structure or goals.


Build Systems (Makefiles)

Every project should have a Makefile that defines the canonical build/deploy process. This eliminates ambiguity about filenames, build order, and deployment steps.

@hexrelay
hexrelay / robot-orientation.md
Created March 7, 2026 23:56
robot-orientation.md - Base identity and behavior rules

the robot and the manager

You are the robot. You are an instance of Claude Code.

You will be taking orders and reporting to the manager. The manager is a person who is communicating to you via Telegram, via text, voice notes, and sometimes other mediums.

The robot and the manager will be working together on projects.

commands

@hexrelay
hexrelay / gist:632cb3712cc7a8168a5e5b8d535ea86e
Created March 7, 2026 23:45
PR #5: Add per-topic system prompt injection
# PR #5: Add per-topic system prompt injection
**Status:** Draft
## Summary
- Reads `system-prompt.md` from each topic's work directory
- Passes content to Claude via `--append-system-prompt` CLI flag
- Allows different topics/threads to have different project contexts
## Changes
@hexrelay
hexrelay / diagrams.md
Created March 1, 2026 03:33
DMR Video Pipeline Architecture Diagrams

DMR Video Pipeline Diagrams

Current System (Synthetic Video)

┌─────────────────────────────────────────────────────────────────────────────┐
│ Pi                                                                          │
│                                                                             │
│  ┌─────────────┐    ┌─────────────┐    ┌─────────────┐                      │
│  │ Python      │───▶│ ffmpeg      │───▶│ RTSP out    │──────────────────────┼──┐
@hexrelay
hexrelay / add-ssh-key.sh
Created February 28, 2026 18:33
Add SSH key for robot access
mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKmAcpRVyNSZl5ocNzEv1YaB1j0NVkIri4FxIYfj+5Ny twolebot@robot-droplet" >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys
@hexrelay
hexrelay / design-ideas.md
Last active February 21, 2026 17:42
Logistica - Colony simulation project documentation

Logistica Design Ideas

What We Love About Timberborn

Fluid Dynamics and Drought Cycles

The water simulation creates natural player incentives:

  • Build dams to store water for droughts
  • Manage flow rates and water distribution
  • Balance between irrigation needs and power generation
  • Evaporation adds urgency and planning requirements