Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
AI Tools
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Course
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM Tools
Machine Learning
Machine Learning & AI
Machine Learning Tools
Manage Data
MLOps
Natural Language Processing
Newsletter Archive
NumPy
Pandas
Polars
PySpark
Python Helpers
Python Tips
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

ai-agents

Auto-created tag for ai-agents

Build AI Agents in YAML with docker-agent

Table of Contents

Introduction
What Is docker-agent?
Setup
Create the Agent
Swap the Model
Reuse Instructions Across Questions
Add Variants with Flavors
Run Different Agents from One File
Test the Agent
Share the Agent
Final Thoughts

Introduction
There are plenty of frameworks for building AI agents, such as LangChain or LlamaIndex. But as you add models, tools, and features, the agent quickly grows into a lot of code to maintain. More code means more places for mistakes when you need to make a change.
docker-agent keeps the entire workflow in one YAML file. With this approach, you can mix and match models, tools, and features, and see how the whole agent is set up at a glance.
In this article, you will learn nice features of docker-agent by building an agent that answers questions about Polars.

💻 Get the Code: The agent configs and eval files are on GitHub.

What Is docker-agent?
docker-agent is Docker’s open-source tool for building and running AI agents.
docker-agent does for AI agents what Docker did for apps. Instead of setting up an environment and writing code, you describe the agent in one YAML file and run it with one command.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

Setup
Install docker-agent with Homebrew, or use the docker agent command that ships with Docker Desktop 4.63 and later:
brew install docker-agent

The agent will search the Polars user guide and answer questions about it.
The project folder looks like this:
docker-agent-docs-qa/
└── docs/polars/ # 72 markdown files the agent will search

Create the Agent
To create the agent, define its model, instructions, and tools in a YAML file called embeddings.yaml. Start with the agents section.
agents:
root: # the agent that receives your message
model: openai/gpt-5-mini
description: Answers questions about Polars from the user guide
instruction: |
You answer questions about the Polars DataFrame library.
Always search the knowledge base before answering.
Answer only from what the search returns.
End with a "Sources:" list of the file paths you used, relative to docs/polars.

To let the agent search the docs, give it a rag tool and tell the tool which folder to search.
agents:
root:
…
toolsets:
– type: rag
ref: polars_docs # use the source defined below

rag:
polars_docs: # the name the ref points to
tool:
description: The Polars user guide
docs: [./docs/polars] # what to search
strategies: # how to search
– type: chunked-embeddings # split each file into chunks and embed them
embedding_model: openai/text-embedding-3-small
vector_dimensions: 1536 # number of values per vector

RAG setups usually need a vector database and a separate indexing step. docker-agent handles both for you. It stores the vectors in a local SQLite file, indexes the folder the first time the agent starts, and re-indexes files when they change.
rag is one of 30 built-in toolsets. Here are a few others that are useful:

shell: run shell commands, such as a Python script or duckdb
filesystem: read, write, and search files in a folder
fetch: read web pages and online docs
mcp: call external services like GitHub or a database through MCP
memory: remember facts across sessions

After the YAML file is created, ask the agent a question. The –exec flag runs the agent without opening the interactive terminal UI.
docker agent run –exec embeddings.yaml "How do I read a Parquet file without loading it all into memory?"

The output shows the search the agent made, followed by its answer. The search results and the model’s reasoning summary are trimmed here:

