frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Bento - An entire PowerPoint in one HTML file (edit+view+data+collab)

https://bento.page/slides/
136•starfallg•1h ago•33 comments

Show HN: HN Hall of Fame – browse 3,100 legendary Hacker News links

https://www.orangecrumbs.com/hall/
55•oyster143•1h ago•11 comments

Show HN: DeepSQL – A self-hostable AI DBA agent for Postgres and MySQL

https://deepsql.ai/
3•venkat971•2d ago•3 comments

Show HN: Web swing through midtown NYC

https://www.swingnyc.com/
2•shahahmed•22m ago•0 comments

Show HN: blackbar-nano – local PII detection and redaction on CPU

https://github.com/safetype/blackbar-nano
2•My24HR•45m ago•0 comments

Show HN: Brew doctor` for Skills and MCP loadouts

https://github.com/dbreunig/drskill
2•dbreunig•57m ago•0 comments

Show HN: AI resume spam ruined hiring so I built a tool to keep the bots out

https://permanym.com
2•romanhn•59m ago•0 comments

Show HN: EcoTrace – Lightweight carbon footprint and energy tracker for Python

https://github.com/Zwony/ecotrace
2•Zwony•1h ago•0 comments

Show HN: MutexCam – Global Camera and Mic Control on Mac for Zoom, Teams, Meet

https://mutex.cam/
2•superquizonline•1h ago•0 comments

Show HN: The Email Game – AI agents compete over cryptographically signed emails

https://theemailgame.com/
2•RyanJensen•1h ago•1 comments

Show HN: I built 20,795 grad-advisor profiles from OpenAlex public data

https://labcompass.app
3•boazraz•1h ago•0 comments

Show HN: Veracium – agent memory keeping third-party claims from becoming facts

https://github.com/veracium-ai/Veracium
2•qspencer•1h ago•0 comments

Show HN: Yorishiro – a macOS terminal where AI agents live

https://github.com/sktkkoo/Yorishiro
2•hakumei•1h ago•0 comments

Show HN: PDF tools that run in the browser, no upload

https://pdfcdf.com
3•sofiurrr•1h ago•0 comments

Show HN: Made a App to Turn Any Podcast into a Website

https://audioenhancer.com/
2•wbemaker•1h ago•0 comments

Show HN: BBRv3 for gVisor's netstack, visualized in the browser using WASM

https://ccsim.apoxy.dev
2•dilyevsky•1h ago•0 comments

Show HN: Anakin – API for your AI agents to access the most difficult websites

https://anakin.io
4•mohitprateek•1h ago•0 comments

Show HN: Agent in 9 Lines Python

https://gist.github.com/tosh/6e91a9dbf08dd630c535e7345ac7f0b5
7•tosh•2h ago•2 comments

Show HN: Cleared – true profit calculator for eBay, Poshmark and Depop

https://clearedledger.xyz
2•petesarney•1h ago•0 comments

Show HN: LapDeck – Turn your phone into a remote deck for your Windows laptop

https://github.com/ronak-create/LapDeck
2•ronak_parmar•1h ago•0 comments

Show HN: Receive.link – anyone can send you files encrypted to your passkey

https://receive.link/
2•neutrinoq•1h ago•1 comments

Show HN: Langy, an automated AI engineer (we gave it a robot body) [video]

https://langwatch.ai/blog/introducing-langy-your-automated-ai-engineer
8•jangletown•1h ago•0 comments

Show HN: I walk-forward tested classic trading setups. Several have no real edge

https://edgestacker.com/tools/library/
2•thepromptgenius•1h ago•0 comments

Show HN: Fund an agent once – prepaid USDC key for HTTP 402 tools (Solana)

https://vibes-coded.com/start
3•b_radford•1h ago•0 comments

Show HN: Kernel optimization is obsolete. Just NPM install it

https://github.com/tensormux/kernel-skills
2•KRISH2832•1h ago•0 comments

Show HN: Trifle – Open-source analytics that stores answers, not events

https://trifle.io/
4•iluzone•2h ago•0 comments

Show HN: DataParade – generate dataflow diagrams from code for risk assessments

https://github.com/DataParade-io/dataparade-cli
4•dpdave•2h ago•0 comments

Show HN: Cosyra – run cloud coding agents from your phone

https://cosyra.com/
2•adamisnotroman•2h ago•1 comments

Show HN: Foomchat – an AI chat where the interface is whatever you want

https://foomchat.com
3•scrygl•2h ago•2 comments

Show HN: Dejavu – stop showing coding agents the same command output twice

https://github.com/Salnika/dejavu
2•salnika•2h ago•0 comments
Open in hackernews

Show HN: Agent in 9 Lines Python

https://gist.github.com/tosh/6e91a9dbf08dd630c535e7345ac7f0b5
7•tosh•2h ago
I asked myself: what would a minimal implementation of an agent look like?

Something that works out of the box, is a real agent with tool calling, but without 1000s of lines of code, without dozens or hundreds of npm or pypi dependencies. Something with just a few 'essential' features (not a whole kitchen sink that most agent harnesses come with nowadays).

An implementation close to pseudocode that you can look at in one page, everything there at a glance, no scrolling.

This is the agent.py I ended up with so far:

  import json,sys;from subprocess import getoutput as sh;from urllib.request import Request as R,urlopen
  url=sys.argv[1];h=[];b=dict(model="gpt-5.6",input=h,tools=[dict(type="custom",name="sh")])
  while p:=input("> "):
    h+=[dict(role="user",content=p)];H={"Content-Type":"application/json"}
    while True:
      o=(r:=json.load(urlopen(R(url,json.dumps(b).encode(),H))))["output"]
      h+=o;c=[i for i in o if i["type"]=="custom_tool_call"];z=r["usage"]["total_tokens"]/10500
      if not c:print(o[-1]["content"][0]["text"],f'\n[{z:06.3f}%]');break
      h+=[dict(type="custom_tool_call_output",call_id=i["call_id"],output=sh(i["input"])) for i in c]
It is a bit code golfed but I think it is fairly readable

- imports are all from stdlib (0 external dependencies!)

- assumes there is an inference api endpoint running somewhere

- assumes the inference api endpoint is openai-like

- model hardcoded to "gpt 5.6" (=> Sol), can easily be changed to e.g. open weight (kimi k3, glm 5.2 etc)

- api endpoint url is passed as arg to the python script

- configures only 1 custom tool: 'sh'

- 'sh' is sufficient for interacting with the environment in an open ended way

- new api output gets added to history ("h")

- if api output contains tool calls the tool calls get executed

- agent gives control back to user when the last model response is without tool calls

- agent message to user shows % of context window used

Noteworthy:

no dependencies other than python stdlib (!)

- less startup time

- less dependency churn

- less supply chain attack vector surface

- less code to verify and understand

no mcp, no plugins, no security theater

- if you want to add something specific: add it explicitly

- adapt the environment to give the agent access or restrict access to tools, resources, network etc (the env is the security boundary, not the harness)

no system prompt

- every token in context window is precious

- current strong models do fine without steering via system prompt (or are even harmed by long overly specific system prompts designed for models from months ago)

- system prompt or agents.md context can easily be added if needed (agent can also discover it or get prompted to read from environment as is)

how to run/deploy the agent

- design the environment you want to give the agent (container, docker, sandbox of your choice)

- start an inference api endpoint that is openai-like (support the request/response shape used in agent.py above)

- inference api endpoint can be as simple as a proxy to openai api that adds credentials/api key

- adapt as you want/need it, change the model, remove/alter context window behaviour, add tools, etc etc

Looking for any feedback you have to make it more clear or even simpler!

Comments

JSR_FDED•2h ago
Super cool for how compact yet still readable it is. Shouldn’t there be a tool description passed to the LLM though?
tosh•24m ago
Great question!

I had a tool description earlier but 'sh' as tool name seems to be sufficient, the agent behaviour was the same.

There might be performance gains if a description is added though, or worth trying different ways of telling the agent about what is available in the environment.

That said, the newer models are fairly good at driving a harness to explore the environment.