Back to list
dev_to 2026年3月21日

I Modernized BitchX — The Legendary 90s IRC Client Now Has AI Built In

I Modernized BitchX — The Legendary 90s IRC Client Now Has AI Built In

Translated: 2026/3/21 4:01:12
bitchxirc-clientai-integrationcybersecurityterminal

Japanese Translation

BitchX は再び戻ってきました 1990年代後半または2000年代初頭にIRCに馴染んでいた人々にとって、BitchXは忘れられない存在です。それはまさに THE terminal IRC client でした。ASCIIアートによるスクリーンショット、分割可能なウィンドウ、組み込まれたスクリプトエンジン、そしてその独特の姿勢。 2004年に開発が終了し、最後のコミットも数年前のものになっていました。SSL実装はOpenSSL 3.xで削除されたSSLv23_client_method()を使用しており、コードベースには1,200以上のunsafe sprintf/strcpy呼び出しが存在しました。現代のIRCネットワークとの接続さえも可能ではなくなっていました。 私はそれを全て修正しました。そして、誰も予想していなかったことをしたのです——Claude AI をそのまま組み込みました。 BitchX 1.3 コードベース(C言語で119,286行)から、現代化された内容は以下の通りです: セキュリティ: SSLv23_client_method() → TLS_client_method() (OpenSSL 3.x) への代替 CTCP UTC 解析におけるリモート DoS 脆弱性の修正 ネットワークFacing コードでの sprintf 57 以上を snprintf に変換 bzero → memset, bcopy → memcpy, inet_addr → inet_pton に変更 SASL 認証によるメモリリークの修正 AI モジュールにおけるコマンド注入脆弱性の修正 機能: SASL PLAIN 認証 (Libera.chat, OFTC, DALnet への接続を適切に行う) 現代のIRCネットワークへのTLS 1.3接続 /AI コマンドを通じたClaude AI統合 (詳細は後述) GitHub Actions CI パイプライン Multi-stage Dockerfile ここが興味深い部分です。BitchX には現在Claudeが組み込まれています: /AI what is the meaning of life — クラウドに何でも聞いてみる /AI SAY Bitcoinに関する話をする — クラウドがメッセージを生成し、チャネルに送信する /AI REPLY — チャットの過去20行に基づく文脈的な返信 /AI SUMMARIZE — 過去50行のサマリーを作成 /AI TRANSLATE Spanish — 最後のメッセージの翻訳 /AI AWAY playing Elden Ring — お留守時にPMに対するAIによる返信 /AI AWAY 機能は私の favori te です。コンテキスト("Elden Ring プレイ中、後日戻ります")を設定し、あらゆるPMに対し、文脈があり、自然な、かつ戻ってくる予定を伝えるAI生成の返信が返ってきます。これは、会話の内容を理解する実際の意味のあるスマートな自動返信器を持つようなものです。 実装は pipe()/fork()/execlp() を使用しており、シェルは関与しません。コマンド注入の可能性はありません。プロンプト入力には$、バックティック、および制御文字が削除されるようサンタイズされ、その後Claudeに渡されます。 # Prerequisites sudo apt install autoconf automake libssl-dev libncurses-dev build-essential # Build git clone https://github.com/prime001/BitchX.git cd BitchX ./autogen.sh ./configure --with-ssl make -j$(nproc) # Run ./source/BitchX -n YourNick irc.dal.net または Docker で: docker build -t bitchx . docker run -it bitchx -n YourNick irc.libera.chat:+6697 人々はなぜ30年前のIRCクライアントを現代化するために時間を割くのか、DiscordやSlackが存在しているのかと質問します。 三つの理由: IRC は死なないです。1988年以来運行されています。会社は所有していません。利用規約はありません。年齢確認はありません。アルゴリズムはありません。ただテキストだけです。 アエスティエス。ターミナルの中でBitchXは他では見たり感じたりしたことはありません。ASCIIアート、生々しいスピード、ハッカーのエネルギ。現代のチャットアプリはエンゲージメント指標のためにデザインされています。BitchX は、速くタイプし、もっと速く思考する人々のためにデザインされました。 AI + IRC は未踏の地です。18,000以上のMCPサーバーが存在しますが、それらすべてがIRCに接続していません。分散型、テキストベース、リアルタイムプロトコルとAI機能の組み合わせは、誰も踏み込まなかった扉を開けます。 # What's Next IRCv3 capability negotiation (message-tags, server-time) UTF-8 サポート (2013年以来要請されている) 256色 / true-color ターミナルサポート さらにセキュリティ強化 (1,200以上のunsafe呼び出しが残っている) Snap/PPA パッケージ化で sudo apt install bitchx リポジトリは github.com/prime001/BitchX です。PR は歓迎されます。過去にBitchXを使用していた人々が現代化に協力したい場合、ぜひ参加してください。 私はErik Andersonです。私が構築するシステムは私なしに動きます。Amazonに2冊の本 (From McDonalds to Financial Freedom, The Autonomous Engineer)、2台のホームサーバー上で25以上のプロジェクト、そして今では IRC クライアントマニテナントです。90年代は死ななかったのです——ただ、アップデートが必要でした。