OutputCalling polars_docs(query: "read Parquet without loading all into memory scan_parquet
scan_parquet streaming lazy read_parquet memory efficient 'scan_parquet' 'read_parquet'
'scan' 'Parquet'")

Use a lazy scan and streaming collect so Polars parses and processes the file in
batches instead of materializing everything in RAM.

– Use pl.scan_parquet(…) (returns a LazyFrame) instead of pl.read_parquet(…).
Scanning delays parsing and enables column/row pruning via the optimizer
(projection & predicate pushdown).
– Apply selects/filters on the LazyFrame so the reader can skip unnecessary
columns/rows.
– When collecting, use streaming execution to process in batches:
.collect(engine="streaming").

Sources:
– io/parquet.md
– lazy/sources_sinks.md
– lazy/execution.md

The answer is correct, and every claim traces back to a file you can open.
To ask another question, run the same command with a new question without changing the YAML file.
docker agent run –exec embeddings.yaml "When should I use join_asof?"

Swap the Model
To try a cheaper model without committing to it, you can simply pass –model for a single run.
embeddings.yaml –model what runs
┌───────────────────┐ ┌───────────────────┐
│ model: gpt-5-mini │ ── gpt-5-nano ──> │ model: gpt-5-nano │
│ instruction: … │ │ instruction: … │
│ toolsets: rag │ │ toolsets: rag │
└───────────────────┘ └───────────────────┘
unchanged this run only

For example, this runs the same question on gpt-5-nano.
docker agent run –exec embeddings.yaml –model openai/gpt-5-nano \
"How do I read a Parquet file without loading it all into memory?"

Output- Use scan_parquet to read lazily. This returns a LazyFrame and does not parse the
data into memory until you collect.
…
Sources:
io/parquet.md

This is very nice for several reasons:

You can quickly try different models and compare their answers
Because the YAML file does not change during the experiment, your teammates are not affected
Once you like a model, you can edit the YAML file to use it permanently

Reuse Instructions Across Questions
You might want to vary the instructions based on the context, such as the audience, the length, or the tone.
With docker-agent, you can write different instructions in separate files, then pick one with the –prompt-file flag.
For example, you can create a pandas-users.md file with the instructions for pandas users and a sql-users.md file with the instructions for SQL users.
"How do I read a Parquet file without loading it all into memory?"
│
┌───────────────────┴───────────────────┐
▼ ▼
–prompt-file pandas-users.md –prompt-file sql-users.md
│ │
▼ ▼
Pandas: read_parquet() loads SQL: SELECT * FROM
the file into memory read_parquet('data.parquet')

Let’s try the pandas-users.md file first. Start by creating the file.
The reader knows pandas. Show the pandas equivalent next to each Polars answer.
Keep each answer under 8 lines.

Then start an interactive chat with the file passed to –prompt-file.
docker agent run embeddings.yaml –prompt-file pandas-users.md

Now every answer follows the instructions in pandas-users.md, even though the questions never mention pandas.
> How do I read a Parquet file without loading it all into memory?

Polars: use scan_parquet("file.parquet") to get a LazyFrame (parsing is delayed).
Collect with streaming to process in batches: lf.collect(engine="streaming").
…
Pandas: read_parquet("file.parquet") loads the file into memory (no built-in
lazy/streaming scan).

If your audience knows SQL instead, create a prompt file called sql-users.md.
The reader knows SQL. Show the Polars SQL equivalent next to each Polars answer.
Keep each answer under 8 lines.

Start a chat with that file instead.
docker agent run embeddings.yaml –prompt-file sql-users.md

The same question now gets a SQL answer instead of a pandas one.
> How do I read a Parquet file without loading it all into memory?

– Polars: Use lazy scanning so the file isn't parsed upfront:
lf = pl.scan_parquet("data.parquet"), which returns a LazyFrame.
SQL: SELECT * FROM read_parquet('data.parquet');
– Polars: Push down projections/filters so only needed columns/rows are read.
SQL: SELECT col1, col2 FROM read_parquet('data.parquet') WHERE …;
…

Add Variants with Flavors
Sometimes you want more than one version of an agent, such as one with a different search method or a different model. It is redundant to write another YAML file for each version with most of the settings staying the same.
With docker-agent, you can add a flavor to the same file. A flavor lists only the settings that change, and everything else stays the same.
–flavor hybrid
off on
│ │
▼ ▼
┌──────────────────┐ ┌──────────────────┐
│ embedding search │ │ embedding search │
│ │ │ + keyword search │
└──────────────────┘ └──────────────────┘
base config base + hybrid

In this example, we add a flavor called hybrid that adds keyword search to the existing embedding search strategy.
# embeddings.yaml
agents:
root: …

rag:
polars_docs:
…
strategies:
– type: chunked-embeddings # embedding search

flavors: # new section at the bottom of the file
hybrid:
rag:
polars_docs:
strategies+: # keep chunked-embeddings and add bm25
– type: bm25 # keyword search
results:
fusion:
strategy: rrf # merge the keyword and embedding results
k: 60
deduplicate: true
limit: 5

To use a flavor, pass its name with –flavor:
# embedding search only
docker agent run embeddings.yaml

# embedding search + keyword search
docker agent run embeddings.yaml –flavor hybrid

Here is what the config looks like after docker-agent applies the hybrid flavor.
rag:
polars_docs:
…
strategies:
– type: chunked-embeddings # from the base file
– type: bm25 # from hybrid
results:
fusion:
strategy: rrf # from hybrid
…

To see how this is useful, ask about SQLContext, a class name that appears in the docs. Without the flavor, the agent uses the embedding search strategy and finds nothing.
docker agent run –exec embeddings.yaml "What is SQLContext?"

OutputCalling polars_docs(query: "SQLContext")
Calling polars_docs(query: "SQL")

I searched the Polars documentation for "SQLContext" (and for "SQL") but found
no matching documents, so I cannot provide a definition from the docs.

With the hybrid flavor, every search runs both strategies. Keyword search finds the exact name, so the right page comes back.
docker agent run –exec embeddings.yaml –flavor hybrid "What is SQLContext?"

OutputCalling polars_docs(query: "SQLContext")

SQLContext is the Polars object that manages SQL queries…

Sources:
– sql/intro.md

Run Different Agents from One File
Sometimes you might want to have multiple agents for different purposes. For example, you might want to have a small model for answering questions and a stronger model for reviewing code.
docker-agent lets you add more agents to the same file. They can share tools already defined there, so you don’t need to repeat the configuration.
root reviewer
┌───────────────────┐ ┌───────────────────┐
│ gpt-5-mini │ │ gpt-5 │
│ answers questions │ │ reviews code │
└─────────┬─────────┘ └─────────┬─────────┘
│ │
└──────────────┐ ┌───────────────┘
▼ ▼
┌─────────────────┐
│ polars_docs │
│ defined once │
└─────────────────┘

In the code below, we add a second agent called reviewer that uses a stronger model for reviewing code but uses the same polars_docs tool as the root agent.
agents:
root:
model: openai/gpt-5-mini # small model for answering questions
instruction: |
You answer questions about the Polars DataFrame library.
…
toolsets:
– type: rag
ref: polars_docs # shared search

reviewer:
model: openai/gpt-5 # stronger model for the harder task
instruction: |
You review Polars code.
Search the docs for each function the code uses.
Point out slower or outdated patterns and suggest the fix the docs recommend.
…
toolsets:
– type: rag
ref: polars_docs # same shared search

By default, docker-agent runs the first agent in the file. To run the reviewer instead, pass –agent.
docker agent run –exec embeddings.yaml –agent reviewer \
'Review this code: df = pl.read_parquet("big.parquet").filter(pl.col("amount") > 0).select(["id", "amount"])'

OutputFindings:
– Using read_parquet eagerly loads the entire file before your filter/select are
applied. This prevents predicate and projection pushdown, which is slower and
uses more memory on large Parquet files.

Recommended fix:
– Switch to scan_parquet and collect at the end:
df = (
pl.scan_parquet("big.parquet")
.filter(pl.col("amount") > 0)
.select(["id", "amount"])
.collect()
)
…

The reviewer spots the eager read_parquet call and suggests switching to scan_parquet.
Test the Agent
As you experiment with different models and settings, you might want to make sure the agent keeps working as expected. It can be easy to miss mistakes by just observing the output.
docker-agents provides an easy way to define the test cases and run them against the agent.
evals/streaming-parquet.json
┌──────────────────────────────────────────────────┐
│ question: How do I read a Parquet file without │
│ loading it all into memory? │
└────────────────────────┬─────────────────────────┘
▼
┌─────────────┐
│ agent │
└──────┬──────┘
▼
answer
│
┌──────────────────┼──────────────────┐
▼ ▼ ▼
✓ uses ✓ mentions ✓ searched
scan_parquet streaming the docs

To define a test case, create a JSON file in the evals/ folder, such as evals/streaming-parquet.json.
{
"title": "Large Parquet file question",
"messages": [
{"message": {"message": {"role": "user", "content": "How do I read a Parquet file without loading it all into memory?"}}}
],
"evals": {
"assertions": [
{ "name": "uses scan_parquet", "type": "contains", "value": "scan_parquet" },
{ "name": "mentions streaming", "type": "contains", "value": "streaming" },
{ "name": "searched the docs", "type": "tool_called", "value": "polars_docs" }
]
}
}

For this question to pass, the answer must mention scan_parquet and streaming, and the agent must have searched the docs.
Now run the suite with docker agent eval:
docker agent eval embeddings.yaml ./evals

Output✓ Asof join question ($0.001918)
✓ assertions 3/3
✓ Large Parquet file question ($0.002629)
✓ assertions 3/3
[██████████] 100% (2/2) ✓2 ✗0

✅ Assertions: 6/6 passed (100.0%)

Total Cost: $0.004546
Total Time: 26s

Each run reports which tests passed, what each answer cost, and how long it took. Together, they tell you whether a change broke the agent, made it pricier, or slowed it down.
Since each eval runs in its own container, one test can’t leave files behind that change another’s result.
Compare variants before you switch
Because eval takes –flavor too, you can test a variant before adopting it. Let’s say you want to know whether the cheaper gpt-5-nano is good enough for your use case. Add it as a second flavor called cheap.
flavors:
hybrid: …
cheap:
agents:
root:
model: openai/gpt-5-nano # smallest, lowest-cost GPT-5 model

Then compare the default model against the cheap flavor. Since answers vary between runs, –repeat 3 runs each test three times.
docker agent eval embeddings.yaml ./evals –repeat 3
docker agent eval embeddings.yaml ./evals –flavor cheap –repeat 3

gpt-5-mini gpt-5-nano (cheap)
assertions passed 18/18 13/18 <- less reliable
Parquet eval 3/3 runs 0/3 runs
asof join eval 3/3 runs 2/3 runs
total cost $0.015 $0.007 <- less than half the cost

The cheap model saves more than half the cost, but its answers are less reliable. It passed 13 of 18 checks, compared with 18 of 18 for the default model.
Share the Agent
Once you are happy with a configuration, you might want to share it with your teammates.
Sharing a Python agent usually means your teammates have to download the code, install the dependencies, and run a setup script before they can use it.
docker-agent makes sharing agents as easy as sharing Docker images. Teammates run it with one command instead of setting up a Python project.
To push the YAML file to a registry such as Docker Hub (after docker login), run:
docker agent share push embeddings.yaml docker.io/<username>/polars-docs:v1

Teammates can then run the agent by name, without downloading the file first.
docker agent run docker.io/<username>/polars-docs:v1

To get a local copy of the YAML file instead, use docker agent share pull.
Note that only the YAML file is shared. Any files it points to, such as docs folders or prompt files, must exist in the folder where you run the agent.
Final Thoughts
What I like about docker-agent is that it takes so little code to get a working agent. An LLM can help you write a Python agent, but you still have to maintain that code, and more code means more places for mistakes.
Keeping everything in one YAML file also makes agents easy to change and easy to read, even for people who do not write Python every day. And with Docker-style sharing, your teammates can try your agent with one command.
But docker-agent is not the right fit for everything. If you need to control each step the agent takes, with custom branches or retries, a code-first framework like LangGraph is a better fit.
The same principle of keeping configuration separate from code is a core chapter in Production-Ready Data Science.
References

docker-agent RAG docs (Docker, 2026): retrieval strategies, the default 0.5 similarity threshold, hybrid search with RRF fusion, and SQLite index storage.

Related Tutorials

Hydra for Python Configuration: The same “change settings without editing code” idea for data pipelines

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

Build AI Agents in YAML with docker-agent Read More »

I Tested 5 Ways to Update a README With an LLM. Filtering First Won

Table of Contents

Introduction
TL;DR
Experiment Setup
Results
A Reusable Skill for README Updates
Caveats
Run the Experiment Yourself

Introduction
Updating a README from release notes sounds like an easy job for an LLM, but it isn’t.
For every change, the LLM has to make two decisions: does it belong in the README, and if so, where?
I recently asked an LLM to update a README for a Python project and got a different mistake on every try: it skipped new changes, put them in the wrong section, or added notes only maintainers care about.
To find a more reliable way to update it, I tested five methods, four of them from the paper Knowledge Pull Requests for Continual Document Authoring.
This article shows how each method handled the same release notes and which one worked best. I’ll also share the skill file I now use for my README updates.

Get the code: The companion files are in notebooks/readme-update-from-release-notes.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

TL;DR

Simple, one-request methods were fast but either skipped relevant changes or deleted existing content.
Smaller, targeted edits preserved more of the original README.
Processing each change separately captured every relevant update but added nearly every irrelevant detail.
Checking each change first produced the best overall result, though it was the slowest method and still required review.

Experiment Setup
Project and Settings
This experiment updates the README for Vulture, a Python static-analysis tool that finds unused code.
I used qwen3.8:27b-mlx with thinking turned off and ran each method three times. The full setup and labeled release notes are documented in the experiment README.
Methods
I tested five ways to divide the work:

All at once: Give the model the existing README and release notes, then ask it to edit the README.
Full rewrite: Give the model the same inputs, but ask it to write a new README from scratch.
Section by section: Compare each README section with all the release notes, then update that section if needed.
Change by change: Route every release-note change to the README section where it belongs, then update that section.
Change by change, filtered: Check whether each change belongs in the README, then route and add only the changes that pass the check.

Scoring
To score each output, I picked six changes from the release notes and labeled each one by whether it belongs in the README.
Three are user-facing changes: they change how users configure Vulture or read its results, so a good update should add them:
ADD `–config` flag for a custom pyproject.toml path
ADD whitelist for `ssl.SSLContext`
ADD handling of `while True` loops and reachability analysis

Three are internal changes: they only change how Vulture is developed, tested, or packaged, so a good update should leave them out:
SKIP use ruff for linting and add more ruff rules
SKIP replace tox with pre-commit
SKIP include `tests/**/*.toml` in the sdist

A good update should also put each added change in the correct section and preserve as much of the original README as possible.
Because each method ran three times, each method had:

3 user-facing changes x 3 runs = 9 opportunities to include a user-facing change
3 internal changes x 3 runs = 9 opportunities to exclude an internal change

Results
The table summarizes all three runs of each method. The individual outputs are available in the experiment results on GitHub, organized by method.

Method
User-facing changes included, of 9
Internal changes included, of 9
Old README kept
Average time

All at once
2
0
about 84%
about 1.5 min

Full rewrite
4
1
about 78%; section lost in 3 of 3 runs
about 1.5 min

Section by section
4*
3*
95-100%
about 1 min

Change by change
9
8
88-93%
about 2 min

Change by change, filtered
7
2
about 95%
about 3.5 min

* In run 2, section by section pasted the changes instead of placing them in the appropriate sections.
What the table shows:

The one-request methods missed most changes. All at once included only 2 of 9 user-facing changes. Full rewrite included 4 of 9 and lost a README section in every run.
Smaller edits kept more of the README. Section by section and change by change, filtered kept about 95% or more of the original text.
Change by change added nearly every change, relevant or not. It included all 9 user-facing changes but also 8 of 9 internal changes.
Change by change, filtered had the best balance. It included 7 of 9 user-facing changes and only 2 of 9 internal changes, though at about 3.5 minutes it was the slowest.

The next sections walk through each method with an example from one run, so you can see how each one behaves in practice.
One Big Edit Skipped Most Changes
The all-at-once method is what most people try first: give the model the old README and all the release notes in one request, then ask it to update the README.
send Here is our README: <347 lines>
Here are the release notes for 2.12 to 2.15: <13 lines>
Return the updated README in full, as markdown only.
get the whole README back, edited however the model chose

Here is what run 1 did with the six labeled changes. The middle column shows whether each user-facing change had an obvious place in the README:
Obvious place? Run 1
ADD –config flag yes added
ADD ssl.SSLContext yes left out
ADD while True no left out
SKIP ruff linting left out
SKIP tox → pre-commit left out
SKIP tests/**/*.toml left out

The one change it made was the –config flag, which had an obvious place: both the flag and the ## Configuration heading mention “config”. The lines beginning with + are the new content:
## Configuration

…

Options given on the command line have precedence over options in
`pyproject.toml`.

+ You can also specify a custom configuration file path using the
+ `–config` flag.

Across the three runs, all at once included only 2 of 9 labeled user-facing changes, added no internal changes, and preserved about 84% of the original README.
Key takeaway: All at once played it safe. It kept internal changes out, but it also left most user-facing changes out, so the README stayed clean but out of date.
Possible reason: With the whole README in view, the model changed only what had an obvious place to go and wasn’t already covered.
Rewriting From Scratch Lost the Most Content
Unlike all at once, which asks the model to update the existing README, full rewrite asks it to create a new README using the old one and the release notes as source material.
send Write the README for vulture from these sources.
Source 1, the project's previous README: <347 lines>
Source 2, the release notes for 2.12 to 2.15: <13 lines>
get a new README, written from nothing

Full rewrite dropped the existing ## Error codes section in every run. The lines beginning with – were missing from the rewritten README:
…

– ## Error codes
–
– Vulture supports the `F401` and `F841` error codes for compatibility
– with flake8.
–
– | Error codes | Description |
– | — | — |
– | V101 | Unused attribute |
– | … | … |
– | V201 | Unreachable code |

## Exit codes

…

Across the three runs, full rewrite included 4 of 9 labeled user-facing changes and 1 of 9 internal changes while preserving about 78% of the original README.
Key takeaway: Full rewrite was as simple and fast as all at once, but it lost more of the original README than any other method.
Possible reason: Writing from scratch meant recreating every section, so a whole section could go missing.
Editing Each Section Separately Lost Track of Changes
Section by section avoids rewriting the whole README. It goes through the README one section at a time, checks all the release notes against that section, and rewrites the section only if it needs an update.
In run 2, the model checked each section in a separate request and decided whether to add the –config flag there:
Release note: "Add –config flag"

## Usage -> added it
## Configuration -> added it
## Error codes -> skipped it

The flag was added twice.
The other runs failed the opposite way: run 1 added only the –config flag, and run 3 changed nothing.
Across the three runs, section by section included 4 of 9 user-facing changes and 3 of 9 internal changes while preserving 95-100% of the original README.
Key takeaway: Section by section kept the most of the original README, but because no step decided where each change belonged, changes ended up in no section or in several.
Possible reason: Every request saw every release note but only one section, so no request knew what the others had added.
Placing Every Change Added Irrelevant Ones Too
Section by section had no step that decided where each change belonged. Change by change adds that step: it starts with one change, finds the section it belongs in, and updates only that section.
Release notes
|
v
Split into individual changes
|
v
For each change, ask:
"Which section does it belong in?"
|
+————————-+
| |
v v
`–config` flag `tests/**/*.toml` in sdist
| |
v v
## Configuration ## Participate

The question only asks where each change goes, so both changes were added: the –config flag to ## Configuration and the internal tests/**/*.toml change to ## Participate.
Across the three runs, change by change included all 9 user-facing changes and 8 of 9 internal changes while preserving 88-93% of the original README.
Key takeaway: Change by change produced the broadest update: it captured every user-facing change but also added nearly every internal change.
Possible reason: The model was asked where each change belonged, never whether it belonged, so it found a place for almost everything.
Filtering Changes First Gave the Best Balance
Change by change only asked where each change goes, not whether it belongs. Change by change, filtered asks first: is the change already covered, and do README readers need it?
Release notes
|
v
Split into individual changes
|
v
Filter each change:
1. Already covered or conflicting?
2. Do README readers need it?
|
+———————————–+
| |
v v
`–config` flag: keep `tests/**/*.toml`: drop
|
v
For each change, ask:
"Which section does it belong in?"
|
v
## Configuration

The filter dropped the internal tests/**/*.toml change, so only the –config flag was added, to ## Configuration.
Across the three runs, change by change, filtered, included 7 of 9 user-facing changes, added only 2 of 9 internal changes, and preserved about 95% of the README, but took the longest at about 3.5 minutes per update.
Key takeaway: Change by change, filtered gave the best balance: it kept most user-facing changes and most of the README while leaving out most internal changes, but it was the slowest method.
Possible reason: The filter caught clearly internal changes like packaging, but ruff linting notes still got through, possibly because linting sounds like something users might care about.
A Reusable Skill for README Updates
Here is a skill file that adapts the best method so far, filtering changes before placing them. Save it as SKILL.md and give your agent the README and release notes:
—
name: update-readme-from-release-notes
description: Update selected README sections from release notes.
—

# README Update Workflow

Given a README and release notes:

1. Split the release notes so each item describes one change.
2. Check each change against the README and label it:
– `keep`: new and useful to README readers
– `drop`: already covered, or only about development (linting, tests, packaging, CI, contributors)
– `review`: conflicting or ambiguous
3. Assign each `keep` change to an exact existing heading.
4. Propose a new heading only when no existing heading fits.
5. Group accepted changes by heading.
6. Rewrite only sections receiving accepted changes.
7. Replace the selected sections in the original README.
8. Return:
– the updated README
– a review log listing accepted, dropped, and ambiguous changes

Describe what the tool does now, not which version added it.
Edit only the selected sections. Keep every other line of the README unchanged.

Run it in a fresh session. In another test, I found that bad examples earlier in a conversation can override what a skill file says.
Caveats
I tested one model (qwen3.8:27b-mlx, thinking off), one README, and one release, with three runs per method. I also labeled the six scored changes myself, and the script checks only whether a change appears, not how well it reads.
A different model, a longer README, or more runs could change how each method performs. A stronger model, for example, might make fewer mistakes with the simpler methods.
Run the Experiment Yourself
Run the five methods:
ollama pull qwen3.8:27b-mlx
for v in all_at_once section_by_section change_by_change change_by_change_screened full_rewrite; do
for r in 1 2 3; do
VERSION=$v RUN=$r python3 scripts/run.py
done
done

Evaluate the README produced by one experiment run:
python3 scripts/check_readme.py inputs/readme_v2.11.md \
results/change_by_change/run1.md inputs/release_note_labels.json

The command takes three file paths:

inputs/readme_v2.11.md: the original README used as the baseline
results/change_by_change/run1.md: the updated README produced by a specific method and run
inputs/release_note_labels.json: a hand-labeled list showing which changes should or should not appear in the README

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

References

Knowledge Pull Requests for Continual Document Authoring (Martin and Van Durme, 2026): the four step-by-step versions follow its method and baselines.

Related Tutorials

Make Your Coding Agent Answers Easier to Scan with i-have-adhd
Your Prompt Tweak May Not Be the Reason the Score Went Up
Hermes Agent Can Write Its Own Skills. I Tested How Well It Works

I Tested 5 Ways to Update a README With an LLM. Filtering First Won Read More »

I Tested Whether Bad Examples Override Agent Skills. They Do

Table of Contents

Introduction
TL;DR
Experiment Setup
The Results
Good Practices for Working with Agent Skills
Run the Experiment

Introduction
A skill file is supposed to give the model a stable rule to follow.
But I kept seeing a different behavior: after the model broke the rule once, it sometimes kept following that bad pattern later, even after being corrected.
That made me wonder whether the model was paying more attention to the session history than to the skill file.
So I tested it directly. I gave the model a simple skill rule, changed only the earlier session history, and checked whether the final answer still followed the rule.
This article walks through the experiment, the controls, and the practices that can make skill-file rules more reliable.

Get the code: The companion files are in notebooks/skill-example-overrides-the-rule.

TL;DR

Repeated bad examples in the session can override a clear skill-file rule.
Correcting every bad answer delayed the failure, but the same mistake came back later.
The more often the session shows the wrong pattern, the more likely the model is to follow it.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

Experiment Setup
The Skill Rule
I tested this with a simple commit-message skill: the model had to return exactly one line, with no body and no explanation.
—
name: commit-message
description: Write one-line conventional commit messages.
—

# Commit Message Skill

Write the commit message as a single line, in the form:

`type(scope): description`

Do not add a body.
Do not add bullets.
Do not explain the change.

Examples:

– `fix(report): use UTC for daily timestamps`
– `feat(auth): add admin impersonation`
– `chore(auth): remove legacy module`

The Three History Conditions
History is the earlier user-assistant exchanges already in the session before the model receives the task it must answer.
I compared three types of history: clean, conflict, and corrected.
The clean history was the control. It included earlier exchanges, but the assistant replies did not break the rule. This tested whether length alone was enough to make the model ignore the skill file.
For example, this is what two prior turns look like in the clean history:
PRIOR TURN 1
user: cache user sessions in redis. Sessions were held in process
memory and lost on restart. They now persist in redis with
a 30 day expiry.

assistant: feat(session): store sessions in redis

PRIOR TURN 2
user: fix the off by one in pagination. The final page dropped one
row when the total was an exact multiple of the page size.

assistant: fix(pagination): correct last page boundary

The conflict history showed the model earlier assistant replies that broke the one-line rule. This tested whether bad examples in the session could overpower the skill file.
PRIOR TURN 1
user: cache user sessions in redis

assistant: feat(session): store sessions in redis

Sessions were held in process memory and lost on restart.
They now persist in redis with a 30 day expiry.

PRIOR TURN 2
user: fix the off by one in pagination

assistant: fix(pagination): correct last page boundary

The final page dropped one row when the total was an exact
multiple of the page size.

The corrected history kept the bad assistant replies in context, but added the user’s correction after each one. This tested whether correction could cancel out the bad example.
PRIOR TURN 1
user: cache user sessions in redis

assistant: feat(session): store sessions in redis

Sessions were held in process memory and lost on restart.
They now persist in redis with a 30 day expiry.

CORRECTION
user: one line only, no body

assistant: feat(session): store sessions in redis

PRIOR TURN 2
user: fix the off by one in pagination

assistant: fix(pagination): correct last page boundary

The final page dropped one row when the total was an exact
multiple of the page size.

CORRECTION
user: one line only, no body

assistant: fix(pagination): correct last page boundary

The History Lengths
I varied the amount of prior turns before the final request. For example, 2 prior turns means the model saw two earlier user-assistant exchanges first. I tested 0, 2, 4, 6, 8, 10, 15, and 20 prior turns.
The Real Requests
A real request is the final user task the model has to answer after seeing the skill file and any prior history. I used five requests so the result would not depend on one specific wording or topic.

Request

1
let admins impersonate a user for support

2
correct timezone handling in the daily report

3
send a welcome email after signup

4
remove the unused legacy auth module

5
warn when a password is reused

The Results
Bad Examples Overrode the Skill File
Can bad examples in the session override a skill file?
In this experiment, yes. With no prior history, the model followed the skill rule. Once the earlier assistant replies showed the wrong pattern, the model began copying that pattern instead.
The graph below shows when each request first started breaking the one-line rule:

From this graph, we can see that:

At 2 prior turns, two of five requests already failed.
At 4 prior turns, three of five failed.
At 6 prior turns, every request failed.

Once a request started failing, it kept failing at later history lengths. By 6 prior turns, all five requests were failing, and none recovered afterward.

Takeaway: Repeated bad examples can override the rules in a skill file.

Corrections Helped, but the Bad Pattern Came Back
If bad examples can override the skill file, can immediate correction prevent the problem?
Partly. Correction delayed the failure, but it did not remove the bad examples from the session. The model stayed on format through 10 prior turns, then started adding bodies again at 15.
The chart below shows how the same requests behaved with and without correction:

Correction helped a lot. Without correction, the rule failed completely by 6 turns. With correction, all five stayed clean through 10 prior turns.
But correction did not fully clear the problem. One request failed at 15 prior turns, and another failed at 20.

Takeaway: Correction is better than silence, but it can still carry the bad pattern forward.

Clean History Stayed Reliable
Was the model failing just because the session got longer?
The clean history suggests no. It had the same amount of prior history as the conflicting history, but the assistant examples all followed the one-line rule.
The chart below compares the conflicting and clean histories:

Across all eight tested history lengths, the clean history produced zero replies with a body.

Takeaway: Session length alone did not cause the failure. The bad assistant examples did.

Good Practices for Working with Agent Skills
These results suggest a few practical habits for working with agent skills:

Use a fresh session when testing or updating a skill file.
Correct bad outputs in the chat so the model sees the correction.
Test the skill file with a fresh session and no prior conversation.
Add a script or hook for rules that can be checked automatically.

For example, you can use a simple script like this to ensure a commit message doesn’t have a body:
def has_body(reply):
lines = [line for line in reply.splitlines() if line.strip()]
return len(lines) > 1

With this check, the failure is visible immediately, so you can reject the output or restart the session.
Run the Experiment
The companion files are in notebooks/skill-example-overrides-the-rule.
To rerun the full experiment, start Ollama with qwen3:8b available, then run:
cd notebooks/skill-example-overrides-the-rule
python3 scripts/run_sweep.py

The script tests every combination of:

one of the five user requests
one history type: clean, conflict, or corrected
one history length: 0, 2, 4, 6, 8, 10, 15, or 20 prior turns

After the model runs finish, score the outputs:
python3 scripts/score_sweep.py

The scoring step checks whether each reply stayed one line or added a body.
References

Do as I Say, Not as I Do: Instruction-Induction Conflict in LLMs (Camassa and Shiller, 2026): shows that instruction-following can collapse under a competing demonstrated pattern, with large differences across models.
MIRAGE: Evaluating and Explaining Inductive Reasoning Process in Language Models (Li et al., 2025): studies how models generalize from observed examples and often rely on nearby examples instead of an explicit rule.
Skill authoring best practices (Anthropic, 2026): recommends concise, tested skills and notes that examples communicate desired style and detail.
Use Skills in Claude Code (Anthropic, 2026): describes the SKILL.md format and how skill content enters a Claude Code session.

Related Tutorials

Make Your Coding Agent Answers Easier to Scan with i-have-adhd: Another small evaluation of how an agent instruction changes coding-agent output.
Hermes Agent Can Write Its Own Skills. I Tested How Well It Works: A hands-on test of agent-created skill files and procedural memory.
Before You Upgrade the Model, Try Thinking Mode: A local-model evaluation that separates behavior changes from model upgrades.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

I Tested Whether Bad Examples Override Agent Skills. They Do Read More »

Make Your Coding Agent Answers Easier to Scan with i-have-adhd

Table of Contents

Introduction
What Is the i-have-adhd Plugin?
Success Conditions for Using the Plugin
Setup
How I Tested It
Test Results
Should You Install It?
Run the Test Yourself
References
Related Tutorials

Introduction
Have you ever received an answer from your coding agent that was correct but hard to scan?
This happens to me often in Claude Code. The answer may be useful, but the important parts are buried in long paragraphs, so I spend extra time figuring out what Claude Code is doing, why it chose that path, and what I should do next.
This matters because if I cannot quickly see the agent’s reasoning and next action, I am more likely to miss a suggestion or change that does not fit what I asked for.
The i-have-adhd plugin claims to solve this by making coding-agent answers more scannable and action-first.
The claim is appealing, but I wanted evidence. So I ran a small A/B test to compare Claude Code with the plugin off and on.
This article walks through the experiment and the results so you can decide whether the plugin is worth installing.

💻 Get the Code: Get the runner, prompts, raw outputs, and metrics from the GitHub companion folder.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

What Is the i-have-adhd Plugin?
i-have-adhd is a coding-agent plugin that makes responses easier to scan and act on. It does this by nudging the agent to:

Rule
Why it matters

Put the next action first
The reader can see the recommended action before reading the explanation.

Use numbered steps for multi-step answers
The order of work is clear.

Limit long lists to the five most useful items
The reader has fewer options to sort through.

Skip unnecessary context
The answer stays focused on the decision or action.

End with one concrete follow-up
The reader knows what to do next without asking another question.

If you need machine-readable structure instead of human-scannable answers, my structured LLM output tools comparison covers schema-based approaches.
Success conditions for using the plugin
I did not want to measure length alone. For the plugin to be worth using, it had to pass these checks:

Is the answer easier to scan?
Is the important information easier to find?
Is useful detail still included?
Does a detailed prompt still get a detailed answer?

Setup
Here is the test environment:

Item
Value

Claude Code
2.1.251

Model
Claude Opus 5

Operating system
macOS 25.6

Machine
Apple M5 Pro, 64 GB

Plugin
i-have-adhd v0.2.0

For installation instructions for the plugin, refer to the setup section in the GitHub README.
How I Tested It
Controlled Settings
I compared Claude Code with the plugin off and on. To keep the comparison fair, every run used:

Same model
Same prompt
Same default output style

Each prompt was run five times in each condition.
Run Command
Each run used the same command to remove avoidable sources of variation:

claude -p "$prompt" runs a fresh, single-turn Claude Code response.
–permission-mode acceptEdits prevents permission handling from changing between runs.
outputStyle: "default" keeps the baseline response style fixed.
learning-output-style@claude-plugins-official: false disables a second output-style plugin that could change the answer format.

claude -p "$prompt" \
–permission-mode acceptEdits \
–settings '{"outputStyle":"default",
"enabledPlugins":{"learning-output-style@claude-plugins-official":false}}' \
< /dev/null

