No tokens, no limits
Runs on your own machine with a local Ollama model. No API keys, no usage caps, no subscriptions.
Agemir is a command-line program written in C that turns local AI models into autonomous coding agents. It splits big projects into small tasks and runs each one in a short-lived Ollama session, even on low-end hardware.
$ ./agemir Agemir - Agentic Engine for Minimal Resources 1. Run Agent on Existing Project 2. Generate New Project Template 3. Run Hardware Benchmark 4. Import Filled Project Template 5. Generate Project From a Description 6. Settings 0. Exit > 5
Local models need a lot of RAM, and their context degrades in long chats. Agemir keeps every session small and keeps all state in plain files.
Every task runs in a fresh, short-lived model session.
The model is unloaded after each task with ollama stop.
All state lives in plain files you can read and edit.
Describe a project once. Agemir builds it task by task, without human help.
Runs on your own machine with a local Ollama model. No API keys, no usage caps, no subscriptions.
Each task runs in a new, short-lived model session, so the model never gets lost in a long chat.
The model is unloaded after every task, and a built-in benchmark picks one that fits your machine.
Progress, history and per-attempt logs are readable text files you can inspect and edit.
Press Ctrl+C or drop a PAUSE file in the project folder, then continue exactly where you stopped.
Each task can run a VERIFY command. Errors go back to the model, with up to 5 attempts per task.
Let the agent write the project template for you. Agemir checks it with the real parser before starting.
Built-in UI guidelines (navbar, login menu, hamburger menu, cards grid) and free icon and image links guide the design.
The interface comes in English, Spanish, French, German and Japanese.
From idea to working project in four steps.
Fill in a template, or describe the project in plain words and let the agent write it.
The project becomes goals and small tasks. Each task writes one file or runs one command.
Every task gets a fresh model session. Verification errors are fed back, up to 5 attempts.
If a task keeps failing, the run stops safely. Fix it and continue from that exact task.
A project is a plain text template: a description, optional style rules, and a list of small tasks. Each task names the file to write and, if you want, a command that must pass.
PROJECT_NAME: Notes CLI
OBJECTIVE: A tiny command-line notes app
TECH_STACK: Python 3
GOAL: Core logic
TASK: Write the note storage module
FILE: notes/storage.py
VERIFY: python3 -c "import notes.storage"
TASK: Add the command-line interface
FILE: notes/cli.py
READS: notes/storage.py
VERIFY: python3 notes/cli.py --helpSimplified example. The repository ships a blank and a complete template in resources/templates.
You need a C compiler (gcc). Agemir offers to install Ollama on first run.
git clone https://github.com/wizt-jaegger/agemir.git
cd Agemirgcc -O3 -DOLLAMA_ENABLED=1 Agemir.c -o agemir./agemirChoose a language, enter your name, let the benchmark pick a model, then create a project with option 5 (from a description) or options 2 and 4 (by hand). Run it with option 1.
Want to explore the menus without calling a model? Build without the flag: gcc -O3 Agemir.c -o agemir. It runs in simulation mode.
Only to install Ollama and to download a model the first time. Tasks then run on your own machine with a local model, so there are no API tokens or usage limits.
Any model available in Ollama. Agemir ships a catalog in resources/models.txt, marks each model as [OK] or [X] for your RAM, and lets you choose Auto or type your own tag.
It depends on the model. The built-in benchmark picks one that fits your machine, and smaller models run on modest hardware. If memory runs out, Agemir stops and suggests a smaller model.
Agemir retries up to 5 times, feeding the error back to the model and logging every attempt. If it still fails, the run stops, the file is restored and you are told where the logs are. Fix the problem and run again to resume from that task.
Yes. Press Ctrl+C or create an empty file named PAUSE in the project folder. Progress is saved, and the next run continues from the saved task.
Tasks marked RUN execute shell commands, so review any template you did not write. Agemir rejects unsafe paths on import, and you should never store sudo passwords in a template.
English, Spanish, French, German and Japanese.
Yes. Agemir is released under the MIT License, so you can use, modify and share it freely. The source code is on GitHub.