Skip to content
AI NEWS JOURNAL
AI, IN PERSPECTIVE

Search AI news

Search headlines, summaries and articles to connect the dots.

Newest first

Show HN: Open-Sourced Code Mode to Cut ~60% of My Rust Agent's Token Burn

For those who are tracking, Anthropic released an announcement last week about their experimental code mode for Claude Code, claiming some bonkers token savings when it comes to tool calls (95% on some workloads(1)). I haven't benchmarked it myself, but independent studies come in somewhere closer to 60~70% savings (2), but I digress. TLDR; I built an open-source version for the community.Context: I'm writing an AI RPG engine called Spookery, and I immediately wanted to try this technique for myself when I heard of it. Agent deployment is currently dominated by token costs, especially during tool calling (single prompt generating tens or hundreds of tool calls). Unfortunately, it looks like the only ones who are doing this seriously are big agentic products like Claude Code and Codex. So, I thought it'd be fun to try it myself and bring it to you all!The idea of Code Mode is simple but powerful. Instead of passing back tool call results back to the LLM one at a time, let the LLM batch calls by letting it write a short script using your tools. Basically taking 30 trips to the grocery store for 30 items and turning it into one trip to the store with a list in-hand.There's a few near-ish open-source options, but they used TypeScript backends, we're a little boilerplate heavy, and I wanted to have something a little faster and Rust friendly for my game engine. Pydantic's Monty seemed a good candidate--their self-reports are around 5x faster on execution and 100x faster on startup (3). I wouldn't take the numbers to the bank, but it's written on a Rust framework and the python backend is entirely built from Rust too.Anyway, I had a couple of days off unexpectedly. So, I went temporarily insane and built a Rust tool to bring code mode to the greater community for free. In enough days to fit on one hand (and just as many hours of sleep), I came up with the implementation linked. I call it Ghost Mode. It's MIT licensed. It's a drop-in for your agent that already makes traditional tool calls. With ~20 lines of setup, you can convert your existing agent to a Code Mode agent.I hope you get something out of this, and maybe I can save you some money. Considering how limiting token economics are right now, I think this could be a game changer for the industry. If there's interest, I can imagine we can build also add some great new features, language compatibility, and other great things. Thanks for reading :)Sources: (1) https://www.marktechpost.com/2026/11/17/anthropic-claude-cod... (2) https://arxiv.org/abs/2611.19123 (3) https://pydantic.dev/docs/monty/get-started/ Comments URL: https://news.ycombinator.com/item?id=50665796 Points: 1 # Comments: 0

Show HN: Fmgrep – indexed grep over a persistent FM index

fmgrep is a (Claude-powered) open source reimplementation of a FAANG code search engine I was involved in a few years back. It's aimed at very large (e.g. AOSP) source trees.Back then we wanted to get our hands on the Github search engine(https://github.com/danlark1/sparse_ngrams) but it was not available, so we went a different way.Instead of n-grams,`fmgrep` builds an FM index of the tree with O(pattern) `count` and O(occurrences) `locate`, which is quite cool and leads to blazing fast performance as seen in the benchmarks. Comments URL: https://news.ycombinator.com/item?id=50644731 Points: 1 # Comments: 0

LIBRA: Runtime Co-Tuning of Batch Size and Parallelism for Time-Efficient LLM Training

arXiv:2611.32008v1 Announce Type: new Abstract: Training large language models (LLMs) requires choosing both a batch size and a parallel configuration. Existing systems make these decisions in isolation, tuning parallelism for throughput and batch size for convergence, but neither objective alone determines training efficiency. We present LIBRA, a lightweight runtime framework that co-tunes batch size and parallel configuration to minimize end-to-end time. LIBRA treats throughput and convergence as two noisy objectives and searches their joint space using parallel noisy expected hypervolume improvement (qNEHVI). To make this runtime search efficient, we propose hierarchical pruning, which removes infeasible and low-throughput parallel configurations through system-level performance estimation and then narrows batch-size candidates through critical-batch-size-aware convergence monitoring. We further design acquisition-guided parallel evaluation (AGPE), which evaluates surviving candidates concurrently across GPU groups in order of their acquisition values. On clusters of up to 256 GPUs, LIBRA reduces time-to-convergence by 31.1% on average over state-of-the-art methods, while runtime tuning accounts for only 0.3-3.5% of overall time.

