Better HN
topnewbestaskshowjobs
Log inSign up

borhensaidi

0 karma · joined Feb 17, 2026 (9mo ago) · 28 submissions

ai founder
Submissions

comment 3mo ago · link · parent

i build mentionleads.com more than 1billon token used on it

comment 5mo ago · link · parent

we are working on it check the new updates

3.

AgentForge–28 production-grade skills that make AI agents ship reliable code(github.com ↗)

1 points · by borhensaidi · 5mo ago · discuss

4.

TokenTamer A proxy that reduces LLM token usage through context compression(github.com ↗)

1 points · by borhensaidi · 5mo ago · 2 comments

comment 9mo ago · link · parent

I got frustrated with LangChain being impossible to audit (500+ transitive dependencies, 100K+ LOC), so I built picoagent — an AI agent framework with only numpy and websockets as external dependencies.

The interesting technical decision: instead of prompting the LLM to pick a tool, I use Shannon Entropy (H(X) = -Σp·log₂(p)) on the softmax score distribution over available tools. If entropy is above 1.5 bits, the agent asks for clarification instead of guessing. In my tests this cuts false positive tool calls by 40-60%.

The threshold adapts over time using a simple online learning system that tracks success/failure rates per session — no external data sent anywhere.

Other things that might be interesting to HN: - Zero-trust sandbox with 18+ regex deny patterns blocking rm -rf, fork bombs, sudo, reverse shells, path traversal - Dual-layer memory: numpy .npz vector embeddings + LLM consolidation to MEMORY.md (no Pinecone, no vector DB) - The entire entropy gate is 64 lines of readable Python - 5 chat channels (Telegram, Discord, Slack, WhatsApp, Email) with unified memory - MCP-native (Model Context Protocol) stdio server - Hot-reloadable Markdown skills via SIGHUP

It's early and rough. I'm looking for feedback on: - Is 1.5 bits the right entropy threshold or should it be dynamic from day one? - What dangerous shell patterns am I missing in the sandbox? - Is the dual-memory approach (vector + markdown consolidation) worth the complexity?

GitHub: https://github.com/borhen68/picoagents

Happy to answer questions about any of the implementation decisions.

6.

AI agent with 2 deps that uses Shannon Entropy to decide when to act vs. ask(github.com ↗)

2 points · by borhensaidi · 9mo ago · 1 comment

7.

Show HN: Sovereign – Multi-agent OS with GraphRAG memory and HITL checkpoints(github.com ↗)

1 points · by borhensaidi · 9mo ago · discuss