Original Content

BitchX is Back If you were on IRC in the late 90s or early 2000s, you know BitchX. It was THE terminal IRC client. The ASCII art splash screen. The split windows. The built-in scripting engine. The attitude. It was abandoned around 2004. The last real commit was years ago. The SSL implementation used SSLv23_client_method() which was removed from OpenSSL 3.x. The codebase had over 1,200 unsafe sprintf/strcpy calls. It couldn't connect to modern IRC networks. I fixed all of that. And then I did something nobody expected — I built Claude AI directly into it. Starting from the BitchX 1.3 codebase (119,286 lines of C), here's what's been modernized: Security: Replaced SSLv23_client_method() → TLS_client_method() (OpenSSL 3.x) Fixed a remote DoS vulnerability in CTCP UTC parsing Converted 57+ sprintf → snprintf in network-facing code Replaced bzero → memset, bcopy → memcpy, inet_addr → inet_pton Fixed SASL authentication memory leak Fixed command injection vulnerability in the AI module Features: SASL PLAIN authentication (connect to Libera.chat, OFTC, DALnet properly) TLS 1.3 connections to modern IRC networks Claude AI integration via /AI command (see below) GitHub Actions CI pipeline Multi-stage Dockerfile This is where it gets interesting. BitchX now has Claude built in: /AI what is the meaning of life — Ask Claude anything /AI SAY tell them about Bitcoin — Claude generates a message, sends it to channel /AI REPLY — Contextual reply based on last 20 lines of chat /AI SUMMARIZE — Summarize the last 50 lines /AI TRANSLATE Spanish — Translate the last message /AI AWAY playing Elden Ring — AI responds to PMs while you're away The /AI AWAY feature is my favorite. You set a context ("playing Elden Ring, back later") and every PM gets an AI-generated response that's contextual, natural, and mentions you'll be back. It's like having a smart auto-responder that actually understands conversation. The implementation uses pipe()/fork()/execlp() — no shell involved, no command injection possible. Prompt input is sanitized to strip $, backticks, and control characters before being passed to Claude. # Prerequisites sudo apt install autoconf automake libssl-dev libncurses-dev build-essential # Build git clone https://github.com/prime001/BitchX.git cd BitchX ./autogen.sh ./configure --with-ssl make -j$(nproc) # Run ./source/BitchX -n YourNick irc.dal.net Or with Docker: docker build -t bitchx . docker run -it bitchx -n YourNick irc.libera.chat:+6697 People ask why I'd spend time modernizing a 30-year-old IRC client when Discord and Slack exist. Three reasons: IRC is unkillable. It's been running since 1988. No company owns it. No terms of service. No age verification. No algorithm. Just text. The aesthetic. Nothing looks or feels like BitchX in a terminal. The ASCII art, the raw speed, the hacker energy. Modern chat apps are designed for engagement metrics. BitchX was designed for people who type fast and think faster. AI + IRC is unexplored territory. 18,000+ MCP servers exist for AI tool integration. Zero of them connect to IRC. The combination of a decentralized, text-based, real-time protocol with AI capabilities opens doors that nobody's walked through yet. What's Next IRCv3 capability negotiation (message-tags, server-time) UTF-8 support (requested since 2013) 256-color / true-color terminal support More security hardening (1,200+ unsafe calls remain) Snap/PPA packaging for sudo apt install bitchx The repo is at github.com/prime001/BitchX. PRs welcome. If you used BitchX back in the day and want to help modernize it, jump in. I'm Erik Anderson — I build systems that run without me. Two books on Amazon (From McDonalds to Financial Freedom, The Autonomous Engineer), 25+ projects on two home servers, and now apparently an IRC client maintainer. The 90s never died — they just needed an upgrade.