frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Framework for LLM Iterative Refinement Until Mathematical Convergence

https://github.com/hankbesser/recursive-companion
3•henrybe473•4h ago
Framework overview: LLMs iteratively refine their own outputs—typically through a three‑phase cycle draft → critique → revision, repeat until convergence (all phases & stop rules are configurable). I started coding three weeks ago after an eight‑year break and zero professional dev experience.

The classes work as Python callables with built in observability: instances are callable -

    from recursive_companion.base import MarketingCompanion
    agent  = MarketingCompanion()
    answer = agent("question or problem…") # final refined output
    print(answer)
    print(agent.run_log)  # list[dict] of every draft, critique & revision
Why it stays clean & modular:

* Templates are plain text files (system prompts, user prompts, protocol). Swap harsh critiques for creative ones by swapping files. * build_templates() lets you compose any combination. * Protocol injection cleanly separates reasoning patterns from implementation. * New agents in 3 lines—just inherit from BaseCompanion. * Convergence uses embedding‑based cosine similarity by default, but the metric is fully pluggable.

How it came together:

The design emerged from recursive dialogues with multiple LLMs—the same iterative process the framework now automates. No legacy assumptions meant every piece became independent: swap models, add phases, change convergence logic—no rewiring required.

Extras:

* Streamlit app shows the thinking live as it happens. * Demos cover raw multi agent orchestration and LangGraph integration (agents as graph nodes). Demos have outputs and display full thinking in markdown. * Full architecture docs, comprehensive docstrings, commenting, and worked examples included.

Repo (MIT): https://github.com/hankbesser/recursive-companion

Built by questioning everything. Learning by building, built for learning.

Thanks for reading and really looking for any feedback and open to contributors, no question or discussion is too big or small.

Developing an Internal Tool for Our Puzzle Editor

https://open.nytimes.com/developing-an-internal-tool-for-our-puzzle-editor-d5dc7a9a6464
1•Tomte•1m ago•0 comments

Busting the top myths about the Big Bang

https://bigthink.com/starts-with-a-bang/busting-5-myths-big-bang/
1•jparise•2m ago•0 comments

Claude Code team joining Cursor

https://twitter.com/amir/status/1940112288381641026
1•nkko•2m ago•0 comments

I tried to hire a North Korean scammer [video]

https://www.youtube.com/watch?v=Y7x0gvfFa0Q
1•SeenNotHeard•3m ago•0 comments

Airbus – A Statistical Analysis of Commercial Aviation Accidents 1958-2024 [pdf]

https://accidentstats.airbus.com/wp-content/uploads/2025/02/20241325_A-Statistical-analysis-of-commercial-aviation-accidents-2025-links.pdf
1•uijl•8m ago•0 comments

uv2nix

https://pyproject-nix.github.io/uv2nix/
1•tosh•9m ago•0 comments

Indiana public colleges cut or merge a fifth of degree programs, more could come

https://www.indystar.com/story/news/politics/2025/06/30/indiana-colleges-cut-merge-400-degree-programs-ahead-of-new-state-law/84422023007/
1•inverted_flag•11m ago•0 comments

What Tech Debt Means for Startups (and When It's Good)

http://www.damiangalarza.com/posts/2025-06-26-tech-debt-for-startups/
1•dgalarza•11m ago•0 comments

Show HN: Cronus – Context-aware AI time tracker for macOS

https://cronushq.com/
6•arnestrickmann•14m ago•3 comments

FAQ and Answers About AI Evals [pdf]

https://www.dropbox.com/scl/fi/vkskh8b6mbkmdb5vwub6q/evals-faq.pdf
1•nkko•15m ago•0 comments

Using Nix with Dockerfiles (2023)

https://mitchellh.com/writing/nix-with-dockerfiles
1•tosh•16m ago•0 comments

How your data pulls in billions for app and social media companies

https://theconversation.com/the-hidden-cost-of-convenience-how-your-data-pulls-in-hundreds-of-billions-of-dollars-for-app-and-social-media-companies-251698
1•rntn•18m ago•0 comments

What are you getting paid in? (2024)

https://www.approachwithalacrity.com/what-are-you-getting-paid-in/
1•venkii•18m ago•0 comments

New MacBook with A18 Pro Chip Spotted in Apple Code

https://www.macrumors.com/2025/06/30/new-macbook-with-a18-chip-spotted/
3•nkko•19m ago•0 comments

The AI-Native Software Engineer

https://addyo.substack.com/p/the-ai-native-software-engineer
1•twapi•20m ago•0 comments

Ask HN: Why do HN programmers seem happy about losing their jobs to AI?

2•trwhite•22m ago•3 comments

AMC now warns moviegoers to expect '25-30 minutes' of ads and trailers

https://www.theverge.com/news/695611/amc-theatres-movie-preshow-ads-warning
1•speckx•23m ago•1 comments

First Human-Centric, Superior AI Ethics and Safety Firewall Rejected by Big Tech

https://archive.org/details/public-documentation-the-world-froze
1•AthenaAIEthics•24m ago•2 comments

"Inflammaging" may be more related to environment than aging

https://www.nytimes.com/2025/06/30/well/live/aging-inflammation-lifespan-environment.html
2•gmays•25m ago•1 comments

Show HN: Used GIPHY to launch branded GIFs, hit 15K+ views in 3 days

https://brzzy.co/brzzy-giphy-launch
3•timetodine17•27m ago•0 comments

He Painted Bugs Like Jewels — And Changed Science Forever [video]

https://www.youtube.com/watch?v=2Tn6xnOnBFI
1•rustoo•28m ago•0 comments

Scientists capture slow-motion earthquake in action

https://phys.org/news/2025-06-scientists-capture-motion-earthquake-action.html
2•PaulHoule•28m ago•0 comments

FocusButton – Minimalist Productivity and Mood Tracking Tool (Web and Extension)

https://focusbutton.com
1•ibvelinov•31m ago•1 comments

Anyone willing to contribute to open source business management tool project

https://github.com/oitcode/samarium
2•zumbin•31m ago•0 comments

Just-in-Time Software: When Code Writes Itself

https://zergai.com/blog/just-in-time-software-white-paper
1•idanb•32m ago•0 comments

Give footnotes the boot – alternatives to footnotes on the web

https://jakearchibald.com/2025/give-footnotes-the-boot/
1•jaffathecake•33m ago•0 comments

The only Synology certified SSDs start at $535 for 1.6 TB and PCIe 3.0 speeds

https://www.tomshardware.com/pc-components/ssds/synology-starts-selling-overpriced-1-6-tb-ssds-for-usd535-self-branded-archaic-pcie-3-0-ssds-the-only-option-to-meet-certified-criteria
1•LorenDB•34m ago•1 comments

Cursor on Web and Mobile

https://www.cursor.com/en/blog/agent-web
1•goranmoomin•35m ago•0 comments

The Hardware Lottery (2020)

https://hardwarelottery.github.io/
2•mikewarot•36m ago•1 comments

Apple sues ex-engineer over AR leaks to Snap

https://www.theregister.com/2025/07/01/apple_accuses_exengineer_of_stealing/
4•LorenDB•37m ago•0 comments