https://github.com/tkellogg/oagent
A single-file agent via ollama
https://github.com/tkellogg/oagent
Last synced: about 2 months ago
JSON representation
A single-file agent via ollama
- Host: GitHub
- URL: https://github.com/tkellogg/oagent
- Owner: tkellogg
- Created: 2024-12-05T22:39:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-06T16:50:09.000Z (over 1 year ago)
- Last Synced: 2025-12-29T14:45:03.978Z (6 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# oagent
A single-file `uv`-invoked script that implements an AI agent that can do some debugging tasks.
Yes, you can absolutely copy this into your `~/bin`, or symlink it, or anything. It's completely
isolated to this one `oagent.py` file.
## Install
1. Clone this repo
2. [Install uv](https://docs.astral.sh/uv/getting-started/installation/)
3. [Install ollama](https://ollama.com/download) (`brew install ollama` works too)
4. Run `ollama pull qwq`
5. Run `ollama create qwq-patched:latest -f qwq-patch-modelfile` (Hack, this is because the standard qwq modelfile is broken)
QwQ is a 32B model, but it runs fine on a 32GB M1 Macbook because it's quantized. It gets hot though.
## Run
Test it out:
```sh
./oagent.py "find the file where we do database work"
```
## FAQ
### This isn't an agent
Uh, yeah, by "agent" I mean LLM + external resources. So whatever you want to call that.
### This is going to sell all your private info to China
idk, it's all running locally, and I have a tightly controlled list of tools that it can use,
I think I'm fine with the risk, with my own personal data anyway.
### It didn't work
Yeah, that makes sense. idk try again or something
### None of these FAQ's are questions
bro it's the internet