Autonomous context compression: the agent decides when to forget
I explain LangChain's autonomous context compression: a Deep Agents tool that lets the agent itself decide when to summarize its memory.
Personal assistant for the terminal, for all operating systems and languages
Ask questions directly from the command line
Uses OpenAI models for intelligent responses
Compatible with Linux, macOS and Windows
Ask and get answers in any language
System requirements:
InputBashsudo apt updatesudo apt install -y python3 python3-pip gitCopied
If you have a Debian-based system, download and install alfred.deb
Install Python dependencies:
InputBashpip install halopip install --upgrade openaiCopied
Clone the repository:
InputBashsudo rm -r /usr/src/alfredcd /usr/srcgit clone -b branch_v1.3 https://github.com/maximofn/alfred.gitcd /usr/src/alfredsudo find . -depth -not -name '*.py' -deleteCopied
Create an alias and restart the terminal:
InputBashecho 'alias alfred="/usr/src/alfred/alfred.py"' >> ~/.bashrcsource ~/.bashrcCopied
Type alfred followed by your question.
Type alfred, press Enter and keep asking questions. Type exit to quit.
If you like it consider giving the repository a star ⭐, but if you really like it consider buying me a coffee ☕.
I explain LangChain's autonomous context compression: a Deep Agents tool that lets the agent itself decide when to summarize its memory.
I explain nyk's «The Harness Is The Product»: why the harness around the model decides whether an AI agent works in prod...
How I tested Qwen Image 2.1 on two RTX 3090s, built a private Gradio Studio behind Tailscale and ported it to Hugging Fa...
Let's talk.
maximofn@gmail.com
Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.
Interactive 3D talk (in Spanish) on the Gymnasia agent: where data lives, from plate to data, tools, duplicates, health limits and how to test it all.
Technical talk: skills, subagents, slash commands and MCPs in Claude Code
Hugging Face spaces allow us to run models with very simple demos, but what if the demo breaks? Or if the user deletes it? That's why I've created docker containers with some interesting spaces, to be able to use them locally, whatever happens. In fact, if you click on any project view button, it may take you to a space that doesn't work.
Let's talk.
maximofn@gmail.com
Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.
Dataset with jokes in English
Use: Fine-tuning text generation models for humor
Dataset with translations from English to Spanish
Use: Training English-Spanish translation models
Dataset with Netflix movies and series
Use: Netflix catalog analysis and recommendation systems