r/lowlevel • • Oct 13 '26

I built a 3D Linux process inspector using Rust, eBPF, and ptrace

ProcInSh is a web-based process inspector for Linux.

Inspired by Ghost in the Shell, it lets you wander through process space with your ghost.

ProcInSh lets you explore what's happening inside your Linux system through interactive 3D graphics.

It visualizes running processes, inter-process communication, file I/O, external network connections, and process tree structures. Processes glow when they run on a CPU.

The backend is written in Rust and collects information from several Linux interfaces:

  • procfs

  • eBPF

  • ptrace

  • perf_event_open

The frontend is written in TypeScript and Three.js.

487 Upvotes

49 comments sorted by

2

u/NagateTanikaze Oct 13 '26

Ok thats pretty fucking awesome. The lines are only the socket connections?

Do you use ptrace to debug each process?

4

u/a_kawashiro Oct 13 '26 edited Oct 14 '26

Yes, socket connection.

I'm usIng perf, eBPF and procfs when you are checking the whole system (the movie shows this mode). When you are checking one process, procinfs use ptrace.

1

u/a_kawashiro Oct 20 '26

I've added an interactive demo. You can explore Google Chrome's processes, memory maps, and IPC activity in 3D, right in your browser. No installation required.

https://akawashiro.github.io/procinsh/demo/replay/space/?recording=chrome-ubuntu26&tour=1

5

u/Shot-Damage-6723 Oct 13 '26

This is kinda cool

10

u/ex_gatito Oct 13 '26

Claude built.

3

u/jaminwicha Oct 15 '26

Actually the compiler writes the code

1

u/Liquid_Magic Oct 13 '26

How do you know?

2

u/ex_gatito Oct 14 '26

Look at commit history

1

u/edave64 Oct 14 '26

What are we supposed to see there?

6

u/DishSoapedDishwasher Oct 14 '26

Typically 10,000 line commits when its AI writing for some idiot, but in general high volumes of changes.

However, having read through a bunch of commits and the code, while I agree its written by Claude, it was done by someone who actually understands software engineering and not some kid with zero knowledge.

Arguably actually well made. Also almost everyone is using Claude now for software, its more a matter of is the user skilled enough to keep it from detailing the project into insanity.

1

u/hyperrealists Oct 17 '26

Claude had to be driven by someone and that person wasn’t you

-2

u/interrupt_hdlr Oct 16 '26

so resentful.

if you build a table and someone congratulates you, you remind them that the hammer did?

1

u/mehAlpaca 13d ago

never had a hammer talk to me and suck me off while i use it

1

u/rabit232pm Oct 13 '26

Wonderful honestly what was u idea before u did it it exciting project

1

u/a_kawashiro Oct 13 '26

My initial idea was a process tree that looked like a family tree, with each process shown as a transparent cube.

1

u/rabit232pm Oct 15 '26

It reminds me of ghost in the shell honestly without graphical UI and animations it look pretty much like it or automation game XD lovely

1

u/CrabTypical3903 Oct 13 '26

Damn man this thing i guess may be absolutely helpful for kernelspace learners! Is it interactive? Is it just visualization or it is only possible to change smth in kernelspace?

1

u/a_kawashiro Oct 13 '26

Although it is just visualization for now, I want to make it interactive in the future.

1

u/New_Pineapple6087 Oct 14 '26

Pouwa c'est monstrueux !!! J'adore !!
Je vais tester dans une VM rapidement !

1

u/ArtisticFox8 Oct 17 '26

Do the dots moving across edges mean anything? What do the edges mean? Do they just denote whose child the process is?

1

u/a_kawashiro Oct 17 '26

> Do the dots moving across edges mean anything
It means there is some communication. For example, when the connections correspond to TCP/UDP connection, the dots correspond to packets.
> What do the edges mean? Do they just denote whose child the process is?
White lines on the floor means process parent-child relationship.

3

u/Diligent_End8130 Oct 13 '26

Finally, TRON became reality! :-) I even can see the Master-Kontroll-Programm!

3

u/slcxs Oct 19 '26

and then, one day.... I got in

2

u/Ka3raDev Oct 14 '26

Honestly even if it's with ai it's still IMPRESSIVE

2

u/OkRepresentative2509 Oct 17 '26

It's excellent, even if it was AI assistance AI still needs guidance, lots of people are AI shaming these days but AI coding is just another tool to aid Devs.

When we moved from assembly to high level IDE's C Python and the like I wonder if the assembly wizards all shamed the rest for programming in English practically or when we moved from making websites with a text editor and lots of trial and error to micromedia's easy gui tools did we mock those who used the tools to speed up web dev.

I see it like this we had to use 1's and 0's then we moved to ASM then higher level and interpreted now we can simply describe what we want, All progress to me and we still have to hold its hand and guide it correctly.

2

u/franticblood Oct 14 '26

sadly vibecoded, but coool non than the less

1

u/BornRoom257 Oct 15 '26

Hey if your gonna vibe code you better know what the heck your even coding. This dude by his commits you can see he knows exactly what Claudes writing and he fully understands it.

1

u/Legal-Swordfish-1893 Oct 14 '26

It's a UNIX System, I know this!

1

u/LiveLogic Oct 14 '26

This is cool.

1

u/Soluchyte Oct 14 '26

You did or AI did.

1

u/jaminwicha Oct 15 '26

I know this

1

u/KrishnazFriend Oct 15 '26

Wowww, very nice, I love low level world, amazing

1

u/Ember_Island Oct 15 '26

Everyone here sees the Jurassic Park interface... I'm hearing the Hackers soundtrack. Where's my Garbage file?

1

u/jeffyclassify Oct 15 '26

That looks amazing! Props to you, great project

1

u/zetneteork Oct 15 '26

I know that. It's Unix.

1

u/dld2517 Oct 16 '26

What the what??? I would get lost in this. How cool!

1

u/OkRepresentative2509 Oct 17 '26

It's excellent, even if it was AI assistance AI still needs guidance, lots of people are AI shaming these days but AI coding is just another tool to aid Devs.

When we moved from assembly to high level IDE's C Python and the like I wonder if the assembly wizards all shamed the rest for programming in English practically or when we moved from making websites with a text editor and lots of trial and error to micromedia's easy gui tools did we mock those who used the tools to speed up web dev.

I see it like this we had to use 1's and 0's then we moved to ASM then higher level and interpreted now we can simply describe what we want, All progress to me and we still have to hold its hand and guide it correctly.

1

u/ourmet Oct 15 '26

Anyone else remember psDoom?

It was doom but all the monster where your processed.   If you kill them it would kill -9 the pid.

Just looked it up, fuck I'm old thatwas made back in 2000.

3

u/[deleted] Oct 14 '26

[removed] — view removed comment

1

u/a_kawashiro Oct 14 '26 edited Oct 14 '26

Thank you for your feedbacks. For README.md, I'll reflect them soon. Reply feature is ... maybe possible. For now if you want to visualize on quiet machine, please connect two machines and connect from quiet machine to busy machine.

1

u/a_kawashiro Oct 18 '26

https://akawashiro.com/software/procinsh/replay/space/?recording=chrome-ubuntu26 I made replay feature. You can check procinsh without installing it at the link.

1

u/KellyShepardRepublic Oct 16 '26

You might be looking for something like the one made for Postgres: https://github.com/NikolayS/pgsimcity