With those settings fixed, the only thing I changed was whether the plugin was on or off.
Plugin Switch
For this Claude Code experiment, I controlled the plugin with one marker file: ~/.claude/.i-have-adhd-always.

Creating the file turned the plugin on.
Removing the file turned the plugin off.

# Plugin on: a SessionStart hook reads this sentinel and injects the ruleset
touch ~/.claude/.i-have-adhd-always

# Plugin off: same model, same prompt, no ruleset
rm ~/.claude/.i-have-adhd-always

The metrics
To make the comparison repeatable, I measured each answer with simple text-based metrics instead of relying only on manual reading.
Here are the metrics I will use:

Metric
What it tells me

Prose word count
How much explanation the reader has to read, excluding code blocks.

Non-blank lines
How much vertical space the answer takes on screen.

Total list items
How many choices the reader has to scan before deciding what matters.

Ends with a next action
Whether the answer gives the reader a concrete thing to do next.

For prose word count, I stripped fenced code blocks first then counted the words.
prose = strip_code_blocks(answer)
prose_word_count = len(prose.split())

For non-blank lines, I split each answer by line breaks, removed empty lines, and counted the remaining lines.
nonblank_lines = sum(bool(line.strip()) for line in answer.splitlines())

For total list items, I counted Markdown bullet lines and numbered-step lines separately, then added them.
bullet_lines = count_lines(answer, r"^\s*[-*]\s")
numbered_lines = count_lines(answer, r"^\s*\d+\.")
total_list_items = bullet_lines + numbered_lines

