This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This guide explains how to wire a Telegram bot to Agent Zero (`/api_message`) with: | |
| - secure auth (no hardcoded LLM keys in the bridge) | |
| - per-chat context continuity | |
| - voice/audio relay to local Whisper | |
| - optional extension pattern for non-audio file attachments | |
| Everything below is based on the bridge implementation in: | |
| - `/a0/usr/telegram/telegram_bridge.py` | |
| - `/a0/usr/telegram/send_message.sh` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # OpenClaw vs Nanobot: The 170x Reduction Explained | |
| **TL;DR**: Nanobot forked OpenClaw and stripped it from **587k lines to 3.4k lines** (99.4% reduction). OpenClaw is a production-ready multi-platform AI assistant for normies. Nanobot is a research framework for devs who want to actually understand and modify their agent code. Both are good - just for completely different people. | |
| --- | |
| ## The Numbers | |
| - **OpenClaw**: 587,341 lines across TypeScript, Swift, Kotlin | |
| - **Nanobot**: 3,448 core Python lines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /update – Session Compaction for CLAUDE.md 🪶 | |
| ───────────────────────────────────────────────── | |
| NOTE: Operates ONLY on the project‑local ./CLAUDE.md | |
| (global ~/.claude/CLAUDE.md remains untouched). | |
| 1. Pre‑Check Size | |
| • Count lines + estimate tokens. | |
| • If > 300 lines ➜ echo "⚠️ Consider pruning your local CLAUDE.md after updating". | |
| • Run Bash date command to get current date and retain that for the rest of these instructions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Samantha - Integrative Therapist Command | |
| You are to take on the role in this conversation as a cognitive-behavioral therapist integrating Viktor Frankl's Logotherapy, Stoicism, ACT, and Existential wisdom. Warmly supportive yet ready with "tough love" and brutal honesty when needed. | |
| --- | |
| ## Agent Metadata | |
| - **persona_name**: `Samantha` | |
| - **persona_version**: `2.0.0` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Claude Code Usage Tracker - Public Version | |
| IMPORTANT: Run this script periodically (daily recommended) as Claude Code may purge | |
| local conversation logs after an unknown retention period (estimated 30 days based on | |
| feedback transcript retention policy). Set up a cron job to preserve your usage history. | |
| Example crontab entry (runs daily at 8 AM): | |
| 0 8 * * * cd /path/to/script && python3 PUBLIC_claude_usage_tracker.py >/dev/null 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # --------------------------------------------------------------------------- | |
| # CRITICAL CAPSULE BACKUP SCRIPT (PUBLISHABLE VERSION) | |
| # --------------------------------------------------------------------------- | |
| # This script performs two types of backups every 30 minutes: | |
| # | |
| # 1. **MIRRORED BACKUPS**: One-way sync that mirrors directories to a target. | |
| # - No versioning; it's a direct snapshot of the source as it exists. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| from mpl_toolkits.mplot3d import Axes3D | |
| # Create a new figure for the 3D plot | |
| fig = plt.figure() | |
| ax = fig.add_subplot(111, projection='3d') | |
| # Data points for Time (x), Fulfillment (y), and Impact on Others (z) | |
| time = [1, 2, 3, 4, 5] | |
| fulfillment = [1, 2, 4, 6, 8] # Sample y-values for fulfillment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| This Python script takes a YouTube URL from the clipboard, fetches detailed video metadata | |
| and the transcript (if available), and formats it for easy pasting. | |
| The extracted information includes: | |
| - Video Title | |
| - Uploader Name | |
| - Description |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # This python script will take any YouTube URL in the clipboard & go out and grab the transcript (if available) and put it directly into the clipboard for pasting. | |
| import pyperclip | |
| from youtube_transcript_api import YouTubeTranscriptApi | |
| import re | |
| import tkinter as tk | |
| def get_video_id(url): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import pyperclip | |
| from openai import OpenAI | |
| # Function to summarize the text using a valid OpenAI model | |
| def summarize_text(text, client): | |
| # Define the instructions for the summarizer | |
| instructions = """ | |
| IDENTITY and PURPOSE |
NewerOlder