Your AI Startup’s Exit Is Being Shaped By The Deals You Sign Today

By Aaron Rubin and Greg Volkmar Valuations for AI companies have soared, and the companies are moving faster than ever. In the financings our firm has worked on so far in 2026, AI companies raised at median pre-money valuations up to 2.5 times those of non-AI companies from seed through Series C. Across the broader […]

Show HN: A React Native math keypad for kids – fractions, exponents, no WebView

I run a small school for gifted kids in Honolulu, and our students do some of their math practice on iPads. I wanted a 9-year-old to be able to type 3 2/5 the way she'd write it on paper, and couldn't find a React Native component that did it. MathLive and MathQuill are good editors, but they're built on the DOM, so in React Native they only run inside a WebView, and I didn't want a WebView inside every answer box.It's harder than you might think to to make sure arrow keys, taps in parentheses, delete keys, tab key, etc. on a hardware keyboard all work as expected. We packaged it up so other schools/builders don't need to reinvent the wheel.It's drawn with react-native-svg and runs in Expo Go. A dev build adds two small iOS modules.We pulled it out of the tutoring app our students use every day and put it under MIT. It hasn't been run on Android yet. Web support is new in 0.1.1: 0.1.0 crashed on react-native-web, which I found out while taking a screenshot for this post. Comments URL: https://news.ycombinator.com/item?id=50621077 Points: 1 # Comments: 0

Show HN: Alter – Restyle any website by typing what you want (extension, BYOK)

Alter is a Chrome extension: open it on any site, type something like "hide the sidebar and display articles in Hacker News format", or "give text more contrast and add a dark mode," and the change will show up on the site as a live preview. Save it, and it will be there every time you return to the site.Open source and BYOK (currently only Anthropic).It can also do one-off things like downloading the page contents into an MD file, etc.Not on the Chrome Web Store; download the ZIP and use Load unpacked in Developer mode.Would love to hear where it does poorly. Comments URL: https://news.ycombinator.com/item?id=50617387 Points: 2 # Comments: 0

Show HN: An interactive architecture diagram of your codebase and infra

ig (Intent-Graph) is an a CLI tools to visualise your code architecture interactively. As I'm working heavily with AI coding and multiple project. ig helps to reduce cognitive load to have a visual way to view the code and diff. Just `ig init` on anycodebase then `ig analyse` then ìg view` you can have an interactive maps of you software architecture. Try it out `brew install mrzdevcore/tap/ig` and tell me your feedback. Thanks. Comments URL: https://news.ycombinator.com/item?id=50588411 Points: 1 # Comments: 0

Show HN: Musset, open-source Scrivener alternative with an AI that never writes

I’m writing my first novel and could not find an app that fit my workflow: quiet like iA Writer, organized like Scrivener, and with AI so I can discuss my book while I write it. It allows me to feel less “alone” and have a sounding board while I write.- A book is a folder of plain Markdown files. Musset commits to a git repo, tracks versions and drafts without you having to know git.- Revisions are CriticMarkup inside the text. It manages docx revisions too, so your editor can edit a Word doc and you import their comments.- PDFs are typeset using Typst, embedded in the app, following each language’s typographic rules.- Spelling and grammar are checked using LanguageTool, also embedded.- Mac/Word, WordStar, vi and Emacs keyboard modes.The AI is optional and uses your Codex or Claude Code CLI. It comments, leaves margin notes, and checks continuity and your chapters against your style rules.It’s GPL-3.0 and free during the beta. When or if it reaches 1.0, if there is sufficient interest, the idea is to make it a small one-time payment ($9.90). There is a paid sync service (git hosting) that lets you share a book with beta readers and editors.Download: https://musset.appI’d love to have some feedback! Comments URL: https://news.ycombinator.com/item?id=50586323 Points: 2 # Comments: 0

Show HN: An ASCII cell aquarium for your terminal

I made a virtual microscope slide for your terminal (inspired by asciiquarium and cbonsai). Cells divide, immune cells chase bacteria, and bacteriophages occasionally cause trouble. You can try it with:$ pipx install terminal-cells$ cellsI'd appreciate any suggestions for additional animations to add, especially entities or events that would be visually distinct given the graphical limitations. Any cell biologists in the house? Comments URL: https://news.ycombinator.com/item?id=50541047 Points: 1 # Comments: 3