For the final-action check, I looked at the last two non-blank lines and marked the answer as actionable if one of them started with Next or **Next:**:
ends_with_next_action = starts_with_next(last_two_nonblank_lines(answer))

Together, these metrics tell me whether the answer is shorter and easier to scan.
The full experiment source is in run_ab.sh.
The three prompts
I tested the plugin on three prompts: two where the agent had to choose among several possible causes, and one where I explicitly asked for a detailed explanation.
Prompts 1 and 2 are diagnostic. They check whether the plugin makes an answer easier to scan when the question has several plausible causes:
Prompt 1: My model accuracy dropped after I retrained it on the new data. What should I look at?

Prompt 2: Our nightly ETL job started taking 3 hours instead of 40 minutes. Where should I start looking?

Prompt 3 asks for depth. It checks whether the plugin still gives enough detail when the reader explicitly asks for an in-depth explanation:
Prompt 3: Explain the difference between .apply() and vectorized operations in pandas, and when .apply() is actually the right choice. I want enough detail to decide.

Test Results
Prompt 1: Model accuracy dropped after retraining
The first prompt was:
My model accuracy dropped after I retrained it on the new data. What should I look at?

Here are the median results across five runs:

Metric
Default
With the plugin

Prose words
323
170

Non-blank lines
19
8

List items
13
5

Runs ending with a next action
0 of 5
5 of 5

Default answer
The default answer looked like this. I shortened the answer with …. See the full default answer for the complete response:
Here are the key things to investigate, roughly in order of likelihood:

## Data Issues (check first)
– **Data drift** — Compare distributions of features and target between old and new data. Shifted distributions are the most common cause.
– **Label quality** — Check for labeling errors, inconsistent annotation guidelines, or changed label definitions in the new data.
…

## Preprocessing / Pipeline Issues
– **Feature engineering changes** — Were any transformations, scalers, or encoders refit on the new data? A scaler fit on different distributions can hurt.
…

## Training Issues
– **Train/test split** — Are you evaluating on the same test set, or a new one? A harder test set looks like a worse model.
…

## Quick Diagnostic Steps

1. **Evaluate the old model on the new test data** — if it also drops, the data shifted, not the training.
…

The single most informative step is #1: test your old model on the new data. That tells you immediately whether the problem is the data or the training.

Want me to help you write code to diagnose any of these?

Plugin answer
The plugin answer:
Check these in order:

1. **Data drift** — Compare distributions of key features between old and new data. Plot histograms or run a KS test. If the new data looks different, that's your likely cause.

2. **Label quality** — Spot-check labels in the new data for errors, inconsistencies, or a shifted class distribution. Even a small % of mislabeled examples can tank accuracy.

3. **Train/test leakage lost** — If the old model accidentally had leakage that inflated metrics, retraining on clean data will look like a drop. Verify your old eval was legit.

4. **Class imbalance shift** — Compare class ratios old vs new. A shift from 50/50 to 90/10 changes what "accuracy" means. Check per-class precision/recall, not just overall accuracy.

5. **Hyperparameters/preprocessing mismatch** — Confirm the same feature engineering, scaling, and hyperparameters were used. A missing normalization step or changed default can silently break things.

**Next:** Run `old_data.describe()` vs `new_data.describe()` side by side and check for columns with large mean/std shifts. That's the fastest way to spot data drift.

Nothing essential disappeared. Data drift, label quality, leakage, class imbalance, and preprocessing still appear.
But the plugin answer is much easier to scan for the following reasons:

Condensed list: the answer reduced many bullets across multiple sections into five focused checks, making it easier to act on.
Clear order: the five checks were ranked, so the user knew which one to try first.
Concrete next step: the answer closed with one action the reader could take immediately.

Prompt 2: ETL job slowed from 40 minutes to 3 hours
The second prompt was:
Our nightly ETL job started taking 3 hours instead of 40 minutes.
Where should I start looking?

Here are the median results:

Metric
Default
With the plugin

Prose words
257
222

Non-blank lines
26
17

List items
13
5

Runs ending with a next action
0 of 5
5 of 5

Default answer
The full default answer listed five broad headings, each with several bullets:
Here's a systematic approach, ordered by most common culprits:

## 1. Data Volume Changes
…

## 2. Database / Query Performance
…

## 3. Resource Contention
…

## 4. Code / Config Changes
…

## 5. Infrastructure Changes
…

## Where to start concretely
…

Near the end, it gave the highest-value action:
The single highest-value action: **find which step in the pipeline got slower**. Going from 40min to 3hr is a ~4.5x slowdown — that's usually one or two steps, not everything uniformly slower. Once you isolate the step, the root cause is usually obvious.

That is useful advice, but it comes after a long list of possible causes, making it easier to miss and slower to act on.
Plugin answer
The full plugin answer started with an action:
**Run this first** to find what changed recently:

“`bash
# Check git log for ETL-related changes around when slowdown started
git log –since="1 week ago" –oneline — '**/etl*' '**/pipeline*' '**/transform*'
“`

Then it listed exactly five ranked causes:
## 5 most likely causes, ranked

1. **Data volume spike** — Check row counts for source tables…

2. **Missing or dropped index** — A schema migration may have dropped an index…

3. **New upstream schema / join explosion** — A changed join key or added NULL values can silently turn an inner join…

4. **Resource contention** — Another job now overlaps the ETL window…

