From 2024 to mid-2026, my workflow evolved from ChatGPT conversations and project documents in Perplexity Spaces to custom Claude Code agents and OpenCode’s Plan and Build modes. Emacs remained my editor throughout.
#engineering-tools #ai-workflow

From ChatGPT to Open-Source Agents: How I Found My AI Workflow

Working with AI agents in Emacs taught me how much a simple interface can hide and which new tools are worth my attention.

Mathieu Hadjimegrian Mathieu Hadjimegrian 5 min

In 2024, I started asking ChatGPT questions from Emacs, the programmable text editor I use for much of my engineering work. By mid-2026, I could give an agent a task from that same editor and follow the changes it made. I had even switched from Claude Code to OpenCode with little visible change in Emacs.

Behind the interface, the difference was considerable. With Claude Code, I had built a team of specialist agents. The first agent I built was there to help me create the others. When I moved to OpenCode, two built-in modes covered much of the work I had divided between those specialists. Understanding why each setup suited me at the time has made it easier to decide which new tools deserve my attention.

Figure 1. Emacs remained my working environment throughout. I used Perplexity alongside it, later brought agent work into Emacs, and still sometimes open OpenChamber alongside the editor.

2024 — Asking questions from Emacs

I first used ChatGPT through its chat interface. One reason I like Emacs is that I can extend it to bring other tools into the place where I write code and edit configuration files. Soon I was asking questions with the relevant file already open in front of me.

I still had to choose what to share. If an answer depended on a hardware constraint I had forgotten to mention, it was up to me to spot the omission. Once I had an answer I could use, I applied it myself.

What became tedious was supplying the background again when I returned to a project. In embedded engineering, a question about a peripheral might depend on the board revision, a detail in a datasheet and the software configuration. I wanted to keep that material together so I could pick up where I had left off.

Late 2024 — Using Perplexity alongside Emacs

Towards the end of 2024, I started using Perplexity Spaces. I could gather a project’s PDFs and instructions in one place, ask a question and come back with another one days later. The project documentation was already there.

Reproducing that experience inside Emacs would have been a substantial integration job for me at the time. Keeping two tools open was simpler. I worked on the project in Emacs and turned to Perplexity when I wanted to explore a question with the documentation to hand. I still decided what the answer meant for the project and carried it back into my work.

September 2025 — Bringing agent work into Emacs

With Claude Code, I could describe a task in Emacs and let an agent act on it. That changed the consequences of a misunderstanding. In a chat, I might catch a mistaken assumption while reading the answer. An agent could already have edited several files by the time I noticed. I then had to work out which changes were worth keeping.

In my 2025 setup, I found it more reliable to give agents narrowly defined tasks. I split the work into smaller jobs and gave each specialist a limited role. I also wanted safeguards around changes to my working environment, so I wrote down where an agent should stop for my review and added automatic checks where I could.

The first agent I built was agent-architect. Its job was to help me design and create the others. One example in its instructions was a request for an agent to review Yocto recipes, the files that describe how software is built and packaged in a Yocto project. Even that short request left an important question open. Did I want a list of findings, or did I expect the agent to edit the recipe? The answer determined what access it needed and when I wanted to review its work. The architect was supposed to settle those questions with me before generating any files. It could also suggest adding a few project instructions if that was all the task required.

Figure 2. One branch of my Claude Code setup. The amber outline marks the first agent I built. The arrows show the intended delegation paths. For a change confined to Emacs, I could call the supervisor directly.

The Emacs supervisor could handle a routine change such as updating a keyboard shortcut. Changing which agent session appeared when I switched projects could involve more delicate Emacs Lisp, the language used to extend the editor. For that, the supervisor could call on elisp-expert. I had specified what the handover should include and instructed the supervisor to show me the proposed changes before a commit. I had also written a hook to try starting Emacs after changes to its Lisp files.

From my side of the editor, either request took a sentence. That was the tip of the iceberg. If a change surprised me, I might have to trace which instructions the supervisor had received, what context it had passed to the specialist and which checks had actually run. This was what I found most frustrating about working with agents. Each rule answered a practical need, yet together they gave me a sizeable system to maintain. Token consumption also felt high for the amount of work I was getting through.

Mid-2026 — Changing the agent behind Emacs

When I tried OpenCode, I used Plan to think through an approach and Build when I was ready to put it into practice. With those two built-in agents, I could handle much of the day-to-day work I had previously split between specialist agents. I was using fewer tokens, with hardly any custom configuration.

That changed how I approached the move. Before recreating a supervisor or rewriting its instructions, I could give OpenCode a task and see how far the defaults took me. For much of my work, that was enough.

Today I use OpenCode through agent-shell, the Emacs package that lets me work with the agent from inside the editor. I sometimes open OpenChamber alongside Emacs as well. Giving an agent a task still feels much as it did with Claude Code. What changed most was how little I had to maintain behind the interface.

That gives me a sense of how quickly things moved in two years. In late 2024, it was easier to keep Perplexity open beside Emacs than to bring project conversations into the editor. By mid-2026, I could replace the agent behind Emacs and keep working in much the same way. After investing so much time in my earlier setup, I value being able to inspect and adapt the open-source tools I use. I also appreciate being able to leave the defaults alone.

Less pressure to keep up

For a while, an AI announcement could make me reconsider my setup even on a day when it was working well. Was I missing something? Should I set aside an evening to try it? I found that tiring.

These days, I can usually name the problem I would want a new tool to solve. Perhaps a long session costs more than I’m comfortable spending. Perhaps I’m losing time trying to understand why an agent changed a particular file. Either gives me a reason to try something new and a way to judge whether it helped.

And when the tools I already have are doing what I need, I can read the next announcement and get on with my day.

Related Articles