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•1h 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

Running is my meditation (2024) [pdf]

https://research-repository.rmit.edu.au/articles/thesis/_Running_is_my_meditation_an_investigatio...
1•wslh•2m ago•0 comments

Elon Musk's SpaceX Officially Acquires Elon Musk's xAI

https://techcrunch.com/2026/02/02/elon-musk-spacex-acquires-xai-data-centers-space-merger/
1•rbanffy•2m ago•0 comments

The Digital Bastille: What France's War with X Tells Us About Free Speech

https://www.sebs.website/blog/the-digital-bastille
1•Incerto•3m ago•0 comments

Intel Panther Lake Shows Strong Linux CPU Performance and Power Efficiency

https://www.phoronix.com/review/intel-core-ultra-x7-358h-linux
2•rbanffy•3m ago•0 comments

Complete Guide to Claude Concepts

https://github.com/luongnv89/claude-howto/blob/main/claude_concepts_guide.md
1•rob•3m ago•0 comments

No Such Thing as Speed of Light

http://www.russbishop.net/no-such-thing-as-speed-of-light#61429
1•frizlab•3m ago•0 comments

LLM Quantization and NVFP4

http://ternarysearch.blogspot.com/2026/02/llm-quantization-and-nvfp4.html
1•paladin314159•3m ago•0 comments

Use "\A \z", not "^ $" with Python regular expressions – Seth Larson

https://sethmlarson.dev/use-backslash-A-and-z-not-%5E-and-$-with-python-regular-expressions
1•rbanffy•4m ago•0 comments

Giant 'blobs' of rock influence Earth's magnetic field

https://theconversation.com/how-giant-blobs-of-rock-have-influenced-earths-magnetic-field-for-mil...
1•samizdis•5m ago•0 comments

Was Benoit Mandelbrot a hedgehog or a fox?

https://arxiv.org/abs/2602.01122
1•bikenaga•5m ago•0 comments

Probabilities

https://arxiv.org/abs/2601.18853
1•simonpure•6m ago•0 comments

Agent Identity for Git Commits

https://justin.poehnelt.com/posts/agent-identity-git-commits/
1•justinwp•8m ago•1 comments

CL-32 latest firmware [video]

https://www.youtube.com/watch?v=UpiWlSyU1A4
1•tartoran•9m ago•0 comments

Intel will start making GPUs

https://techcrunch.com/2026/02/03/intel-will-start-making-gpus-a-market-dominated-by-nvidia/
1•geox•10m ago•0 comments

CL-32

https://cl-32.com/
1•tartoran•10m ago•0 comments

Sam Altman Hires Dylan Scandinaro as Head of Preparedness

https://twitter.com/sama/status/2018800541716107477
1•marwann•11m ago•1 comments

SpaceX Acquires xAI in $1.25T All-Stock Deal

https://www.cnbc.com/2026/02/02/elon-musk-spacex-xai-ipo.html
2•m463•12m ago•0 comments

Show HN: Security platform for vibe coded apps

https://twitter.com/ananayarora/status/2018783794166419537
1•chaitanyya•12m ago•0 comments

Package Management Made Easy

http://pixi.prefix.dev/v0.63.2/
1•lwhsiao•12m ago•0 comments

Why the World Must Measure Well-Being, Not GDP

https://worldsensorium.com/why-the-world-must-measure-well-being-not-gdp/
1•dnetesn•13m ago•0 comments

What Would Richard Feynman Make of AI Today?

https://nautil.us/what-would-richard-feynman-make-of-ai-today-1262875/
1•dnetesn•14m ago•0 comments

Mesh: A compacting memory allocator for C/C++

https://github.com/plasma-umass/Mesh
2•fanf2•14m ago•0 comments

The case for optimism in South Africa

https://www.economist.com/middle-east-and-africa/2026/01/27/the-case-for-optimism-in-south-africa
1•paulpauper•16m ago•1 comments

Effects of Acute Exercise and Meditation on Cognitive Function (2018)

https://pmc.ncbi.nlm.nih.gov/articles/PMC6025452/
2•wslh•16m ago•0 comments

Next-gen nuclear reactors safe enough to skip full environmental reviews

https://www.theregister.com/2026/02/03/nextgen_nuclear_reactors_skip_nepa_reviews/
1•Bender•18m ago•1 comments

A skill for agents to work with the JJ VCS

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

Show HN: DevSweep – A TDD-backed CLI to clean artifacts safely

https://github.com/Sstark97/dev_sweep
1•ascinfo•19m ago•0 comments

DIY AI bot farm OpenClaw is a security 'dumpster fire'

https://www.theregister.com/2026/02/03/openclaw_security_problems/
2•Bender•19m ago•0 comments

Chrome rolling out WebGPU for Linux, starting with support for Intel Gen12 GPUs

https://issues.chromium.org/issues/442791440
2•simonpure•20m ago•0 comments

Chemical Valley: A Toxic Tale [video]

https://www.youtube.com/watch?v=ifxPjKZTgk0
1•marysminefnuf•23m ago•0 comments