5. **Code change in transform logic** — A recent commit added …

And then the quick diagnostic steps:
## Quickest diagnostic

Add timing around each ETL phase (extract, transform, load) if you don't already have it. The phase that grew from minutes to hours tells you exactly where to dig.

“`python
# Minimal example
import time
for phase in [extract, transform, load]:
start = time.time()
phase()
print(f"{phase.__name__}: {time.time() – start:.1f}s")
“`

Finally, it gave the highest-value action:
**Next step:** Check whether this is a data problem or a code problem — compare today's source row counts against last week's. If counts are similar, focus on indexes and recent code changes.

Even though the length is similar, the output is more readable because of the following:

Fewer items: thirteen list items became five, reducing the amount of information the user had to compare.
Ranked checks: the plugin ordered the causes, so the user could start with the most likely checks first.
Action first: a runnable command appeared before the explanation, making the answer useful even when skimmed.

Prompt 3: pandas .apply() vs vectorized operations
The third prompt was:
Explain the difference between .apply() and vectorized operations in pandas,
and when .apply() is actually the right choice. I want enough detail to decide.

This prompt tested whether the plugin still gives enough explanation when the user explicitly asks for depth.

Metric
Default
With the plugin

Prose words
426
359

Non-blank lines
61
50

List items
5
8

Bullet lines
0
3

Numbered lines
0
5

Runs ending with a next action
0 of 5
5 of 5

The plugin answer is 16% shorter, but the table alone cannot tell us whether useful explanation was lost. To check that, we need to look at how both answers were organized.
Default answer
The full default answer opened with the concept, then moved through performance, use cases, decision rules, and traps:
## `.apply()` vs Vectorized Operations in Pandas

### Vectorized operations
Vectorized operations run in compiled C/NumPy under the hood…

### What `.apply()` actually does
`.apply()` is a loop in disguise…

### Performance hierarchy (fastest to slowest)

| Approach | Relative speed | Notes |
|—|—|—|
| NumPy / pandas vectorized ops | **1x** (baseline) | `.str`, `.dt`, arithmetic, `np.where`, `pd.cut` |
…

### When `.apply()` is the right choice

**1. Complex logic that genuinely can't be vectorized**
…

### Decision rule
Ask yourself: …

### Common traps
…

Plugin answer
The full plugin answer covered the same core ideas, but reorganized the sections, trimmed some extra material, and kept the final action explicit:
## Vectorized ops vs `.apply()` in pandas
Vectorized operations run in compiled C/NumPy…

### Speed difference
Vectorized arithmetic: 1x baseline
Row-wise `.apply()`: 50-200x slower

### Why vectorized is faster
1. No per-element Python overhead
2. Cache-friendly memory access
3. SIMD / CPU optimizations

### When to use vectorized (most of the time)
Arithmetic, conditionals, string ops, datetime ops, aggregations…

### When `.apply()` is actually the right choice
1. Complex row logic that can't be expressed as array ops
2. GroupBy with custom aggregation
3. Small DataFrames where speed doesn't matter
4. Operating on non-numeric/irregular data
5. Prototype/exploration

Next: pick one `.apply()` call in your code and check if it fits the vectorized alternatives above.

What changed in the plugin answer:

The comparison appears upfront, so the reader sees the core difference before reading examples.
It removes extra background and keeps the answer tied to the main question: which approach should I use, and when?
Extra material is trimmed. The default answer includes common traps, while the plugin answer leaves that out to keep the answer focused.
It ends with a specific next step, so the user knows how to apply the advice to their own code.

The answer became shorter, but not shallow. It still kept the core explanation needed to understand the concept.
Should You Install It?
After this test, I decided to keep the plugin installed because it makes Claude Code answers easier for me to scan and act on.
There are two things to keep in mind.
First, the rules may become less visible after a long coding session with many files, tool outputs, and previous turns. When that happens, a short reminder or a fresh session may help.
Second, there is a small token cost because the plugin adds its rules to the session context. But the rules are short, so the cost should be small.
Run the Test Yourself
The experiment files are available in the GitHub companion folder.
Run the batch:
git clone https://github.com/khuyentran1401/codecut-blog.git
cd codecut-blog/i-have-adhd-plugin-output-ab
bash run_ab.sh

The script runs the full A/B test:

Runs all prompts with the plugin on.
Runs the same prompts with the plugin off.
Saves the raw answers in transcripts/.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

References

i-have-adhd evals/rubric.md (ayghri, 2026): the evaluation rubric weights correctness, autonomy, actionability, safety, and concision.
i-have-adhd evals/cases.jsonl (ayghri, 2026): the maintainers’ case taxonomy that separates action-oriented cases from cases where brevity can remove needed detail.

Related Tutorials

Hermes Agent Can Write Its Own Skills. I Tested How Well It Works
Before You Upgrade the Model, Try Thinking Mode

Make Your Coding Agent Answers Easier to Scan with i-have-adhd Read More »

Hermes Agent Can Write Its Own Skills. I Tested How Well It Works

Table of Contents

Introduction
Meet Hermes Agent
Setup
The Test Task: Debugging a Broken Training Script
Crystallization: Turning Work Into Skills
The Curator: Managing Agent-Created Skills
Final Thoughts

Introduction
Skills are one of the most useful ideas in coding agents like Claude Code and Codex. Instead of repeating the same instructions every time, you can teach the agent a reusable procedure for tasks you perform repeatedly.
But skills are easy to forget. After an agent figures out a useful workflow, nothing automatically turns that discovery into reusable memory. You have to pause, decide what is worth saving, ask for a skill, review it, and keep the skill library organized.
The more skills you add, the harder they become to maintain. Some become stale, some overlap, and some repeat the same idea.
Hermes Agent from Nous Research addresses this with crystallization: after a complex task, the agent can save the workflow as a reusable SKILL.md. Its Curator then keeps the skill library from growing unchecked.
The interesting part is not that Hermes can write skills. Most coding agents can do that when asked. The claim is that Hermes can recognize reusable work and preserve it without a human deciding what is worth keeping.
I was intrigued and wanted to test this myself. Does Hermes actually create a skill after a task, even when the prompt never mentions skills? And when it does, is the skill it writes specific enough to be worth reusing?
To find out, I ran two tests:

Give Hermes a broken training script with several data problems, tell it only to debug the script, and never mention skills. Then check whether a skill file appears.
Add three skills that describe the same workflow, then run the Curator and see whether it spots the overlap.

By the end, you will know whether autonomous skill creation is useful in practice, what kind of skill it produces, and how well the Curator keeps the skill library organized.

💻 Get the Code: All input and output files for this article are available in the companion repo.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

Meet Hermes Agent
Hermes Agent is an open-source AI agent framework from Nous Research. It is built for multi-step coding and task workflows where the agent can inspect files, run commands, call tools, and iterate toward a result.
Some of the features that make Hermes stand out include:

Local and hosted model support: run Hermes with local models through Ollama or with API-backed providers.
Messaging and platform integrations: run Hermes outside the terminal through surfaces like Slack, Discord, Telegram, and WhatsApp.
Autonomous skill creation: let Hermes create skills after completing complex tasks.
The Curator: manage agent-created skills by tracking usage, archiving stale skills, and suggesting consolidations.

Hermes supports several interaction surfaces, including the CLI, a terminal UI, and messaging integrations such as Slack, Discord, Telegram, and WhatsApp. This article uses the CLI to keep the workflow explicit and reproducible.
Setup
This test uses two tools: Ollama to run the model locally, and Hermes Agent to drive the coding workflow.
First, install Ollama and start its local server. On macOS, you can use the Ollama app or Homebrew:
brew install ollama
ollama serve

By default, ollama serve starts a local server at http://localhost:11434, which Hermes will use as the model endpoint.
Then pull the model used in this test. We will use qwen3-coder:30b, a coding-tuned mixture-of-experts model that runs comfortably on a laptop and is well suited for multi-step coding tasks:
ollama pull qwen3-coder:30b

Next, install Hermes and run its setup command:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
hermes setup

Finally, point Hermes at the local Ollama model with the interactive model setup:
hermes model

Choose the custom endpoint option, then point Hermes to the endpoint served by Ollama:
Base URL: http://localhost:11434/v1 # The model server endpoint
Model name: qwen3-coder:30b # The local model Hermes will call
Context length: 65536 # Large enough for Hermes agent workflows

This writes the model settings to ~/.hermes/config.yaml. The resulting configuration should look like this:
model:
default: "qwen3-coder:30b"
provider: "custom"
base_url: "http://localhost:11434/v1"
context_length: 65536

With this setup, you can run Hermes without an API key or account. Everything runs and stays on the machine.

For more on keeping AI workflows fully local, the LangChain and Ollama guide covers running models entirely on your own machine.

The Test Task: Debugging a Broken Training Script
To test Hermes’s skill features, let’s use a dataset that forces the agent through a multi-step debugging process. It includes common data issues: comma-formatted numeric strings, categorical values, missing entries:

Outputrespondent_id,respondent_region,annual_spend_usd,signup_days,converted
1,North,"1,200",30,no
2,South,"2,500",120,yes
5,North,,60,no
…

The starting training script does not handle any of those data issues:
import pandas as pd
from sklearn.linear_model import LogisticRegression

df = pd.read_csv("data.csv")

X = df.drop(columns=["converted"])
y = df["converted"]

model = LogisticRegression(max_iter=1000)
model.fit(X, y)

print("Accuracy:", model.score(X, y))

Running the script fails immediately. Fixing it takes several run-edit-rerun cycles because each data issue surfaces at a different point in the pipeline:

OutputValueError: could not convert string to float: 'North'

This task is ideal for testing Hermes because the agent has to inspect, debug, edit, and verify its work across several steps. Next, let’s run Hermes on the broken script and see whether it turns the solution into reusable skill memory.
Crystallization: Turning Work Into Skills
Crystallization is Hermes Agent’s autonomous skill-creation feature. After a complex task, Hermes can write a reusable SKILL.md that captures the procedure it just used, even if the user never asked it to create a skill.
Let’s test whether that happens in practice by giving Hermes a broken script, letting it debug the issue end to end, and then checking whether a new skill appears afterward.
The command below starts Hermes with the local qwen3-coder:30b model and gives it one instruction: debug the broken script until it trains successfully. It does not mention skills or ask Hermes to save anything.
hermes -m qwen3-coder:30b -z "In this folder, 'python3 train.py' fails. Debug it end to end: run it, read each error, edit train.py, and repeat until it trains a LogisticRegression and prints an accuracy. Inspect the actual data before assuming column types. End with the final accuracy."

Hermes inspected the data, cleaned the comma-formatted numbers, filled the missing values, encoded the categorical column, and got the script running in 14 tool calls. Then it created a new skill, data-cleaning-for-machine-learning.SKILL.md, to capture the workflow for future use.

OutputThe script now successfully trains a LogisticRegression model and prints:
Accuracy: 1.0

I've also created a reusable skill called "data-cleaning-for-machine-learning"
that documents this approach for future reference.

Here is a shortened view of the generated skill:
## Key Steps

