Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(terminal): add four classic commands on demand (#105606)

Marius Andra5f38362eede6
diff --git a/frontend/src/scenes/terminal/TerminalScene.stories.tsx b/frontend/src/scenes/terminal/TerminalScene.stories.tsx
index ed7c108a194e..8c1e70cfda6d 100644
--- a/frontend/src/scenes/terminal/TerminalScene.stories.tsx
+++ b/frontend/src/scenes/terminal/TerminalScene.stories.tsx
@@ -383,3 +383,12 @@ export const LiveDoom: StoryObj<typeof TerminalScene> = {
window.posthogTerminal?.write('doom\n')
},
}
+
+export const LiveClassics: StoryObj<typeof TerminalScene> = {
+ tags: ['!test'],
+ parameters: { liveRuntime: true },
+ play: async () => {
+ await waitFor(() => expect(terminalLogic.values.status).toBe('ready'), { timeout: 120_000 })
+ window.posthogTerminal?.write('figlet PostHog\n')
+ },
+}
diff --git a/frontend/src/scenes/terminal/posthogFilesystem.ts b/frontend/src/scenes/terminal/posthogFilesystem.ts
index e771cd20b5ec..09725144c3ff 100644
--- a/frontend/src/scenes/terminal/posthogFilesystem.ts
+++ b/frontend/src/scenes/terminal/posthogFilesystem.ts
@@ -174,6 +174,12 @@ mcview, mcedit, and mcdiff also run directly from the shell.
tree lists folders and files. ncdu -r browses disk usage without allowing deletion.
node (or nodejs) installs Node.js on first use. pi installs the pi coding harness
and Node.js on first use. Try node --version or pi --help.
+For a break, try these commands. Each downloads on first use:
+ sl Run a steam train across the terminal
+ cmatrix Watch Matrix-style falling text (q quits)
+ figlet PostHog Print an ASCII banner; also accepts piped text
+ nyancat Watch an animated rainbow cat (Ctrl+C quits)
+Ctrl+C also stops the train and Matrix animation.
The browser downloads verified packages from GitHub and caches them when storage
is available. Stopping the terminal discards the installed files and local sessions.
pi runs offline: model calls, login, and package downloads need a network bridge.
diff --git a/frontend/src/scenes/terminal/terminal-packages.json b/frontend/src/scenes/terminal/terminal-packages.json
index 571d7d26f01a..02a2a355bba6 100644
--- a/frontend/src/scenes/terminal/terminal-packages.json
+++ b/frontend/src/scenes/terminal/terminal-packages.json
@@ -36,9 +36,57 @@
"commands": {
"doom": "/opt/posthog-packages/doom-0.13.0-1/bin/doom"
}
+ },
+ "sl": {
+ "name": "sl",
+ "version": "5.02-r1",
+ "file": "archives/sl-5.02-r1-linux-i386.tar.gz",
+ "sha256": "febfbfc8b107a88412d2ec3f2f6360fd8d58c7c973a0cfe1679ae97b11820959",
+ "size": 669005,
+ "archiveSize": 1495040,
+ "dependencies": [],
+ "commands": {
+ "sl": "/opt/posthog-packages/sl-5.02-r1/bin/sl"
+ }
+ },
+ "cmatrix": {
+ "name": "cmatrix",
+ "version": "2.0-r2",
+ "file": "archives/cmatrix-2.0-r2-linux-i386.tar.gz",
+ "sha256": "399f246673df9038beffdbf2d3a555a23d525927f16b142ab55965143e102c15",
+ "size": 670481,
+ "archiveSize": 1495040,
+ "dependencies": [],
+ "commands": {
+ "cmatrix": "/opt/posthog-packages/cmatrix-2.0-r2/bin/cmatrix"
+ }
+ },
+ "figlet": {
+ "name": "figlet",
+ "version": "2.2.5-r3",
+ "file": "archives/figlet-2.2.5-r3-linux-i386.tar.gz",
+ "sha256": "53aae756d5516ff39a935f37beba32f4b0738a1c47d04643bf27ea44abc64efe",
+ "size": 599456,
+ "archiveSize": 1710080,
+ "dependencies": [],
+ "commands": {
+ "figlet": "/opt/posthog-packages/figlet-2.2.5-r3/bin/figlet"
+ }
+ },
+ "nyancat": {
+ "name": "nyancat",
+ "version": "1.5.2-r1",
+ "file": "archives/nyancat-1.5.2-r1-linux-i386.tar.gz",
+ "sha256": "28d93810fa5e6428643ac6628587923cd2ac87c6e273a82473745a89473ca03f",
+ "size": 495103,
+ "archiveSize": 1044480,
+ "dependencies": [],
+ "commands": {
+ "nyancat": "/opt/posthog-packages/nyancat-1.5.2-r1/bin/nyancat"
+ }
}
},
- "baseUrl": "https://raw.githubusercontent.com/PostHog/terminal-assets/3252dde63282c859393fad84ae89de2f4b19b95e",
+ "baseUrl": "https://raw.githubusercontent.com/PostHog/terminal-assets/31fc564def31b2e90d863218ffd040c9dff0e0ed",
"kernel": {
"file": "images/linux-fb-bzimage.bin",
"sha256": "33ca60bd4832f0cf202845fa7ac1a60776c0215e8a20d21a3f07d3722f99e415"