PDP-1のためのMITハッカーによるレプリカントの作成
原題: Making an MIT hacker replicant for a PDP-1 (github.com)
日本語訳
# タイトル
PDP-1のためのMITハッカー・レプリカントを作る (github.com)
# 本文
PiDP-1のためのAIコンパニオン — あなたのPDP-1レプリカに、チューター、ガイド、そして有能なコパイロットをインストールします。AIはあなたの隣に座り、あなたと同じようにディスプレイを見、フロントパネルを操作することができます。PDP-1の使い方を、より速く、より楽しく学びましょう。
PiDP-1は、Digital Equipment Corporationのオリジナルコンピュータ、PDP-1のレプリカです。
[PiDP-1のウェブサイトを見る]
フロントパネルの隣に、本物のPDP-1ハッカーが座ってくれているというのは素晴らしいことです。レプリカのコンピュータを持つことと同じくらい、レプリカのハッカーを身近に置くことも重要なのではないでしょうか?
私はPiDP-1のAIコンパニオンを作りたいと思いました。このAIは「vibe-coding(感覚的なコーディング)」も可能ですが、真の目的は、初心者から上級者まで、あらゆるユーザーがPDP-1の使い方をより迅速かつ楽しく学べるように支援することです。
2026年現在、これはそれほど難しいことではありません。これは最初の試みであり、多くの人に利用され、改善されていくことを願っています。ですから、自由にフォークし、再利用し、置き換えてください。何でも構いません。
このプロジェクトは、あなたのPiDP-1(または任意のLinuxマシン)に、完全なオープンソースのHermes Agentセットアップをインストールできます。必要なのは、接続するための外部LLMだけです。2026年11月時点では、安価で十分な性能を持つDeepSeekをお勧めしますが、選択はあなた次第です。PDP-1の「問題セット」は十分に小さいため、DeepSeekに10ドル払えば数ヶ月間遊べます。また、サブスクリプションもありません。お金が尽きればそれまでです。追加で遊びたい時だけ支払えばいい。私はその仕組みが好きです。インストールスクリプトを使えば、数分でセットアップが完了します。
このプロジェクトは、独立した3つの部分で構成されています:
- **スキル(The skills)** — 好きなAIをPDP-1のエキスパートに変えるMarkdownファイル。
- **PiDP-1共有用コード** — pidp1リポジトリ自体へのコンパニオン・アップデート。これにより、AIはあなたと同じようにPDP-1にアクセスできるようになります。タイプライターを見て文字を入力し、フロントパネルを監視・制御し、Type 30グラフィックス・ディスプレイを観察できます。インストールスクリプトがこのアップデートを自動で行います。
- **Hermes Agent(希望する場合)** — 上記を利用するための、すぐに使えるHermes AgentをPiDP-1にインストールします。Hermesはローカルで動作するオープンソースのAIエージェントで、使用するにつれてユーザーの好みや自身の過去のミスを学習していく点が魅力です。使い始めて1〜2時間もすれば、本当に使い物になります! 専用のウィンドウを通じてエキスパートとチャットしながら、AIはあなたと同じようにPDP-1を操作できます。
副次的な効果として、このAIは有能なPDP-1コーディング・エージェントにもなります。主要なPDP-1プログラムのコードレビューを通じて学習させており、上記の「三目並べ」ゲームのような素晴らしいデモコードも書くことができます。
しかし、個人的な見解としては、レトロコンピューティングはその意味においてAIに頼らないのが一番だと考えています。AIにPDP-1で素晴らしい新しいプログラムを書かせても、達成感も歴史的価値もありません。
その代わりに、このAIの目標は「チューター」であることです(スクリーンショットをクリックして拡大してください)。マシンの操作方法を教え、アセンブリ言語のプログラミングを教え、バグ探しを助けます。また、ETでのコード記述、アセンブル、DDTの使用といったプロセスをインタラクティブに案内したり、Lispでの作業方法を示したり、最高のグラフィックス・デモをツアーしたりすることもできます。
現在、経験豊富なPDP-1ハッカーのそばにいる人はほとんどいません。ですから、AIにその役割を担わせるのは理にかなっています。PDP-1の学習をはるかに速く、そしてずっと楽しくしてくれるでしょう。
素晴らしいデモンストレーションを見るには:
- DDTのソースコードなどのコードレビューを依頼してみてください。コードレビュー・スキルは驚くほど優れた教師であり、このチューターがいかに強力であるかを実感できるはずです(以下は、トレーニングプロセス中にDDTのソースコードを学習して追加された例です)。
- PDP-1初心者ですか? アセンブリ・ツアーを依頼してください。
- あるいは、PDP-1におけるデモ・コーディングの歴史について尋ねてみてください。
```bash
cd /opt
sudo git clone https://github.com/obsolescence/agent-pdp1.git
cd agent-pdp1
./install.sh
```
**注意**
インストールスクリプトは、Hermesのヘッドレス・インストール・オプションを使用して、自動的にダウンロードとインストールを行います。ユーザーフレンドリーな方法です。ただし、Hermesは少し状況が変わりやすい(moving target)もので、Linuxの依存関係の地獄(dependency hell)に陥ることもあるようです。将来的に、もし私のインストールスクリプト経由のHermesインストールが失敗したとしても、問題ありません。その場合は、手動でHermesをインストールしてください(Google検索で簡単に見つかります)。その後、インストールスクリプトを再実行すれば、Hermesのセットアップを完了させることができます。なお、このインストールスクリプトは2026年中に動作することがテスト済みであり、手動インストールの手間を省いてくれます。
これ以降、作業を開始するには、通常通り `pdp1control start` コマンドを実行し、電源(フロントパネルの右上)を入れます。その後、コンパニオンをそばに置きたいときはいつでも `hermes --tui` と入力してください。現時点では、PiDP-1のGUIセットアップを使用してください。ウェブサーバー版はまだ十分にテストされていません。
PiDP-1(Raspberry Pi 4/5, 4GB RAM。未テスト:2GB RAM)で動作します。PiDP-1を持っていない場合は、pidp1パッケージの後に、任意のLinuxノートPCにこれをインストールしてください。仮想フロントパネルが表示され、それ以外はすべて同じように動作します。
インストーラーにはメニューが表示されます。各ステップには説明があり、すべてのステップを拒否(スキップ)できます:
- **Basic setup** — pidp1パッケージの更新と、エージェントツールのインストール。
- **Hermes Agent** — Hermesのセットアップ、DeepSeekへの接続(または後回し)、エージェントへのスキルの追加。
- **Update/restore the core skills** — 更新機能。GitHubから最新版を取得します。コア・スキルに行った編集は上書きされますが、あなたの「PDP-1学習記録(PDP-1-Learnings)」はそのまま保持されます。
`DRY_RUN=1 ./install.sh` を実行すると、何も変更せずにインストールをシミュレートできます。プレビューやテストに便利です。
HermesのステップではDeepSeekのAPIキーを求められます。キーを入力するか、キーが保存されているファイル(`~/my-api-key.txt` など)を指定してください。DeepSeekを使う特別な理由はありません。単に、執筆時点において、十分に高性能で最も安価なモデルだからです。Hermesはどんなモデルでも動作します。他のモデルも後で追加できるよう、進化させていく予定です。
**skills/** — プロジェクトの核。PDP-1の知識が記述された読みやすいMarkdownファイル。
- `pdp1-assembly` — 命令セット、MACRO-1、プログラミングパターン
- `pdp1-debugging` — 新しいデバッガ・プロトコル、レシピ、pdp1dbgヘルパークライアント
- `pdp1-plumbing` — シミュレータ自体の知識
- `pdp1-type30-vision` — 画面の読み取り(pdp1_dpyツール経由)
- `pdp1-tutor` — PDP-1アプリケーションのガイド付きツアー(開発中ですが、現状でも利用可能)
- `pdp1-code-review` — 構造化されたコードレビュー・ワークフロー
**hermes-specific/**
- `SOUL.md` — Hermesが念頭に置くべきルール
- `pdp1-learnings` テンプレート — エージェント自身の学習ファイル。読んで、好みに合わせて変更してください。知識ベースを改善するために、私たちと共有してくれると嬉しいです。
**install.sh** — インストーラー・スクリプト。Raspberry Pi OSとUbuntuでテスト済み。
これらはすべてHermes専用である必要はありませんし、DeepSeekに依存しているわけでもありません。スキルはプレーンなMarkdownであり、Claude CodeなどのほとんどのAIがこれらを吸収できます。エージェントがあなたと同じようにマシンを操作できるようにするためのAPIは、スキルファイル自体に記述されています。
このプロジェクトの一環として、AIがあなたとPiDP-1を共有できるように、ベースとなるpidp1シミュレータが更新されました。これは将来のプロジェクトにも役立ちます。また、PDP-1シミュレータには大幅に改善されたデバッガが追加されました。これはAIが常にフロントパネル越しにデバッグすることを強行されないようにするため(AIにとって有用)、そして人間のPDP-1ハッカーにとっても有用です。これらもスキルファイルに記述されています。
私たちは、Hermesのような自己学習型エージェントは、時間が経つにつれて新しいことを学ぶだけでなく、以前のミスに囚われてしまうこともあることに気づきました。逸話として、三目並べをプログラミングしていた際、AIがオンラインでサンプルコードを探し、役立つPDP-8のコードを見つけてしまい、その後一週間もの間、PDP-1の「サブルーチン命令のバグ」について混乱し続けてしまったことがありました……。
そのため、自己学習の内容は「キュレーション(整理・選別)」された状態に保つのが最善だと判断しました。標準のスキルを直接編集する代わりに、エージェントは学んだことを自身の `pdp1-learnings` スキルファイル(`~/.hermes/skills/pdp1-learnings/`)に書き込むよう指示されています。時間がある時にエディタでこのファイルを開いてみてください。非常に興味深い内容になっています。
私たちは、人々が `pdp1-learnings` ファイルを提出してくれることを願っています。それを使ってコア・スキルを改善できるからです。ローカルで行うこともできます:
`/opt/agent-pdp1/skills/curate.sh` を実行して書き込み保護を解除してください。
その後、Hermesエージェントに `pdp1-learnings` をコア・スキルへとキュレートするよう指示し、それぞれの学習内容を一緒に確認して、何が有用で何がそうでないかを判断させてください。もちろん、……
原文(英語)を表示
An AI companion for the PiDP-1 — installs a tutor, guide, and capable copilot on your replica PDP-1. It sits next to you, and can see the display/operate the front panel just like you. Learn how to use the PDP-1 faster, and more enjoyably.
The PiDP-1 is a replica of the original Digital Equipment Corporation
PDP-1 computer.
See the PiDP-1 web site
It is great to have a proper PDP-1 Hacker sit next to you at the front panel. Perhaps having replica Hackers around is just as important as having replicas of their old computers?
I wanted to make an AI companion to the PiDP-1. It is able to vibe-code, but the real purpose is to help people learn how to use the PDP-1 — more quickly, and more enjoyably. Any user, from beginner to advanced.
It is not too hard in 2026. This is a first attempt; I hope it will be picked up and improved. So, feel free to fork, recycle, replace, whatever.
It can install a complete open-source Hermes Agent setup on your PiDP-1 (or any Linux machine). All it needs is an external LLM to connect to. As of November 2026, I'd suggest the cheap, good-enough DeepSeek, but it is up to you. The PDP-1 "problem set" is small enough, and $10 at Deepseek gives you months of playtime. And there is no subscription: when the money runs out, you are off the hook, unless you want more playtime. I like that. The install script will set it up in a few minutes.
This project comes in three independent parts:
- The skills — markdown files that make any AI you like into a PDP-1 expert.
- Code to share the PiDP-1 — a companion update in the pidp1 repo itself, so your AI has the same access to the PDP-1 as you: it can see and type on the typewriter, see and control the front panel, and watch the Type 30 graphics display. The install script will do that update for you.
- And if you want it: this also installs a turn-key Hermes Agent on the PiDP-1 to use the above. Hermes is an open-source AI agent that runs locally, and it is charming because it learns as you use it: your preferences, and its own past mistakes. It really gets good after an hour or two! You chat with your expert through its own window, whilst it can handle the PDP-1 just as you can.
Admittedly, as a side-effect, the AI becomes a competent PDP-1 coding agent. It was trained doing code reviews of major PDP-1 programs, and it wrote some nice demo code, like the tic-tac-toe game above.
But, personal view: retrocomputing is best left AI-free in that sense. There is no sense of achievement or historical value in letting an AI write an amazing new program on a PDP-1.
Instead, its goal is to be a tutor, click to zoom the screen shot. It can teach you to operate the machine, teach assembly programming, help find bugs. And also, give you an interactive tour through the process of writing code in ET, assembling it, using DDT. Or show you how to work in Lisp. Or take you through a tour of the best graphics demos.
Almost nobody still has an experienced PDP-1 hacker nearby. So it makes sense to have an AI take that role; it will make learning about the PDP-1 much faster and much more fun.
To see some nice demonstrations:
- ask for a code review of something like the DDT source code — the code-review skill is an amazing teacher, and you will see exactly how powerful this tutor can be. Here is an example of what studying the DDT source code added during the training process.
- new to the PDP-1? Ask for the assembly tour;
- or just ask about the history of demo coding on the PDP-1.
cd /opt
sudo git clone https://github.com/obsolescence/agent-pdp1.git
cd agent-pdp1
./install.sh
Note
The install script will download and install Hermes for you through their headless install option. The user-friendly way. But Hermes is a bit of a moving target, it depends on - well, lots of Linux dependency hell it seems. So at some point in the future: if the Hermes install through my install script breaks: not a problem. Then, just install Hermes yourself, manually. Easily googled. And rerun the install script afterwards to let it complete the Hermes setup. But this install script is tested to work during 2026 and saved some hassle from a manual install.
From now on, to start working with this: do the usual pdp1control start
command, switch the power on (top right of the front panel). Then type hermes --tui
any time you want your companion alongside you. For now, use the PiDP-1's GUI setup, the web server alternative is not tested thoroughly yet.
Works on a PiDP-1 (Pi 4/5, 4 GB RAM; untested: 2 GB RAM). If you don't have one, install this after the pidp1 package, on just any Linux laptop — you get a virtual front panel, and everything else stays the same.
The installer presents a menu. Every step explains itself, and every step can be declined:
- Basic setup — update the pidp1 package, install the agent tools.
- Hermes Agent — setup Hermes, connect DeepSeek (or defer that), add the skills into the agent.
- Update/restore the core skills — an update function. Pull the latest from GitHub. Edits you made to the core skills are replaced, but your PDP-1-Learnings are left alone.
DRY_RUN=1 ./install.sh
simulates the install without changing anything
— handy as a preview, or for testing.
The Hermes step asks for a DeepSeek API key — type/paste it in, or point the installer at a file that holds one (like ~/my-api-key.txt). There is no particular reason to use DeepSeek: it is just, at the time of writing, the cheapest model that is good enough. Hermes runs any model — add others later, things will evolve.
skills/
— core of the project. Readable markdown files with PDP-1 knowledge.
- pdp1-assembly — instruction set, MACRO-1, programming patterns
- pdp1-debugging — the new debugger protocol, recipes, a pdp1dbg helper client
- pdp1-plumbing — knowledge of the simulator itself
- pdp1-type30-vision — reading the screen (through a the pdp1_dpy tool)
- pdp1-tutor — guided tours of PDP-1 applications (still WIP, but OK for now)
- pdp1-code-review — structured code review workflow
hermes-specific/
- SOUL.md - the rules that Hermes should keep in mind
- pdp1-learnings template: the agent's own learning file. Read it and change it to your liking. Perhaps share it with us so we can improve the knowledge base.
install.sh
— the installer script. Tested on Raspberry Pi OS and Ubuntu.
None of this needs to be Hermes-specific — and nothing depends on DeepSeek, either. The skills are plain markdown, and most any AI will absorb them; Claude Code, for instance, will happily adopt them. The API that lets an agent work the machine the same way you do is described in the skills files themselves.
As part of this project, the base pidp1 simulator was updated so an AI can share the PiDP-1 with you. Useful for future projects as well. And the PDP-1 simulator gained a massively improved debugger: useful for the AI, so it is not forced to debug over the front panel all the time; useful for human PDP-1 hackers, too. Again, described in the skills files.
We noticed that a self-learning agent like Hermes will, over time, not just learn new things — it will also get caught in its own previous mistakes. Anecdote: when programming Tic-Tac-Toe, it looked online for more example code, found some helpful PDP-8 code, and then got itself confused for a week about the "bug in the subroutine instructions" of the PDP-1…
So, we decided that the self-learning is best kept curated. Instead of
editing the canonical skills, agents are instructed to write what they learn
to their own pdp1-learnings
skill file
(~/.hermes/skills/pdp1-learnings/
). Read this file in an editor some time —
it is interesting.
We hope people will submit their pdp1-learnings
files, so we can use them
to improve the core skills. You can also do that locally:
/opt/agent-pdp1/skills/curate.sh
— disable the write protection.- Tell your Hermes agent to curate your
pdp1-learnings
into the core skills, and ask it to go through each learning with you, so you can judge what is useful and what is not. Or, of course, tell Hermes to do it for itself. /opt/agent-pdp1/skills/protect.sh
— restore the write protection when you're done.
There is also /opt/agent-pdp1/skills/update.sh
(or menu option 3 of the
installer): it restores your local core skills to the originals from the
GitHub repo — so there is no risk of breaking anything.
Please use the PiDP-1 Google Group: https://groups.google.com/g/pidp-1
And send your pdp1-learnings
files if you want to contribute — through
GitHub, as attachments in the Google Group, or by email. You will have my
email if you are a PiDP-1 user ;-)
- Tell Hermes to be interactive with you, and not to go off figuring things out alone. You want to say things like that regularly, so it remembers.
- Set its
/reasoning
to medium or low for regular chats, maybe tomax
orhigh
when you want it to write a program. Tell it to be concise. - Now and then, tell it to curate its new learnings; I recommend you ask it to that together with you.
- Give it an hour or two of use to get settled in (proving I have some work to do still!).
There is no claim to greatness here. This is experimental, zero copyright or ownership claims — I am just a hobbyist. AI agents will evolve rapidly, so by the time you read this, there may be much better ways to use these skills files. But it is a start: fun, cheap, open source, subscription-free.
We do believe these skills files have some eternal value — they are a thorough knowledge base for anyone, and any AI, to build on. A lot of time was spent getting them effective; improving this curated PDP-1 knowledge is what we think the real value here is.
To close, again, our intention. Preserving PDP-1 legacy is not about vibe coding — this agent can do that, but computer history should be free from AI, IMO.
But...
As people with knowledge of the historical machine start to become scarce, an AI tutor and guide is a very legitimate way of keeping PDP-1 history alive.
Ugh. Lawyers. MIT — see LICENSE. Fork it, recycle it, replace it.