Python desktop console application using LangChain and LangGraph to build an agentic system that executes actions on the user's computer.
The graph package developed can be found at app/GRAPH. It starts with a security node that will immediately end if the user input solution may damage his system or illegal requests.
After, the graph starts the agent loop that uses tool calls capable of executing terminal commands and Python code on the user's computer (a human confirmation before executing is optionally added for security). It also has a tool that the agent can use to make questions or instructions for user preferences if needed.
If the iteration gets too long, the graph can fall into the summarizer node to simplify older tool calls history by reducing tokens count.