What if you could talk to your computer and have it perform tasks through the Bash terminal, without you writing a single command? With the NVIDIA Nemotron Nano v2 open model, you can easily build a natural language Bash agent from scratch, in under an hour, and with roughly 200 lines of Python code with minimal dependencies.

This post will walk you through the core components and considerations step-by-step, so you can easily follow along. First, we’ll build everything from scratch. Then, as a bonus, the blog will show how LangGraph can simplify the design further.

Let’s dive in.

Quick links to the model and code

What are the prerequisites?