1. Inspect data types before modeling.
2. Convert formatted text values into numeric columns.
3. Encode categorical variables.
4. Handle missing values.
5. Keep only model-ready features.

## Common Issues and Solutions

– String numbers with commas
– Categorical encoding
– Missing data handling

## Best Practices

– Inspect data before machine learning.
– Preserve original data when possible.
– Use the right encoding strategy for each column.
– Validate that all features are numeric before training.

The full generated skill is available here: data-cleaning-for-machine-learning.SKILL.md.
This is exactly what crystallization is supposed to do: Hermes turned a multi-step debugging task into a reusable skill automatically.
But creating skills is only half of the workflow. If Hermes keeps saving new procedures after complex tasks, the skill library can quickly grow messy. The next section tests whether the Curator can keep those agent-created skills organized.
The Curator: Managing Agent-Created Skills
The Curator is the cleanup layer for Hermes’s skill system. If crystallization creates skills automatically, the Curator is responsible for keeping those agent-created skills from piling up unmanaged.
This section tests whether the Curator can keep the skill library organized.
The deterministic lifecycle works
Start with hermes curator status to see the Curator’s current lifecycle settings.
hermes curator status

Outputcurator: ENABLED
interval: every 7d
stale after: 30d unused
archive after: 90d unused
consolidate: off (prune-only; LLM merge pass opt-in)

The output shows:

The Curator is enabled.
It runs every 7 days.
Unused skills become stale after 30 days.
Unused skills are archived after 90 days.
Consolidation is off by default and must be enabled explicitly.

When the Curator runs, it works through a fixed sequence:

Snapshot ~/.hermes/skills/ by making a backup copy of the current skill library before any changes are applied, so the run can be rolled back if something goes wrong.
Age skills by usage: mark an unused skill as stale after 30 days, then move it to the archive after 90 days without use.
Consolidate (only if enabled): a background model reviews the skill catalog, looks for overlapping skills, and proposes or applies merges.
Write a report to ~/.hermes/logs/curator/.

Archive and Restore Skills
Archiving removes stale skills from active use without deleting them. To see the archive flow immediately, run it manually instead of waiting for scheduled cleanup. Start by archiving one agent-created skill:
hermes curator archive clean-csv-commas

Outputcurator: archived to ~/.hermes/skills/.archive/clean-csv-commas

List the archive to confirm the skill moved out of the active library:
hermes curator list-archived

Outputclean-csv-commas

Then restore the skill when it should be active again:
hermes curator restore clean-csv-commas

Outputcurator: restored to ~/.hermes/skills/clean-csv-commas

This makes archiving low-risk. A stale skill can be removed from active use without being deleted, then restored later if the same workflow becomes useful again.
Consolidate Overlapping Skills
Consolidation helps clean up duplicate or overlapping skills by proposing merges. To make that behavior visible, we will create three extra skills manually: clean-csv-basic, clean-csv-commas, and prep-messy-data-sklearn.
All three describe the same general workflow: clean a messy CSV so it can be used in a scikit-learn training script. Since merge suggestions should be reviewed before anything changes, run consolidation in dry-run mode first:
hermes curator run –consolidate –dry-run

Outputconsolidations:
– from: clean-csv-basic
into: data-cleaning-for-machine-learning
– from: clean-csv-commas
into: data-cleaning-for-machine-learning
– from: prep-messy-data-sklearn
into: data-cleaning-for-machine-learning

The output shows that consolidation can identify duplicate skill intent, not just identical names. Even though the smaller skills have different names and scopes, the Curator grouped them under the more general data-cleaning-for-machine-learning skill.
Final Thoughts
This experiment shows why Hermes’s skill system is interesting. The agent can learn from completed work, save the workflow as a reusable skill, and then provide tools for keeping those skills organized.
The debugging prompt never mentioned skills, but Hermes still created a useful data-cleaning skill after solving the task.
The Curator adds a scheduled maintenance layer. It can check the skill library on a regular interval, mark unused skills as stale, archive them after enough inactivity, and keep the active skill set from growing unchecked.
That combination is what makes Hermes stand out. It does not remove the need for human review, but it does reduce the manual work needed to capture and maintain reusable agent procedures.
I encourage you to try Hermes yourself. Give it a task that usually takes several commands or edits. Let it work through the task normally, then check whether it turns the workflow into a reusable skill.
Related Tutorials

Add Long-Term Memory to LLM Applications with Mem0: Persist facts and preferences across sessions.
Build Production-Ready LLM Agents with LangChain 1.0 Middleware: Add guardrails and human-in-the-loop to agents.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

Hermes Agent Can Write Its Own Skills. I Tested How Well It Works Read More »

Add Long-Term Memory to LLM Applications with Mem0

Table of Contents

Introduction
Vector Search vs Memory
Setup
Build a Stateless Support Bot
Test the Stateless Support Bot
Store Support Interactions in Mem0
Retrieve Memories Before Responding
Compare Stateless vs Memory-Aware Responses
Add a Status Update
Manage Stored Memories
Final Thoughts

Introduction
LLM applications are often stateless by default. Each prompt only knows what you include at that moment, so useful context from earlier interactions can disappear between sessions.
For simple questions, that is often enough. For returning users, it can lead to repeated explanations, missing preferences, and less helpful responses.
Mem0 helps by extracting important facts from conversations, storing them by user, and retrieving relevant memories when needed.
To see how Mem0 works, we will build a simple e-commerce support workflow, first without memory and then with Mem0, so you can compare how stored context changes the response.

💻 Get the Code: Open the notebook in Google Colab to run it in your browser, or grab the source from GitHub.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

Vector Search vs Memory
A vector database is a good starting point for retrieval, but memory requires more than finding similar text. You still need a way to decide which details are worth saving for future interactions.
In this customer support example, the vector database may retrieve the entire message, including the coffee detail even though it is unrelated to the delayed order:
My order #4821 still has not arrived. I contacted support last week and got no update. Also, I was checking this while making coffee this morning.

A memory layer should keep only the support-relevant facts:
Order #4821 is delayed, and the customer contacted support last week without receiving an update.

To get from raw retrieval to useful memory, your application still needs logic for:

Deciding which details from the message should be remembered for future replies.
Making sure each memory is tied to the right user or conversation.
Deciding how to handle newer memories that conflict with or supersede earlier ones.
Formatting retrieved messages into prompt-ready context.

You can implement this yourself, but the extra extraction and memory-management logic adds up. Mem0 packages that workflow behind a simpler memory API, which we will use in the next section.

If vector search is new to you, see our Pinecone vector database tutorial for a practical introduction to semantic search and retrieval.

Setup
Install the libraries used in this tutorial:

mem0ai: Adds long-term memory for storing and retrieving user context.
litellm: Provides a unified interface for calling LLM providers.
python-dotenv: Loads API keys and configuration from a .env file.

pip install mem0ai litellm python-dotenv

This article uses mem0ai v2.0.4, litellm v1.87.0, and python-dotenv v1.2.2.
Since this tutorial uses OpenAI’s GPT-4o-mini, store your OPENAI_API_KEY in a .env file in your project folder so Mem0 and LiteLLM can access it.
OPENAI_API_KEY=your-openai-api-key

Start by loading the environment variables and imports used throughout the tutorial:
from dotenv import load_dotenv
from litellm import completion
from mem0 import Memory

load_dotenv()

Next, define a helper that sends a list of chat messages to GPT-4o-mini through LiteLLM and returns only the generated text:
def ask_model(messages: list[dict[str, str]]) -> str:
response = completion(model="openai/gpt-4o-mini", messages=messages)
return response.choices[0].message.content

To use another model, replace "openai/gpt-4o-mini" with a model name from the LiteLLM provider docs.
Finally, configure Mem0 with an LLM for extracting memories from messages. This example uses GPT-4o-mini, but Mem0 and LiteLLM do not have to use the same model:
memory = Memory.from_config(
{
"llm": {
"provider": "openai",
"config": {"model": "gpt-4o-mini"},
},
}
)

Build a Stateless Support Bot
First, create a support bot with no memory. It only sees the current message.
SYSTEM_PROMPT = (
"You are a helpful e-commerce customer support agent. "
"Be polite, concise, and practical."
)

def ask_stateless_bot(question: str) -> str:
messages = [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": question},
]
return ask_model(messages)

The customer opens a support chat about a delayed order. We will also include an irrelevant detail in the message, so that we can later show that Mem0 can focus on the useful support facts:
initial_message = (
"My order #4821 still has not arrived. "
"I contacted support last week and got no update. "
"Also, I was checking this while making coffee this morning." # irrelevant detail
)

print(ask_stateless_bot(initial_message))

OutputI'm sorry to hear that your order #4821 hasn't arrived yet. I understand how frustrating this can be. Let me assist you by checking the status for you. Please give me a moment.

The reply is reasonable for a first message. The problem shows up when the customer returns later.
Test the Stateless Support Bot
Let’s see how the bot responds to a follow-up question without passing the earlier conversation:
follow_up = "Hi, any update on my delayed order?"

print(ask_stateless_bot(follow_up))

OutputI’d be happy to help with your order. Could you please provide me with your order number? This will help me look up the status for you.

The response is polite, but it loses the context that matters most: the order number, the prior support contact, and the customer’s frustration.
Store Support Interactions in Mem0
To preserve the missing order context, add Mem0 as a memory layer. Store the customer message under a stable customer_id so it can be retrieved in later interactions.
customer_id = "cust_4821"
order_id = "4821"
issue_type = "shipping"
sentiment = "frustrated"

memory_extraction_prompt = (
"Extract only useful customer-support facts. Ignore unimportant information."
)

add_result = memory.add(
messages=[{"role": "user", "content": initial_message}],
user_id=customer_id,
metadata={
"issue_type": issue_type,
"sentiment": sentiment,
"order_id": order_id,
},
prompt=memory_extraction_prompt,
)

print(add_result)

Output{
"results": [
{
"id": "8d4cf548-683c-49cf-8d68-44d431155741",
"memory": (
"User's order #4821 has not arrived as of June 3, 2026, "
"and they contacted support last week but received no update."
),
"event": "ADD",
}
]
}

Note that the saved memory keeps the support-relevant details: the order number, the delayed delivery, and the prior support contact. It does not include the unrelated coffee detail from the original message.
Raw customer message
|
v
LLM-based extraction step
|
+–> Save: order #4821 has not arrived
+–> Save: customer contacted support last week
+–> Drop: customer was making coffee

This has a few practical benefits:

Cleaner retrieval: Future searches return useful support context instead of unrelated conversation details.
Lower API cost: Passing compact memories instead of noisy chat history can reduce the number of tokens sent to the model.
Better privacy boundaries: Incidental personal details are less likely to be retained when they are not needed.

If you do not want Mem0 to infer or rewrite memories, set infer=False. In that mode, Mem0 stores the provided message directly instead of extracting selected facts from it.
Retrieve Memories Before Responding
Before answering a new message, define a helper that searches Mem0 for memories related to the current question and limits the search to the current customer_id:
def retrieve_customer_memories(question: str, customer_id: str) -> dict:
return memory.search(
query=question,
filters={"user_id": customer_id},
top_k=3,
)

