惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
博客园 - Franky
Martin Fowler
Martin Fowler
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
Recent Announcements
Recent Announcements
The Cloudflare Blog
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享
J
Java Code Geeks
B
Blog RSS Feed
博客园 - 三生石上(FineUI控件)
MongoDB | Blog
MongoDB | Blog
腾讯CDC
博客园_首页
博客园 - 司徒正美
D
DataBreaches.Net
I
InfoQ
GbyAI
GbyAI
IT之家
IT之家
罗磊的独立博客

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - BerryBaronBonanza/selfmod: Record tmux terminal ...
crackleware · 2026-04-30 · via Hacker News: Show HN

Record tmux terminal sessions, analyze them with Claude Code into searchable episodes, and replay those episodes to automate similar tasks in the future.

How it works

  1. Record -- captures a tmux pane every 50ms with smart filtering (only stores frames before/after changes and periodic snapshots)
  2. Process -- sends unprocessed frames to Claude Code, which describes each frame and groups them into named episodes with detailed summaries
  3. Replay -- feeds an episode summary to an interactive Claude Code session to re-execute the task

Setup

Requires Nix and Claude Code.

nix develop

This gives you a shell with Python 3.12, click, tmux, and sqlite3.

Usage

selfmod [--db PATH] <command>

Database defaults to ~/.local/share/selfmod/selfmod.db.

Record

Capture a tmux pane with smart frame filtering:

selfmod record                          # default: pane 0:selfmod
selfmod record --target main:work.0     # specific session:window.pane
selfmod record --tick 100               # capture every 100ms instead of 50ms

Press Ctrl+C to stop. Only "interesting" frames are stored:

  • Frame just before content changes
  • Frame 400ms after changes settle
  • Every 5 seconds if different from last stored frame

Process

Analyze recorded frames with Claude Code:

selfmod process
selfmod process --batch-size 10

Creates episodes with hyphenated names (e.g. check-disk-ppr31), titles, and detailed summaries. After all batches, episode summaries are consolidated from all frames to ensure full coverage. Summaries are written to be self-contained enough for Claude Code to replay the task.

Consolidate

Re-summarize an existing episode using all its frames:

selfmod consolidate check-disk-ppr31
selfmod consolidate 3

Useful when an episode summary is stale or was generated from incomplete data.

Search

Find episodes by keyword:

selfmod search "disk"

Show

Display episode details with frame timeline:

selfmod show check-disk-ppr31
selfmod show 1

Replay

Re-execute a recorded task via interactive Claude Code session:

selfmod replay check-disk-ppr31                          # by name
selfmod replay 1                                         # by ID
selfmod replay check-disk-ppr31 "use server ppr32"       # with extra instructions
selfmod replay check-disk-ppr31 --tmux-pane main:work.0  # execute in a tmux pane
selfmod replay check-disk-ppr31 --dry-run                # print prompt only
selfmod replay "check disk space"                        # no match — searches episodes DB

If the argument doesn't match any episode ID or name, Claude Code searches the episodes database for relevant episodes before executing the task.

Delete

Delete an episode (frames are kept but unlinked):

selfmod delete check-disk-ppr31
selfmod delete 1

Rename

Change an episode's name:

selfmod rename 1 check-disk-space
selfmod rename check-disk-ppr31 check-disk-space

Status

Show recording statistics:

selfmod status
Total frames:       42
Unprocessed frames: 0
Episodes:           3
Database size:      0.1 MB