惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
M
MIT News - Artificial intelligence
D
Docker
量子位
T
Tailwind CSS Blog
人人都是产品经理
人人都是产品经理
月光博客
月光博客
有赞技术团队
有赞技术团队
J
Java Code Geeks
A
About on SuperTechFans
P
Proofpoint News Feed
Jina AI
Jina AI
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
GbyAI
GbyAI
F
Fortinet All Blogs

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Codex Forgetful Plugin
Scott Raisbe · 2026-05-11 · via DEV Community

TLDR:

I wrote a Codex Plugin for Forgetful Memory MCP, which has my opinionated workflow for managing context across agents and sessions.


Hello folks,

I hope this post finds you well, as well as it does me, as I've finished a nice weekend grind outside of my day job working on my hobby, which is anything to do with AI Agent CLI's.

I bloody love'em and especially tinkering with them and getting a feel for what the latest harenesses and models are capable of.

I spend most of the week reading about all the cool stuff other people are doing with them, and then at the weekend

At the heart of a lot of this tinkering sits my own memory framework I built some time ago, Forgetful Github Repo. I won't spend too long discussing it here, suffice to say - it is an MCP service that is highly configurable and provides tools to expose a Graph-RAG service for persisting agent memories and forces agents to adopt a Zettlekasten approach to storing and retreiving knowledge.

Since probably March of last year, I have been a Claude Code user for the most part, with some usage of copilot (enforced at work), Gemini CLI and Opencode (local models) here and there.

I built a plugin around Forgetful on Claude Code when they introduced them and built a nice little workflow with Forgetful and Context7 (great tool, the first thing I ever recommend to a fellow developer who is picking up agentic coding tools for the first time).

Since then I and others have contributed some skills and commands to the repo for other harnesses, but I had never used Codex much myself and nor has any submitted a PR for anything beyond the basic setup.

The Codex Plugin

Recently with the free month offer I have picked up Codex and decided build a Forgetful plugin with it as a nice little way to see how it compares to the other agentic harneses that I have used.

What I currently have with other implementations, is very much a manual memory management workflow. I use slash commands (or skills if you prefer) to invoke when the agent should go get information and likewise curate information in forgetful's knowledge base.

To this end the plugin contains some skills for memory curation, context gathering (including the use of context7 if it is available), project initiation and encoding repos (taking a repository, adding it as a project in forgetful and then making atomic notes about it).

I find this encode-repo approach to be really powerful when I work across complex architecture involving many components and repositories. When an agent queries forgetful, it is not is not looking to retrieve the code, it is looking to retrieve what it can remember about the code.


Encode-Repo Skill

In the same way a human developer might do so when they are asked a questions about a product, they will recall which libary or repository the logic related to the question sits and knows to look at the code for more specific information if required.

My normal work flow when starting some work is to ask an agent to use the context-gather skill and then give it a prompt or a topic, it will then launch sub agents to bring back relevant context from forgetful, context7, code repostories and also the web.


Context-Gather Skill

I then build a plan with the agent with that context. Once implemented we then finish by asking the agent to use the memory-curate skill, which is basically an instruction for it to ensure that the knowledge base now refelects any of the changes implemented as a result of the plan, including the removal of anything stale.

This feels right for me where I am, I have used this workflow with Claude since Sonnet 4.0.

This is why as of now there are no hooks or other automated memory curation, I personally have not found a workflow that I feel strongly enough about to say to everyone else using Forgetful "This is how you should automate memory curation".

I tried some initial hooks but they more often than not bloated the CLI screen, context window and usage. So I've left them out for now. That is not to say there is not a way to do this, many others have appeared to have settled on it and look to be extremley popular. It's just I, myself, have not!

GPT 5.5 to Opus 4.7 Comparison

Anyhow, on a slightly different note I must say I have noticed a big difference in performance from GPT 5.5 compared to Opus 4.7.
To the point I am contemplating switching over as it generally feels like Anthropic has really fumbled since Feb with its frontier model. It's fine for my own workflow where I pretty much hand hold it through each step, but if I want to do anything a bit more hands off (like some cool side project) it just really struggles.

I had been working on some plugins for my Hermes agent with Opus 4.7 on the side and it just kept getting it wrong, GPT 5.5 has just come in and basically one shotted each request after I started them from scratch. Purely ancedotal of course, I have nothing to baseline either against.

Ironically another of my own side projects is my own set of evaluations, so eventually I'll have something more concrete than ancedotal/gut feel impression of this, but figured I'd throw this opinion out there while I am here.

Anyhow I guess that wraps it up for this wall of text. Thanks for reading if you made it this far and if you like the plugin and make use of it great and any PR's/issues are welcome on Github.

Happy coding