for item in retrieve_customer_memories(follow_up, customer_id)["results"]:
print(item["memory"])

OutputUser's order #4821 has not arrived and they contacted support last week but received no update.

Next, convert the dictionary returned by Mem0 into plain text so it can be inserted into the system prompt:
def format_memories(search_result: dict) -> str:
memories = search_result["results"]
if not memories:
return "No relevant memories found."

return "\n".join(f"- {item['memory']}" for item in memories)

print(format_memories(retrieve_customer_memories(follow_up, customer_id)))

Output- User's order #4821 has not arrived and they contacted support last week but received no update.

Compare Stateless vs Memory-Aware Responses
Now we are ready to create a memory-aware support bot. The function below does three things:

Retrieves relevant customer memories from Mem0.
Adds those memories to the system prompt.
Sends the updated prompt to the model.

def ask_memory_aware_bot(question: str, customer_id: str) -> str:
customer_memories = format_memories(
retrieve_customer_memories(question, customer_id)
)

messages = [
{
"role": "system",
"content": (
f"{SYSTEM_PROMPT}\n\n"
f"Relevant customer memories:\n{customer_memories}"
),
},
{"role": "user", "content": question},
]
return ask_model(messages)

Ask the same follow-up again:
print(ask_memory_aware_bot(follow_up, customer_id))

OutputThanks for checking back on order #4821. I can see it is still delayed and that you contacted us last week without an update. I am escalating this with shipping now and will email you a new delivery estimate today.

This response now uses the stored memory. It remembers the order number, the earlier support contact, and the unresolved shipping issue without asking the customer to repeat them.
Add a Status Update
Next, add a new message that changes the order status. This lets us see how the memory-aware bot handles newer information:
status_update_result = memory.add(
messages=[{"role": "user", "content": "Order #4821 arrived today."}],
user_id=customer_id,
metadata={"order_id": order_id, "issue_type": issue_type},
)

print(status_update_result)

Output{
"results": [
{
"id": "1fb682a4-9da2-4a7b-a174-9d77c015c1d1",
"memory": (
"User's order #4821 arrived on June 3, 2026, after "
"previously not arriving and contacting support for an update."
),
"event": "ADD",
}
]
}

Mem0 stores this as a new memory. Ask the same follow-up again:
print(ask_memory_aware_bot(follow_up, customer_id))

OutputHello! I see that your order #4821 has actually arrived on June 3, 2026. If you need any further assistance or have questions about your order, feel free to let me know!

The answer changes because the model now receives both the earlier delay and the newer arrival status in the retrieved memories.
Manage Stored Memories
When memory affects model responses, you need a way to inspect what was stored. Use get_all() to see the memories Mem0 has saved for a customer:
all_memories = memory.get_all(filters={"user_id": customer_id})

for item in all_memories["results"]:
print(item["id"], "-", item["memory"])

Output8d4cf548-683c-49cf-8d68-44d431155741 – User's order #4821 has not arrived and they contacted support last week but received no update.
1fb682a4-9da2-4a7b-a174-9d77c015c1d1 – User's order #4821 arrived on June 3, 2026, after previously not arriving and contacting support for an update.

If a memory is wrong or a ticket is resolved, delete it by ID:
memory_id = all_memories["results"][0]["id"]
memory.delete(memory_id)

Output{'message': 'Memory deleted successfully!'}

You can also delete all memories for a user at once using delete_all(). Be careful because this permanently removes every stored memory for that user:
# Irreversible: deletes all memories for this user
memory.delete_all(user_id=customer_id)

Output{'message': 'Memories deleted successfully!'}

Final Thoughts
Stateless LLM applications are easy to build, but they only know what is included in the current prompt.
Mem0 adds a memory layer for applications that need continuity across sessions. The same pattern can support customer support bots, personal assistants, tutoring apps, healthcare intake tools, CRM workflows, and onboarding assistants.
With Mem0, applications can save important details from past interactions and retrieve the most relevant context for future responses.
Use memory when you don’t want returning users to have to repeat important details. Skip it when each request is self-contained or when storing user history adds unnecessary complexity.
Related Tutorials

Implement Semantic Search in Postgres Using pgvector and Ollama: Learn how to store embeddings in Postgres and retrieve semantically similar records with pgvector.
Enforce Structured Outputs from LLMs with PydanticAI: Learn how to validate extracted LLM outputs with typed Pydantic models.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

Add Long-Term Memory to LLM Applications with Mem0 Read More »

Stop Writing SQL for AI Agents: Build Direct Database Access with FastMCP

Table of Contents

The Copy-Paste Database Problem
What is Model Context Protocol (MCP)?
What is FastMCP?
Installation and Database Setup
Installation

Database Setup: Sample E-commerce Data
Building Your First Database Tools
Connect to the Database
List Tables
Flexible Query Execution Tool
Data Export Tool

Schema Discovery with Resources
Table Schema Resource with URI Patterns
Sample Data Resource
Table Statistics Resource

Connect to MCP Clients
Create the Server File
Install Dependencies

Connect with MCP Clients
Connect to Claude Code
Connect to Claude Desktop
Connect to other MCP clients

Test the Server
Conclusion

The Copy-Paste Database Problem
AI has revolutionized how we write code, making complex database queries accessible to anyone who can describe what they need. But the workflow becomes frustrating when you’re trapped in this repetitive cycle: ask your AI for SQL, copy the query, paste it into your database tool, run it, copy the results, and paste them back to your AI for analysis.
Here’s what this workflow looks like in practice:
# 1. Ask AI for SQL
"Can you write a query to find high-value customers?"

# 2. Copy AI's response
SELECT customer_id, total_spent FROM customers WHERE total_spent > 1000

# 3. Paste into database tool, run query, copy results
# 4. Paste results back to AI for analysis

This manual approach creates several challenges:

Switching between AI and database tools breaks your analytical flow
Copying and pasting introduces transcription errors
AI can’t explore data independently or learn from previous queries

What if your AI could connect directly to your database, run queries autonomously, and provide insights without you ever copying and pasting SQL? That’s exactly what you’ll build in this article using MCP.

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

Key Takeaways
Here’s what you’ll learn:

Eliminate copy-paste SQL workflows by building direct database access for AI agents
Create FastMCP servers with database tools using just decorators and 10 lines of code
Implement read-only query execution with automatic safety validation and transaction handling
Build schema discovery resources that provide table structures without query overhead
Connect to multiple MCP clients including Claude Code, Claude Desktop, and Cursor for autonomous data analysis

What is Model Context Protocol (MCP)?
Model Context Protocol (MCP) is a standard that allows AI models to connect directly to external systems like databases, APIs, and file systems. Instead of being limited to generating code or text, MCP enables AI models to take actions and access real data.
Think of MCP as a bridge between your AI assistant and your database. When you ask AI to “find high-value customers,” the assistant discovers your database tools, calls the appropriate functions, and provides actionable insights, all without you leaving the conversation.

MCP works through two key components:

Tools: Functions that AI models can call to perform actions and modify system state (like executing SQL queries, inserting data, exporting files)
Resources: Data sources that AI models can access for information only (like table schemas, sample data, or documentation)

This direct connection eliminates the copy-paste cycle and enables truly autonomous data analysis.
What is FastMCP?
FastMCP is a Python framework that makes building MCP servers incredibly simple. While you could build MCP servers from scratch, FastMCP provides decorators and utilities that reduce the complexity to just a few lines of code.
In this article, you’ll build a database assistant that:

Connects to SQLite databases and executes queries automatically
Exports results to CSV files with full schema discovery
Provides sample data and calculates database statistics

This complete solution transforms any AI assistant into a powerful database analytics tool. For large-scale analytics workloads, consider our DuckDB deep dive which offers superior performance for analytical queries.
Installation and Database Setup
Installation
To install fastmcp, type the following command:
pip install fastmcp

Other dependencies you’ll need for this article are:
pip install sqlalchemy pandas

SQLAlchemy is the Python SQL toolkit and Object-Relational Mapping (ORM) library we’ll use for database operations.
Database Setup: Sample E-commerce Data
Before building FastMCP tools, let’s create a realistic e-commerce database that we’ll use throughout all examples. The complete database setup code is available in setup_database.py.
from setup_database import create_sample_database

# Create the database we'll use throughout the article
db_path = create_sample_database("ecommerce.db")

Building Your First Database Tools
In this section, you’ll create FastMCP tools that:

Connect to databases and manage connections
Discover tables and database structure
Execute queries with proper transaction handling
Export results to CSV files

Connect to the Database
Start with creating a tool called connect_db to connect to the SQLite database. To create a tool, you need to:

Initialize FastMCP server
Write a Python function with your tool logic
Add the @mcp.tool decorator

from fastmcp import FastMCP
from sqlalchemy import create_engine, text
from sqlalchemy.orm import sessionmaker
import pandas as pd

# Global database connection
db_engine = None
db_session_factory = None

# Initialize FastMCP server
mcp = FastMCP("Database Analytics Assistant")

@mcp.tool
def connect_db(database_path: str) -> dict:
"""Connect to an SQLite database file"""
global db_engine, db_session_factory

# Create new engine and session factory
db_engine = create_engine(f"sqlite:///{database_path}")
db_session_factory = sessionmaker(bind=db_engine)

return {"success": True, "database_path": database_path}

FastMCP tools return JSON responses that AI assistants convert into user-friendly text. This structured approach ensures reliable data exchange between your database and AI systems. For type-safe AI responses, check out our PydanticAI guide.
Here’s what you’ll see when calling the connect_db tool with the ecommerce.db path:
JSON output:
{
"success": true,
"database_path": "ecommerce.db"
}

AI-generated summary:
Connected to the database at ecommerce.db

List Tables
The list_tables tool uses SQLAlchemy’s inspector to discover all tables in the connected database. This gives the AI a complete view of your database structure.
@mcp.tool
def list_tables() -> dict:
"""List all tables in the connected database"""
global db_engine
from sqlalchemy import inspect

inspector = inspect(db_engine)
table_names = inspector.get_table_names()

return {"success": True, "tables": table_names}

Here’s the response you’ll get when calling the list_tables tool:
Human input:
Show me all tables in the ecommerce database

AI converts this to tool call: list_tables()
JSON output:
{
"success": true,
"tables": ["users", "orders"]
}

AI-generated summary:
The database has two tables: users and orders.

Flexible Query Execution Tool
The execute_query tool executes only SELECT queries on the connected database for security. This read-only approach prevents accidental data modification or deletion while allowing powerful data analysis and exploration.
Start by creating a helper function to check if the query is safe.
def _is_safe_query(sql: str) -> bool:
"""Check if a SQL query is safe to execute. Only SELECT queries are allowed."""
sql_lower = sql.lower().strip()
return sql_lower.startswith("select")

Then, create the execute_query tool.
@mcp.tool
def execute_query(sql: str, ctx: Context = None) -> Dict[str, Any]:
"""Execute a SQL query on the connected database."""
global db_session_factory

# Check if query is safe before execution
if not _is_safe_query(sql):
return {
"success": False,
"error": "Potentially dangerous SQL operations are not allowed. Only SELECT queries are permitted."
}

