frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Two-way Discord bridge-autonomous Claude Code sessions(WebSocket+local queue)

https://github.com/AetherWave-Studio/autonomous-claude-code
1•Drew-Aetherwave•1h ago

Comments

Drew-Aetherwave•1h ago
Claude Code is pull-based — it only acts when tools fire or the user sends CLI input. Built this to enable real-time two-way communication between a phone and a running autonomous session.

*Architecture:*

Inbound: Discord → WebSocket (discord.js v14) → ~/.claude/discord-inbox.jsonl → PostToolUse hook → Claude as hook feedback

Outbound: Stop/Error hooks → Discord webhook → per-session named thread → phone push notification

*Why local file over API polling:*

First version polled the Discord API every 2 minutes via a PostToolUse hook. Worked, but latency was bounded by poll interval and Discord API rate limits. Replacing it with a persistent WebSocket bridge writing to a local file brought latency down to microseconds — bounded only by tool call frequency. JSONL with atomic truncation handles the race condition between bridge writes and hook reads.

*Hook wiring:*

- PreToolUse: auto-starts bridge on first tool call (silent no-op if already running) - PostToolUse: reads and clears local inbox - Stop/Notification: fires outbound webhook with STATUS block

One thing worth noting: Discord's webhook execute endpoint returns 204 empty by default. Needed ?wait=true to get the response body containing channel_id for thread routing.

*Honest limitation:*

When Claude is idle at a decision prompt, it's not firing tools — PostToolUse doesn't run, inbox doesn't get read. Works for redirecting mid-active-run, not for answering stopped prompts.

Tested overnight on 27K LOC across two parallel sessions

US tech supplied Israel with AI models, tech's role in warfare – AP News

https://apnews.com/article/israel-palestinians-ai-weapons-430f6f15aab420806163558732726ad9
1•abdelhousni•48s ago•0 comments

Free tool to analyze employee survey data in 60 seconds (no signup)

https://getdistill.tech/landing
1•khnfrhn•3m ago•1 comments

A pretty looking web for a quantum mechanics tool

https://github.com/Jamessfks/mace
1•Jamessfks123•6m ago•0 comments

The Atlantic AI Watchdog

https://www.theatlantic.com/category/ai-watchdog/
1•fortran77•8m ago•0 comments

Poll: How do you think LLMs will affect the job market for software developers?

1•bwestergard•9m ago•0 comments

Show HN: Engram – Memory for AI coding agents (2.5K installs, 80% on LOCOMO)

https://www.engram.fyi
1•tstockham•11m ago•0 comments

Show HN: Openpista – AI Agent for OS Control via Telegram/CLI in Rust

https://github.com/openpista/openpista
1•pista_chio•13m ago•0 comments

Show HN: I put Claude Code inside a Telegram bot for voice memos

https://github.com/baryhuang/ai-meeting-notes-agent
1•buryhuang•15m ago•0 comments

We Built a Video Rendering Engine by Lying to the Browser About What Time It Is

https://blog.replit.com/browsers-dont-want-to-be-cameras
2•darshkpatel•16m ago•0 comments

Show HN: Userscript to Display Age/Karma of HN Users

https://gist.github.com/m4chinations/f6d58711a94077d96cf4157665b0bab3
3•linksbro•19m ago•0 comments

Show HN: A POST only back end framework

https://nile-js.github.io/nile/
1•HusseinKizz•21m ago•0 comments

Anthropic and Palantir Bring Claude to U.S. Intelligence and Defense (2024)

https://investors.palantir.com/news-details/2024/Anthropic-and-Palantir-Partner-to-Bring-Claude-A...
1•notRobot•22m ago•0 comments

Latest progress helping Qwen3-4B Learn

https://github.com/kibbyd/adaptive-state
1•kibbyd1985•38m ago•0 comments

Casting SALT like Metal – What Happens? [video]

https://www.youtube.com/watch?v=HaY-gvgS6JY
1•rmast•39m ago•0 comments

Using Git While Trans

https://code.curly.kiwi/2026/02/27/using-git-while-trans/
5•grandsham•40m ago•0 comments

Elliptic Curve Cryptography

https://growingswe.com/blog/elliptic-curve-cryptography
2•subset•43m ago•0 comments

How many AA batteries does it take to power a PC setup? [video]

https://www.youtube.com/watch?v=U5lskFXDbWs
1•rmast•45m ago•0 comments

I built an AI tool to replace hiring agencies

https://hire-flow-io.netlify.app
1•enima•47m ago•1 comments

Berkshire Hathaway – 2025 annual letter [pdf]

https://www.berkshirehathaway.com/letters/2025ltr.pdf
2•kamaraju•49m ago•0 comments

Why Your Laptop May No Longer Be Where Work Happens

https://clouddataandai.substack.com/p/why-your-laptop-may-no-longer-be
1•mitul_suthar•50m ago•0 comments

Show HN: Word-doodle – browser-based generative doodle text art engine

https://github.com/j-ncel/word-doodle
1•koalux•52m ago•1 comments

Show HN: SpecLock – AI Constraint Engine that stops AI from breaking locked code

https://github.com/sgroy10/speclock
1•sgroy10•1h ago•0 comments

Show HN: A GFM+GF-MathJax/Latex HTML formatting adventure

https://github.com/scottvr/phart/blob/main/docs/GHM-LATEX.md
1•ycombiredd•1h ago•0 comments

Diffusion Models (2024)

https://andrewkchan.dev/posts/diffusion.html
1•vinhnx•1h ago•0 comments

Show HN: I built a free AI study tool– paste notes, get flashcards in 10 seconds

https://prepareyourself.app
1•digi_wares•1h ago•0 comments

Josh Collison and Dwarkesh Patel Interview Elon Musk [video]

https://www.youtube.com/watch?v=BYXbuik3dgA
3•surprisetalk•1h ago•0 comments

Human brain cells on a chip learned to play Doom in a week

https://www.newscientist.com/article/2517389-human-brain-cells-on-a-chip-learned-to-play-doom-in-...
5•alex_young•1h ago•0 comments

Malm Whale in Gothenburg

https://www.atlasobscura.com/places/malm-whale
2•thunderbong•1h ago•0 comments

Plugtest

https://en.wikipedia.org/wiki/Plugtest
2•dhorthy•1h ago•0 comments

Show HN: EmCogni Code, the context engine for the "why" behind your codebase

https://www.emcogni.com/
1•ssbodapati•1h ago•0 comments