frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: OpenSymbolicAI – Agents with typed variables, not just context stuffing

2•rksart•2h ago
Hi HN,

We've spent the last year building AI agents and kept hitting the same wall: prompt engineering doesn't feel like software engineering. It feels like guessing.

We built OpenSymbolicAI to turn agent development into actual programming. It is an open-source framework (MIT) that lets you build agents using typed primitives, explicit decompositions, and unit tests.

THE MAIN PROBLEM: CONTEXT WINDOW ABUSE

Most agent frameworks (like ReAct) force you to dump tool outputs back into the LLM's context window to decide the next step.

Agent searches DB.

Agent gets back 50kb of JSON.

You paste that 50kb back into the prompt just to ask "What do I do next?"

This is slow, expensive, and confuses the model.

THE SOLUTION: DATA AS VARIABLES

In OpenSymbolicAI, the LLM generates a plan (code) that manipulates variables. The actual heavy data (search results, PDF contents, API payloads) is stored in the Python/runtime variables and is never passed through the LLM context until a specific primitive actually needs to read it.

Think of it as pass-by-reference for Agents. The LLM manipulates variable handles (docs), while the Python runtime stores the actual data.

EXAMPLE: A RAG AGENT

Instead of the LLM hallucinating a plan based on a wall of text, it simply writes the logic to manipulate the data containers.

class ResearchAgent(PlanExecute):

  @primitive
  def retrieve_documents(self, query: str) -> list[Document]:
      """Fetches heavy documents from vector DB."""
      # Returns heavy objects that stay in Python memory
      return vector_store.search(query)

  @primitive
  def synthesize_answer(self, docs: list[Document]) -> str:
      """Consumes documents to generate an answer."""
      # This is the ONLY step that actually reads the document text
      context = "\n".join([d.text for d in docs])
      return llm.generate(context)

  @decomposition(intent="Research quantum computing")
  def _example_flow(self):
      # The LLM generates this execution plan.
      # Crucially: The LLM manages the 'docs' variable symbol,
      # but never sees the massive payload inside it during planning.
      docs = self.retrieve_documents("current state of quantum computing")
      return self.synthesize_answer(docs)
agent = ResearchAgent() agent.run("Research the latest in solid state batteries")

DISCUSSION

We'd love to hear from the community about:

Where have you struggled with prompt engineering brittleness?

What would convince you to try treating prompts as code?

Are there other domains where this approach would shine?

What's missing to make this production-ready for your use case?

The code is intentionally simple Python, no magic, no framework lock-in. If the approach resonates, it's easy to adapt to your specific needs or integrate with existing codebases.

Repos:

Core (Python): https://github.com/OpenSymbolicAI/core-py

Docs: https://www.opensymbolic.ai/

Blog (Technical deep dives): https://www.opensymbolic.ai/blog

Show HN: Octosphere, a tool to decentralise scientific publishing

https://octosphere.social/
36•crimsoneer•5h ago•13 comments

Show HN: Sandboxing untrusted code using WebAssembly

https://github.com/mavdol/capsule
67•mavdol04•8h ago•19 comments

Show HN: C discrete event SIM w stackful coroutines runs 45x faster than SimPy

https://github.com/ambonvik/cimba
44•ambonvik•6h ago•16 comments

Show HN: PII-Shield – Log Sanitization Sidecar with JSON Integrity (Go, Entropy)

https://github.com/aragossa/pii-shield
14•aragoss•6h ago•8 comments

Show HN: Safe-now.live – Ultra-light emergency info site (<10KB)

https://safe-now.live
167•tinuviel•13h ago•71 comments

Show HN: A skill for agents to work with the JJ VCS

https://github.com/danverbraganza/jujutsu-skill
2•nvader•1h ago•0 comments

Show HN: I built "AI Wattpad" to eval LLMs on fiction

https://narrator.sh/llm-leaderboard
18•jauws•5h ago•26 comments

Show HN: Real-world speedrun timer that auto-ticks via vision on smart glasses

https://github.com/RealComputer/GlassKit/tree/main/examples/rokid-rfdetr
2•tash_2s•2h ago•1 comments

Show HN: Claude.md is doing too much

https://visr.dev
2•sourishkrout•2h ago•0 comments

Show HN: OpenSymbolicAI – Agents with typed variables, not just context stuffing

2•rksart•2h ago•0 comments

Show HN: Latchkey – inject credentials into agents' curl calls

https://github.com/imbue-ai/latchkey
11•Wuzzy•2h ago•0 comments

Show HN: SendRec – Open-source, EU-hosted alternative to Loom

https://sendrec.eu/blog/why-eu-teams-need-european-loom-alternative/
2•alexneamtu•2h ago•0 comments

Show HN: difi – A Git diff TUI with Neovim integration (written in Go)

https://github.com/oug-t/difi
43•oug-t•9h ago•46 comments

Show HN: Autoliner – write a bot to control a virtual airline

https://autoliner.app/
3•msvan•4h ago•0 comments

Show HN: Emmtrix ONNX-to-C Code Generator for Edge AI Deployment

https://github.com/emmtrix/emx-onnx-cgen
3•emx-can•4h ago•0 comments

Show HN: Adboost – A browser extension that adds ads to every webpage

https://github.com/surprisetalk/AdBoost
116•surprisetalk•1d ago•124 comments

Show HN: Minikv – Distributed key-value and object store in Rust (Raft, S3 API)

https://github.com/whispem/minikv
61•whispem•14h ago•34 comments

Show HN: Nomad Tracker – a local-first iOS app to track visas and tax residency

https://nomadtracker.app
2•gotzonza•5h ago•0 comments

Show HN: Stigmergy pattern for multi-agent LLMs (80% fewer API calls)

https://github.com/KeepALifeUS/autonomous-agents
3•keepalifeus•5h ago•0 comments

Show HN: kiln.bot - Orchestrate Claude Code from GitHub

7•elondemirock•5h ago•2 comments

Show HN: Homomorphically Encrypted Vector Database

https://github.com/cloneisyou/HEVEC
2•cloneisme•5h ago•3 comments

Show HN: TrueLedger – a local-first personal finance app with no cloud back end

https://trueledger.satyakommula.com
4•satyakommula•6h ago•0 comments

Show HN: ItemGrid – Free inventory management for single-location businesses

https://itemgrid.io
3•boxqr•7h ago•0 comments

Show HN: I built an AI movie making and design engine in Rust

https://github.com/storytold/artcraft
5•echelon•7h ago•1 comments

Show HN: LUML – an open source (Apache 2.0) MLOps/LLMOps platform

https://github.com/luml-ai/luml
7•okost1•7h ago•2 comments

Show HN: Open-source semantic search over your local notes via CLI

https://github.com/chenxin-yan/nia-vault
8•jellyotsiro•19h ago•3 comments

Show HN: govalid – Go validation without reflection (5-44x faster)

https://github.com/sivchari/govalid
2•sivchari•8h ago•0 comments

Show HN: Sentinel Gate – Open-source RBAC firewall for MCP agents

https://github.com/Sentinel-Gate/Sentinelgate
2•Sentinel-gate•8h ago•1 comments

Show HN: Wikipedia as a doomscrollable social media feed

https://xikipedia.org
428•rebane2001•1d ago•140 comments

Show HN: Kannada Nudi Editor Web Version

https://nudiweb.com/
7•Codegres•18h ago•0 comments