Gemini 2 with unrestricted code execution
I recently experimented using Gemini 2 Flash and Gemini 2 Flash Thinking with unrestricted code execution in a local sandbox and open sourced the results: https://github.com/gradion-ai/freeact. Here's an example that uses Gemini 2 Flash Thinking as agent that acts via code, executed in a sandbox based on IPython and Docker: https://gist.github.com/krasserm/dcdae47f85ee9922e3284953d07... Gemini's code execution environment is restricted to selected Python libraries like NumPy or SymPy and prevents the model from installing new packages, besides other…
Gemini 2 with unrestricted code execution launched on January 29, 2025 with 22 votes, #696 of 6,142 launches that month and more than 90% of that year's launches.
In plain words
Gemini 2 with unrestricted code execution is an open-source framework that enables Google's Gemini 2 Flash and Gemini 2 Flash Thinking models to run code in a local sandbox environment without the restrictions of Gemini's standard execution limits. Built on IPython and Docker, it allows AI agents to install packages and execute arbitrary Python code to complete tasks. The tool is designed for developers building agentic applications that require flexible code execution capabilities beyond what Gemini's default environment provides.
written from the facts on this page · September 2026
From the sources
In the maker’s words, at launch
I recently experimented using Gemini 2 Flash and Gemini 2 Flash Thinking with unrestricted code execution in a local sandbox and open sourced the results: https://github.com/gradion-ai/freeact. Here's an example that uses Gemini 2 Flash Thinking as agent that acts via code, executed in a sandbox…
Does a similar job
all alternatives →
Gemini 2.5 Flash2025 · developers.googleblog.com · ▲369I built a small project that integrates Gemini Flash Image but makes it more affordable to use compared to the official API. It allows you to generate high-quality images with the same model, and also provides simple editing features for refining results. The goal is to make experimenting with Google’s image model cheaper and more accessible for people who create a lot of images.
Needle: We Distilled Gemini Tool Calling into a 26M ModelMay 2026 · github.com · ▲776Hey HN, Henry here from Cactus. We open-sourced Needle, a 26M parameter function-calling (tool use) model. It runs at 6000 tok/s prefill and 1200 tok/s decode on consumer devices. We were always frustrated by the little effort made towards building agentic models that run on budget phones, so we conducted investigations that led to an observation: agentic experiences are built upon tool calling, and massive models are overkill for it. Tool calling is fundamentally retrieval-and-assembly (match query to tool name, extract argument values, emit JSON), not reasoning. Cross-attention…
Gemini CLI2025 · blog.google · ▲224A simple weekend project, to check if chat conversation could be used on CLI. Uses Google Gemini's gemini-2.0-flash model. Configs will make it nicer, but I wanted to keep it simple to test and launch for now. I can add things for you :) Please give it a try!


More ai this month
the category →



Paintings by AI models: programs run through a simulation of oil paint.
AI · 20d ago · stillwet.art
PixVerse R2▲381A real-time world model you can explore and change
AI · 29d ago · world.pixverse.video

Source: Show HN post ↗ · launch text quoted in part
Launched alongside, January 2025
the whole month →
Hello! I'm Byran. I spent the past ~6 months engineering a laptop from scratch. It's fully open-source on GH at: https://github.com/Hello9999901/laptop
Dev tools · 2025 · byran.ee
- TITetris in a PDF▲1,289
I realized that the PDF engines of modern desktop browsers (PDFium and PDF.js) support JavaScript with enough I/O primitives to make a basic game like Tetris. It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box. All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at…
Life & fun · 2025 · th0mas.nl
21st.dev▲1,211I originally built this app to organize and reuse interesting React + Tailwind components I came across on Twitter, inspired by the shadcn/ui approach. Later, a friend started contributing their own components, and it got me thinking—this could grow into something bigger, like an NPM for design engineers to share and use components. Would love to hear your thoughts!
Dev tools · 2025 · 21st.dev

Create lifelike, personalized AI avatars from text prompts
AI · 2025 · jogg.ai


CSS library based on Counter Strike 1.6 UI.
Life & fun · 2025 · cs16.samke.me