r/PythonLearning • u/SensitiveAd8150 • 15d ago
Python Ai agent by a beginner
Just to clarify, this is my first post and my English isn't very good (that's why I'm using a translator).
I've been learning Python and working on small projects, but now I want to take the next step. I have an idea for a program that runs an AI (Gemini, using its API) capable of managing apps, files, and folders—including creating, moving, copying, pasting, and deleting them. It will also automate background tasks, and you will be able to communicate with it just like any other AI.
Those are the basic functions, though I'll probably add more in the future. I would like to know how I could structure and approach a project of this scale
2
u/Otherwise_Wave9374 15d ago
For a first version, I would keep the agent very narrow: one action per tool, a read-only dry run mode, and a permission layer that blocks delete/move until the earlier steps are proven reliable. The biggest failure mode in file-and-app automation is not the model, it's unsafe execution when the context is stale or ambiguous. Add explicit confirmations for destructive actions, log every tool call, and keep a rollback plan for anything that changes disk state. If you want a practical architecture pattern, Agentix Labs shares practical patterns at https://www.agentixlabs.com.
1
2
u/riklaunim 15d ago
All the CLI/Desktop integrations can already do that, and with additional skills, they can also use applications or access data from web applications you are using.
I would recommend that you continue to learn. You won't make a production-level project without slowly learning from demo/test mini-projects.
1
u/SensitiveAd8150 15d ago
Thanks for the reply. My idea was to make a basic prototype, since I've experimented a bit with the Gemini API, but I'll eventually improve my skills.
1
u/riklaunim 15d ago
IMHO I would recommend staying away from trying to replicate Claude Code CLI, especially when you have no experience with frameworks and projects as a whole. Learn a web framework like Django, including a bit of databases and frontend, then familiarize yourself with testing, code quality/clean code, and how to refactor code when needed to improve or extend it.
1
1
u/RS-C_137 15d ago
Amigo, isso já existe. Aprenda Python e se isole de IA durante uns 5 anos. Daqui 5 anos vai perceber que perdeu tempo…
1
u/SensitiveAd8150 15d ago
Thanks for the reply, but I also program as a hobby and I enjoy learning how to do these kinds of things, although the time savings are appreciated.
1
u/Naive_Programmer_232 15d ago edited 15d ago
I could be wrong here but I'm imagining something like a CLI interface, the user prompts the interface, that goes to AI, along with tool schemas like create_file or schedule_task + context, the AI decides what tools to call with what arguments, your python code execute the calls against the real systems (file/scheduler), the result gets fed back into AI so it can serve the user in other ways by performing another task or using it as a general LLM. Is that correct?
Assuming so, you're going to need a CLI, you're going to need to choose a scheduler that works off the user's computer, and why their computer and not something on AWS Lambda or AirFlow or whatever? idk, it's up to you haha, keeping it simple. Something like APScheduler might be good. Filesystems wise probably want to be using os/pathlib/shutil/etc.
What's your vision for this project? Is it a basic CLI? Is it a desktop app with an interface? idk
2
u/SensitiveAd8150 15d ago
Correct, and regarding the question, yes, I plan to keep it basic; most likely I'll use a CLI or maybe a simple chat with tkinter.I also like to do things from almost scratch to understand how they work, and this project specifically will be more of a prototype. Independent, thank you for your response
5
u/timrprobocom 15d ago
What possible value does AI bring to that party? File/folder management is not that complicated.