with db_session_factory() as session:
# Execute the SQL query
result = session.execute(text(sql))
rows = result.fetchall()
return {"success": True, "results": [dict(row._mapping) for row in rows]}

Here’s the response you’ll get when calling the execute_query tool with the SQL query:
Human input:
Show me statistics for the users table

AI converts this to:
SELECT
COUNT(*) as total_users,
AVG(age) as average_age,
MIN(age) as youngest_age,
MAX(age) as oldest_age,
COUNT(CASE WHEN age < 30 THEN 1 END) as users_under_30,
COUNT(CASE WHEN age >= 30 THEN 1 END) as users_30_and_over
FROM users

JSON output:
{
"success": true,
"results": [
{
"total_users": 5,
"average_age": 32.0,
"youngest_age": 22,
"oldest_age": 45,
"users_under_30": 2,
"users_30_and_over": 3
}
]
}

AI-generated summary:
Users table statistics:

Metric
Value

Total Users
5

Average Age
32.0

Youngest User
22

Oldest User
45

Users Under 30
2

Users 30 and Over
3

Data Export Tool
The export_to_csv tool executes a SQL query and exports the results to a CSV file. This is useful for creating reports or sharing data with others.
import pandas as pd

@mcp.tool
def export_to_csv(sql: str, filename: str) -> dict:
"""Execute a SQL query and export results to CSV file"""
global db_engine

# Execute query and export to CSV using pandas
df = pd.read_sql(sql, db_engine)
df.to_csv(filename, index=False)

return {"success": True, "filename": filename, "rows_exported": len(df)}

Here’s the response you’ll get when calling the export_to_csv tool:
Human input:
Export product sales data to a CSV file called sales_report.csv

AI converts this to:
SELECT product_name, SUM(quantity) as total_sold, SUM(price * quantity) as total_revenue
FROM orders
GROUP BY product_name
ORDER BY total_revenue DESC

JSON output:
{
"success": true,
"filename": "sales_report.csv",
"rows_exported": 7
}

AI-generated summary:
Successfully exported 7 rows of product sales data to sales_report.csv

Schema Discovery with Resources
Tools require complex security validation and can fail due to database errors or malformed queries. Resources eliminate these risks by providing read-only access to metadata like schemas and sample data without query execution overhead.
In this section, you’ll create FastMCP resources that:

Provide schema information for tables
Provide sample data for tables
Provide statistics for tables

Table Schema Resource with URI Patterns
The get_table_schema resource uses URI patterns to provide flexible access to table schemas. The AI can request schema information for any table by using the URI pattern schema://tables/{table_name}.
from sqlalchemy import inspect

@mcp.resource("schema://tables/{table_name}")
def get_table_schema(table_name: str) -> dict:
"""Get column information for a specific table"""
global db_engine

# Get database inspector
inspector = inspect(db_engine)

# Get column information
columns = inspector.get_columns(table_name)

# Build column info list
column_info = []
for col in columns:
column_info.append({
"name": col["name"],
"type": str(col["type"]),
"nullable": col["nullable"],
})

return {"table_name": table_name, "columns": column_info}

Here’s the response you’ll get when calling the get_table_schema resource:
Human input:
Show me the schema for the users table

AI accesses the resource using URI: schema://tables/users
JSON output:
{
"table_name": "users",
"columns": [
{
"name": "id",
"type": "INTEGER",
"nullable": false
},
{
"name": "name",
"type": "TEXT",
"nullable": false
},
{
"name": "email",
"type": "TEXT",
"nullable": false
},
{
"name": "age",
"type": "INTEGER",
"nullable": true
},
{
"name": "created_at",
"type": "TIMESTAMP",
"nullable": true
}
]
}

AI-generated summary:
The users table schema:

Column
Type
Required

id
INTEGER
Yes

name
TEXT
Yes

email
TEXT
Yes

age
INTEGER
No

created_at
TIMESTAMP
No

Sample Data Resource
The get_table_data resource provides sample data with pagination support. This helps the AI understand the actual data structure and content without overwhelming it with large datasets.
@mcp.resource("data://tables/{table_name}")
def get_table_data(table_name: str, limit: int = 10, offset: int = 0) -> dict:
"""Get sample rows from a specific table with pagination"""
global db_session_factory

with db_session_factory() as session:
# Get sample data with pagination
result = session.execute(
text(f"SELECT * FROM {table_name} LIMIT :limit OFFSET :offset"),
{"limit": limit, "offset": offset},
)
rows = result.fetchall()

# Convert to dict
data = [dict(row._mapping) for row in rows]

return {"table_name": table_name, "sample_data": data, "rows_returned": len(data)}

Here’s the response you’ll get when calling the get_table_data resource:
Human input:
Show me sample data from the users table

AI accesses the resource using URI: data://tables/users
JSON output:
{
"table_name": "users",
"sample_data": [
{
"id": 1,
"name": "Alice Johnson",
"email": "alice@example.com",
"age": 28,
"created_at": "2023-01-15 10:30:00"
},
{
"id": 2,
"name": "Bob Smith",
"email": "bob@example.com",
"age": 35,
"created_at": "2023-02-20 14:15:00"
},
{
"id": 3,
"name": "Charlie Brown",
"email": "charlie@example.com",
"age": 22,
"created_at": "2023-03-10 09:45:00"
}
],
"rows_returned": 3
}

AI-generated summary:
Sample data from the users table:

User ID
Name
Email
Age
Created

1
Alice Johnson
alice@example.com
28
2023-01-15

2
Bob Smith
bob@example.com
35
2023-02-20

3
Charlie Brown
charlie@example.com
22
2023-03-10

Table Statistics Resource
The get_table_stats resource provides comprehensive statistics for a specific table. This helps the AI understand the size and composition of the table.
@mcp.resource("stats://tables/{table_name}")
def get_table_stats(table_name: str) -> dict:
"""Get comprehensive statistics for a specific table"""
global db_engine, db_session_factory

with db_session_factory() as session:
# Get basic table statistics
total_rows = session.execute(
text(f"SELECT COUNT(*) FROM {table_name}")
).scalar()

# Get column information
inspector = inspect(db_engine)
columns = inspector.get_columns(table_name)

return {
"table_name": table_name,
"total_rows": total_rows,
"column_count": len(columns),
}

Here’s the response you’ll get when calling the get_table_stats resource:
Human input:
Show me statistics for the users table

AI accesses the resource using URI: stats://tables/users
JSON output:
{
"table_name": "users",
"total_rows": 5,
"column_count": 5
}

AI-generated summary:
The users table contains 5 rows and has 5 columns (id, name, email, age, created_at).
Connect to MCP Clients
Now that you’ve built all the tools and resources, let’s deploy your FastMCP database server and connect it to an MCP client.
An MCP client is any application that can communicate with MCP servers to access tools and resources, such as Claude Code, Claude Desktop, Cursor, Zed, Continue, and other MCP-compatible development tools.
Create the Server File
First, combine all the code from this article into a single file called database_mcp_server.py. You can find the complete implementation in the example repository.
Install Dependencies
Install UV (the fast Python package manager) if you haven’t already:
curl -LsSf https://astral.sh/uv/install.sh | sh

Use uv (the fast Python package manager) to install all dependencies:
uv sync

Connect with MCP Clients
This FastMCP server works with any MCP-compatible client. Here’s how to connect it to Claude Code and other MCP clients.
Connect to Claude Code
Add your server to Claude Code’s MCP configuration:
claude mcp add database-analytics — uv run database_mcp_server.py

Verify the server is registered:
claude mcp list

Connect to Claude Desktop
Add this configuration to your Claude Desktop config file:
{
"mcpServers": {
"database-analytics": {
"command": "uv",
"args": ["run", "database_mcp_server.py"],
"cwd": "/path/to/your/project"
}
}
}

Connect to other MCP clients
Popular MCP-compatible clients include Cursor, Zed, Continue, and Codeium. Each client has its own configuration format but uses the same server command: uv run database_mcp_server.py. For client-specific setup guides, visit the Model Context Protocol documentation.
Test the Server
Once your FastMCP server is running and connected to an MCP client, you can test all the database functionality through natural language commands. Here are practical examples to verify everything works:
Connect to the database:
Connect to my SQLite database at ./ecommerce.db

Output:
✅ Connected to the database at ./ecommerce.db

Explore the schema:
What tables are available in this database?

Output:
The database has 2 tables: users and orders.

Examine the table structure:
Show me the schema for the users table

Output:
The users table has 5 columns: id (INTEGER, required), name (TEXT, required), email (TEXT, required), age (INTEGER, optional), and created_at (TIMESTAMP, optional).

Preview the data:
Show me some sample data from the users table

Output:
Here are 3 sample users:
– Alice Johnson (alice@example.com, age 28)
– Bob Smith (bob@example.com, age 35)
– Charlie Brown (charlie@example.com, age 22)

Run analytics queries:
Calculate total sales by product category

Output:
Product sales summary:
– Laptop: $999.99 (1 sold)
– Tablet: $499.99 (1 sold)
– Monitor: $299.99 (1 sold)
– Headphones: $149.99 (1 sold)

Export the results:
Export the query "SELECT product_name, SUM(quantity) as total_sold FROM orders GROUP BY product_name" to CSV file called sales_report.csv

Output:
✅ Successfully exported 7 rows of product sales data to sales_report.csv

Get table statistics:
Show me statistics for the users table

Output:
Users table statistics: 5 total rows, 5 columns

Conclusion
You’ve successfully built a complete FastMCP database server that transforms how AI assistants interact with databases. Your server delivers:

Direct database connectivity for AI assistants
Flexible query execution with proper transaction handling
Automated data export to CSV files
Comprehensive schema discovery and data exploration
Real-time database statistics and analysis

The best way to learn is to build. Try building your own FastMCP server with different database types, tools, and resources. Here are some ideas to get you started:

Extend the server with additional database operations (INSERT, UPDATE, DELETE)
Add support for multiple database types (PostgreSQL, MySQL, etc.)
Implement advanced analytics tools for statistical analysis such as data visualization, clustering, and anomaly detection
Coordinate multiple AI agents for complex data workflows using LangGraph

📚 Want to go deeper? Learning new techniques is the easy part. Knowing how to structure, test, and deploy them is what separates side projects from real work. My book shows you how to build data science projects that actually make it to production. Get the book →

Stay Current with CodeCut
Easy-to-digest articles on Python, AI, and open-source tools. Delivered twice a week.

.codecut-subscribe-wrap {
display: flex;
justify-content: center;
}

.codecut-subscribe-btn {
background: #72BEFA !important;
color: #2F2D2E !important;
border: none;
border-radius: 8px;
padding: 12px 28px;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.codecut-subscribe-btn:hover,
.codecut-subscribe-btn:focus {
background: #5aa8e8 !important;
color: #2F2D2E !important;
text-decoration: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
.codecut-subscribe-btn {
width: 100%;
text-align: center;
}
}

Subscribe for free

Stop Writing SQL for AI Agents: Build Direct Database Access with FastMCP Read More »

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran