Python desktop console application using langchain and langgraph to build an agentic system that execute actions in the user 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 execute terminal commands and python code in the user computer (a human confirmation before executing is optionaly added for security). It also has a tool that the agent can 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.