SAJEELAI WALA Download for Windows

Guide

How to build an AI agent on Windows, without a framework

Every working agent — no matter how polished the product around it — is the same three parts in a loop: instructions that define the job, tools that act on the world, and memory that carries context forward. Understand those three and you can build one, evaluate one, or stop being impressed by fake ones.

Updated 3 October 2026 · about 6 minutes

What an agent actually is

Strip the marketing and an AI agent is a language model with three additions. The model proposes. The additions make it capable:

The whole architecture

instructions (the job and its rules) + tools (ways to act) + memory (what it knows so far) — run in a loop until the outcome exists

A chatbot is a model with no tools and almost no memory: it proposes, you execute. An agent executes inside a permission boundary you set. The interesting engineering — and the interesting failure modes — all live in those three additions.

Part 1 — Instructions: the job and the rules

Instructions are the agent's standing orders. Not "you are a helpful assistant" — that describes a mood, not a job. A usable instruction set answers four questions:

  • What is the job? "Turn described outcomes into working files in this folder."
  • What is the boundary? "Work only inside the project folder. Never touch files outside it."
  • What must you ask about? Anything destructive or outward-facing — deleting data, sending mail, spending money — stops for confirmation.
  • What counts as done? "The thing runs, and you can show what changed." Without this, the agent declares victory after writing code it never executed.

Written this way, instructions are testable. Every rule you add should be a rule you can catch the agent breaking. If you cannot imagine the failure, the rule is decoration.

Part 2 — Tools: the ways it acts

Tools are functions the model can call. A coding agent needs surprisingly few, done well:

  • Read a file — and list a directory, so it can navigate.
  • Write a file — create or overwrite, inside the boundary.
  • Run a command — start the app, run the tests, install a dependency.
  • Search — find a symbol or string across the project without reading everything.

Two design points decide whether this is safe or alarming. First, the permission model: read freely, write inside the folder, and gate the genuinely dangerous calls (deleting, network sends, anything outside the boundary) behind confirmation. Second, observability: every tool call should be visible, so "what did it actually do?" is answerable from a log rather than from memory.

Notice what is not required: dozens of integrations, a plugin marketplace, an agent-to-agent protocol. Four solid tools cover most real work. Complexity here is where simple agents become unauditable ones.

Part 3 — Memory: the part everyone underestimates

Memory is what lets turn ten build on turn one. In practice it has two layers:

  • Session memory — the running context of the current task: what you asked, what it read, what it wrote, what error it just fixed.
  • Project memory — the standing facts about the folder: structure, conventions, where things live. Ideally this is re-derived from the files themselves, because files do not go stale the way summaries do.

The failure you will recognise: an agent that nailed the first feature and then forgot it existed while building the fifth. That is a memory bug, not a model limitation. SAJEEL's approach is to keep project context alive across a long session (sign-in sessions last three days of activity) and to start every task by re-reading files rather than trusting a summary — the "file analysis" stage of its loop.

The loop that keeps it honest

The three parts only produce an agent when they rotate. SAJEEL runs the same seven stages on every request, and it is a good template whether you build your own or not:

The loop

your request → AI thinking → file analysis → code generation → tools → testing → final result

The critical stage is testing. A loop without it is a writer: it produces plausible text and stops. A loop with it is a builder: it runs the thing, reads the error, and goes around again. When you evaluate any agent — including ones you build — check what happens in the loop when the first attempt fails. That is the entire product.

Build from scratch, or start from one that exists?

Two honest paths, and the right one depends on why you are here:

  1. You want the outcome. Then building the agent is homework, not the goal. Start from a working desktop agent, point it at your folder, and spend your hours on what you actually want to make. The instructions, tools and loop above are already wired — this is the fastest route from idea to running software.
  2. You want to understand agents. Then build a small one on purpose. A readable first project: a script that takes a goal, calls a model with your instruction set, and loops over four tools (read, write, run, search) with a stop condition and a log. Add memory second — re-reading files at each turn is a legitimate v1. Leave integrations for later; they teach you nothing that four tools do not.

Most people should do path one first and path two as a learning project on the side. Having used a real agent, you will know which parts of your own build are load-bearing.

A first task worth giving it

Concreteness beats ambition for a first run. This one exercises every stage:

First task

“Build me a clean task manager with dark mode and local saving. Vanilla HTML, CSS and JavaScript in one folder, no build step. Show me the files when you're done — then add CSV export and make sure it still works.”

Watch whether it reads before writing, whether files land in your folder, whether it runs anything, and whether the follow-up sentence costs it the context of the first. Those four observations tell you more about an agent than any architecture diagram.

How to build an AI agent: questions people actually ask

Do I need to code to build an AI agent?

To assemble a useful one today, no — you can configure instructions, connect a model and work inside a desktop agent that already ships the tools and the loop. To build one from scratch, yes: the loop, the permission model and the tool layer are all code, and they are the interesting part.

Which model should I use?

The one you can actually get access to and afford. The architecture above matters more than the brand: a decent model with real tools, real testing and real memory beats a frontier model wired straight to a chat box. In SAJEEL the choice of provider is yours to configure.

How do I stop it from wrecking my files?

Boundary plus backup: it works only inside a folder you chose, every write is visible, and version control gives you an undo that does not depend on the agent behaving. Destructive and outward-facing actions belong behind confirmation — that belongs in the instructions and in the tool layer.

What is the hardest part of building one?

Memory and the testing loop. Instructions are a page of text and tools are a few functions; making the agent reliably converge — try, fail, read the error, fix, re-test — without looping forever or giving up is where the design work lives.

How long does a first version take?

A four-tool loop with instructions and a log is a weekend project if you have wired model calls before. Adding durable project memory and a real testing loop is where the second weekend goes. Using an existing agent takes five minutes — which is why most people should do that first.

Can I learn this on a normal Windows PC?

Yes. Nothing here needs a GPU or a server — the model runs wherever your provider runs, and the agent parts are ordinary code working with local files. A Windows machine that runs current desktop apps is enough.

Or skip the build and use one

SAJEEL ships the instructions, tools, memory and testing loop already wired. Download it, open a folder, and give it the first task above.