frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: PAI, a Linux-y personal-assistant for Mac

https://www.whitematterlabs.ai/
1•ardatasci•1h ago
Hi HN!

I've been spending the past month on PAI, a Linux-esque harness for a personal assistant AI for your Mac. Instead of giving a chatbot a bunch of tools, I wanted to just drop the LLM into a terminal and see how it'd fare.

I've been using it to manage my calendar, 5+ email accounts, and engaging with / responding to people in a timely manner (casus belli for this entire project).

After seeing how other always-on assistants were designed, I thought the Unix / Linux philosophy of system design could be applied to AI harnesses, and I wanted to experiment with how it'd hold up compared to them. So, I built PAI with the following things in mind:

1. Engaging "code mode" in the LLM (LLMs are natural SDEs / SysAdmins) - If you remember the [code mode](https://blog.cloudflare.com/code-mode/) post from a while ago, I wanted to try and utilize those capabilities within the model for it to naturally interface with the harness rather than trying to load it up with a bunch of exposition. An LLM naturally knows that config-related things belong in /etc/, how to `cd`, `cat`, `tail` stuff, etc.

2. Avoid polling with an LLM. - I wanted to see if I could avoid polling because it's a waste of tokens and an arbitrary interval seems inelegant. - Instead, I created an event bus that wakes the LLM and accepts arbitrary sources that PAI might wire up itself. - Polling with a script is sometimes unavoidable and fine.

3. PAI has its own FHS(-ish) directory - The directory hosts several different users (agents) in ~/.pai/home/; Default configuration is a root agent, the user-facing agent, and the `librarian' which handles memory consolidation and learning and whatnot. - Each agent can subscribe to different events from the source, have different perms to access/run stuff.

4. Tools are binaries, APIs / connectors are drivers (& everything is a file) - This is more of a suggestion than a rule I strictly followed, but basically every tool is an executable and every event producer follows the shape of a driver in Linux. Everything is a process that lands in /proc/, events are files, etc.

5. PAI has its own package manager - Aptly called `paiman`, this is just a way for PAIs to share new things they write upstream. I realize this is insanely insecure (not sure how to make it secure if I'm being honest) so I haven't actually made upstream commits possible.

6. Is grep ~ vector search? - I wanted to see if just grep (rg) is good enough since realistically latency is a non-issue here anyway. I might experiment with vector search later.

7. I hate logging in to all my accounts - I used the local SQLite DBs that were stored on Mac to integrate with iMessage and Mail. It works out-of-box (given that your Mac has those apps set up).

*Things you should know before trying * There is no sandbox. PAI expects full disk access. PAI copies your chrome cookies into a separate chrome instance for playwright. You can see everything it's doing though. FOSS & BYOK. I've been using $5 of credit w/ Deepseek and I've yet to run out. If there's interest I might turn it into a cloud thing but I doubt it :D

Try it out with the instructions at https://whitematterlabs.ai | gh: https://github.com/whitematterlabs/pai . Also please excuse the shameless LLM-generated site :-)

Any comments, thoughts, or suggestions would be much appreciated. You can also just tell PAI to change whatever you might not like about it.

Trans Sahara West to East

https://sahara-overland.com/2017/02/14/sahara-west-to-east-crossings/
1•FinnKuhn•34s ago•0 comments

Chemical accidents rise as Trump administration proposes weakening safety rules

https://insideclimatenews.org/news/30062026/hazardous-chemical-accidents-rise-as-safety-rules-wea...
3•rbanffy•6m ago•0 comments

The Munition in Every Press Release

https://twmrg.substack.com/p/the-munition-in-every-press-release
1•alfino•8m ago•0 comments

Fender – Docker socket proxy that maps image refs to registries you define

https://github.com/marketplace/actions/fender-ci
1•avivklas•8m ago•1 comments

Show HN: Open-source CLI for SKILL.md registry and parser lookup

https://github.com/gaia-research/gaia-skill-tree
1•nova-gaia•10m ago•0 comments

Music that keeps you focused

https://www.ssp.sh/brain/music-that-keeps-you-focused/
2•zazuke•12m ago•0 comments

Chamberlain murder trial artefacts paint picture of frenzy around 1982 case

https://www.abc.net.au/news/2026-06-28/lindy-chamberlain-1982-murder-trial-memorabilia-museum-art...
1•Tomte•15m ago•0 comments

Show HN: Prebuilt RISC-V64 Binaries for GCC, PyTorch, Kubernetes, and More

https://github.com/Cloud-V-10xE/RISC-V-software
1•alitariq4589•17m ago•0 comments

South Korea's hottest new bachelors are chip workers

https://www.technologyreview.com/2026/07/06/1140000/south-korea-bachelors-samsung-skhynix-chip-wo...
1•joozio•20m ago•0 comments

Show HN: Terminal view of news and current events for cities across the globe

https://x.tty.news/
2•whatl3y•23m ago•0 comments

Tlbic: A Local Basic Income Proposal Built with AIs to Combat Despair

https://drive.google.com/file/d/16pfAwZc1E-X8waY3pyf8XUTVY60kUIvS/view?usp=drive_link
2•michikawa59•27m ago•1 comments

SvelteChatKit: Provider agnostic AI chat UI for OpenAI, Dify, n8n, and others

https://github.com/kristofers322/SvelteChatKit
2•kristofers32•28m ago•0 comments

Buried Apple Feature Turns an iPhone into the Perfect Kids' Dumb Phone

https://www.wired.com/story/this-buried-apple-feature-turns-an-iphone-into-the-perfect-kids-dumb-...
2•PotatoNinja•28m ago•0 comments

Ask HN: Open-source website builders for animated sites like Higgsfield?

2•adithyaharish•31m ago•0 comments

Kernels

https://huggingface.co/blog/revamped-kernels
1•subset•33m ago•0 comments

How the U.S. Engineered Its Sovereignty

https://spectrum.ieee.org/us-engineered-sovereignty
1•rbanffy•33m ago•0 comments

API Cheat Sheet

https://www.mariusb.net/blog/2026/07/ai-api-cheat-sheet/
1•mariusb16•35m ago•0 comments

What alerting on 1.8M outages has thought us about downtime

https://ohdear.app/uptime-statistics
3•Mojah•36m ago•0 comments

The Internet Is Dead and Nobody Cares [video]

https://www.youtube.com/watch?v=PUSY6mtqQDI
2•RansomStark•39m ago•1 comments

Show HN: Product Hunters liked my idea - an AI journal with memory

https://bestjournalapp.com
1•kartik_malik•44m ago•1 comments

Despite the darkness, I still see signs of hope in America

https://arstechnica.com/culture/2026/07/at-250-years-there-are-still-reasons-for-hope-in-america/
1•rbanffy•44m ago•0 comments

X402, a static blog monetization excercise

https://shtein.me/posts/x402-poc/
2•morty28•44m ago•0 comments

Sakana Translate: Sakana Chat Now Supports Translation

https://sakana.ai/translate-release/
1•takakaze•45m ago•0 comments

I run enterprise-grade CI at solo-founder scale

https://lionshead.digital/notes/why-i-run-enterprise-grade-ci-at-solo-founder-scale
1•earnestamateur•49m ago•0 comments

What 650k commits say about how crypto bugs change

https://twitter.com/GustavHartz/status/2073819470796128402
1•GustavHartz•51m ago•0 comments

Heinz tomato ketchup and the sweet taste of market dominance

https://www.economist.com/culture/2026/07/02/heinz-tomato-ketchup-and-the-sweet-taste-of-market-d...
4•bookofjoe•52m ago•1 comments

You May Not Need Eight Hours of Sleep

https://www.nytimes.com/2026/07/05/opinion/sleep-health-8-hours.html
3•XzetaU8•52m ago•0 comments

Show HN: Paint the Earth on a live, interactive globe (collaborative art.)

https://earth.tattoo
5•earth-tattoo•54m ago•2 comments

Secure Unix ancestor KSOS did type safety before Rust made it cool

https://www.theregister.com/os-platforms/2026/07/06/secure-unix-ancestor-ksos-did-type-safety-bef...
2•sohkamyung•55m ago•0 comments

Bitverzo Analyze Any Website

https://bitverzo.com/
1•stob•57m ago•0 comments