Overview
Use Claude Code in the Claude desktop app to plan and write a small Forth in PDP-7 assembly, adding one word at a time and checking it in an emulator you choose.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Claude Desktop · Claude Code
- Prerequisites
- Claude Desktop on a plan that includes Claude Code (Pro, Max, Ultra, Team or Enterprise per the download page), PDP-7 references and an emulator you chose.
How It Works
1. Collect a PDP-7 instruction set reference and assembler notes, and choose a PDP-7 emulator you can run. Neither was verified for this entry. 2. Create a repository holding those notes and a short scope: inner interpreter, stacks, dictionary, a few arithmetic words and a list of test inputs with expected output. 3. In Claude Desktop, open the Code tab on that folder and ask Claude Code for a plan that cites your reference notes for each machine assumption. Approve it before code is written. 4. Build one piece at a time, assemble it, run it in the emulator and record expected against observed output. 5. Check every claim about instructions, word size and input and output against your references, not against the explanation. 6. Run the whole test list yourself, review the diff and commit by hand.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Desktop.
- Connect the toolsConnect the tools this workflow relies on: Claude Desktop, Claude Code.
- Check the prerequisitesClaude Desktop on a plan that includes Claude Code (Pro, Max, Ultra, Team or Enterprise per the download page), PDP-7 references and an emulator you chose.
- Gather your detailsCollect what the prompt asks for: Folder with machine references, File describing the words wanted, Emulator you chose.
- Run the starter promptPaste the starter prompt below into Claude Desktop and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at claude.com before you rely on it.
Practical Starter Prompt: Plan a Small PDP-7 Forth
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
In this folder are my PDP-7 references in [Folder with machine references] and the scope in [File describing the words wanted]. Write a plan for a minimal Forth in PDP-7 assembly, naming the reference page behind every assumption about the instruction set, memory and input and output, and listing what you cannot confirm. Wait for my approval. Then implement one step at a time, give me the commands to assemble and run it with [Emulator you chose], and compare the output I paste or you capture with the expected result. Do not commit; ask before running any command.You choose and install the emulator, approve the plan and commands, verify machine facts against your references and commit yourself.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The cited pages say Claude Code runs in the desktop app, plans, writes code across files and verifies it works. They say nothing about the PDP-7 or Forth, and no working interpreter is claimed here.
Limitations and Considerations
Machine details for old hardware are easy to get wrong, so insist on a reference for each and test small steps. Check how closely your chosen emulator follows the references. Run downloaded emulators and old software images only from sources you trust, and check their licences. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- Download Claude | Claude by Anthropic (opens in a new tab)
Project documentation · claude.com · Undated · Source checked 2 Dec 2026, 13:21 UTC
What this source supports
- Claude Code runs directly in the desktop app.
- Claude Code and Claude Cowork are available on Pro, Max, Ultra, Team, and Enterprise.
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 2 Dec 2026, 13:21 UTC
What this source supports
- Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
- Claude Code plans the approach, writes the code across multiple files, and verifies it works.