Why AI Agents Get Dumber Over Time: From Passive Memory to Active Skill Capture

    Many teams notice that AI coding agents seem to forget successful workflows: a task completed well once is restarted from scratch a week later. The core issue is not missing memory but the form that experience takes. This article contrasts two approaches—configuration-as-behavior, where preferences live in Markdown context files, and capture-as-capability, where verified workflows are saved as reusable, callable units. It explains why proactively asking to save a workflow improves usability, outlines a practical framework for skill capture with directory conventions, metadata, confirmation gates, lifecycle governance, and observability, and lists common pitfalls and selection advice for teams. The conclusion: an agent's value depends on turning one successful run into an automatically executable capability for the next run.

    1. A Recurring Problem: Agents “Remember” but Do Not “Reuse”

    Many teams that use AI coding tools or agent platforms for a while run into the same scenario. The first time you ask the agent to handle a certain type of task—say, cleaning a spreadsheet and writing the data into a database—the result is satisfactory. A week later, when a similar task comes up, it starts from zero again: re-reading files, re-guessing field mappings, and rewriting the script.

    The problem is usually not that the agent failed to remember. If you ask whether it has handled a similar task before, it will often say yes. The real gap is that the memory exists as conversation history, which a human has to search, summarize, and translate into a complete instruction before feeding it back to the agent. The memory is searchable, but not executable.

    This leads to a key distinction:

    • Memory: declarative information that answers “what did we discuss before, and what are my preferences?”
    • Skill/Procedure: procedural information that answers “what is the standard approach for this type of task, and how do we verify the result?”

    The former must be invoked by a person; the latter can be invoked automatically. Whether an agent gets “smarter with use” essentially depends on which form it captures experience in.

    2. Comparing Two Technical Approaches

    Two common approaches in the industry can be abstracted as “configuration as behavior” and “capture as capability.”

    2.1 Configuration as Behavior: Writing Preferences into Context

    This approach relies on several Markdown convention files to carry long-term information, such as memory files, agent instruction files, and project convention files. The agent reads these files at the start of each session and acts according to what they describe.

    The advantages are clear: transparent, versionable, and reviewable. A change is a code review, and the team can clearly see why the agent behaves a certain way.

    The prerequisites are equally clear: someone has to maintain the files continuously. If the files go stale or are written too vaguely, the agent has to re-infer intent every time. Worse, these files typically describe preferences rather than procedures, so they struggle to carry multi-step tasks with validation steps.

    Example memory file structure:

    1. # Project Conventions
    2. - All data imports must use parameterized writes; string-concatenated SQL is forbidden
    3. - Time fields are stored in UTC and converted to local time only at the presentation layer
    4. - Every batch job must output a row-count validation report
    5. # Personal Preferences
    6. - Code comments in Chinese; functions no longer than 50 lines
    7. - Provide a minimal runnable example first, then add edge-case notes

    2.2 Capture as Capability: Turning Procedures into Callable Units

    Another approach is to proactively ask, after a task is completed, whether to save the workflow as a reusable unit (commonly called a skill, action, template, or workflow). Once the user confirms, the unit is written to a local directory with a name, trigger conditions, input/output conventions, and validation steps. The next time a similar request arrives, the agent matches and executes the unit instead of reasoning from scratch.

    The difference is not about “intelligence” but about where experience lives: one puts it in instructions, the other in an executable structure.

    3. Why Proactive Capture Is a Turning Point for User Experience

    From an interaction design perspective, proactive capture solves three concrete problems.

    First, it lowers the cost of articulation. Users do not need to turn tacit knowledge into formal documentation; they only need to confirm once when the task ends. The cost of organizing knowledge shifts to the system side.

    Second, it creates a quality loop. The saved workflow is a version that was just verified, not a specification written from imagination. This is closer to real runtime behavior than writing a large set of rules in advance.

    Third, it makes reuse predictable. A skill has a name and a trigger description, so the invocation path is deterministic. Chat-history-style memory depends on the model retrieving context on the fly, and whether it hits is unstable.

    This route also has costs. As the number of skills grows, retrieval and governance problems appear: naming conflicts, overlapping responsibilities, and outdated versions. It therefore requires management mechanisms rather than relying on “auto-save” alone.

    4. A Practical Framework for Capturing Capabilities

    The following is a generic, product-agnostic approach that applies to most agent setups with file read/write and task orchestration capabilities.

    4.1 Directory and Metadata Conventions

    Keep convention-type information and capability-type assets separate to avoid cross-contamination:

    1. project/
    2. ├── memory.md # Long-term preferences and constraints (maintained by humans)
    3. ├── skills/ # Reusable procedures (captured by the system + human review)
    4. │ └── csv-import/
    5. │ ├── SKILL.md # Name, triggers, steps, validation
    6. │ └── template/ # Templates and sample files
    7. └── logs/ # Run records for tracing and auditing

    A minimal skill description example:

    1. ---
    2. name: csv-import
    3. trigger: When the user asks to clean a CSV and import it into a database
    4. inputs: [source file path, target table name, encoding]
    5. steps:
    6. 1. Detect encoding and delimiter; output a preview of the first 5 rows
    7. 2. Infer field types, generate a mapping table, and wait for confirmation
    8. 3. Write in batches using parameterized statements
    9. 4. Output row counts, failed rows, and a validation report
    10. guardrails:
    11. - String-concatenated SQL is forbidden
    12. - Split writes when a single batch exceeds the threshold
    13. ---

    4.2 Human Confirmation Gate

    Automatic capture must keep a confirmation step. At minimum, cover three things: whether the trigger condition is unique, whether sensitive data handling is involved, and whether the rollback method is clear. Without confirmation, the skill library fills up with noise quickly.

    4.3 Governance and Lifecycle

    Add a version number and a last-verified timestamp to each skill; downweight or archive entries that have not been invoked for a long time; merge entries with overlapping responsibilities. In short, do “dependency management” for capability assets.

    4.4 Observability

    Record every invocation as a structured log containing at least the skill name, input summary, duration, result, and failure reason. Without logs, you cannot tell whether a skill should be fixed or removed.

    5. Common Pitfalls

    • Using memory files as skills: documents describe preferences and cannot guarantee that a multi-step procedure is fully executed.
    • Pursuing fully automatic capture: without confirmation, incorrect procedures get introduced and then reused repeatedly.
    • Only adding, never deleting: as the skill library grows, retrieval hit rate drops and tasks slow down.
    • Ignoring permission boundaries: procedures involving files, databases, or external APIs should define least privilege and a rollback strategy.

    6. Selection and Adoption Advice

    If a team values transparency and reviewability, configuration-driven behavior can be the first choice, with a designated owner maintaining the convention files. If task types are numerous and change quickly, introduce proactive capture to turn high-frequency workflows into callable units, along with review and archiving processes. Most teams end up with a hybrid model: preferences and hard constraints live in memory files, while stable workflows are captured as skills.

    For scenarios that need elastic compute, unified logging and monitoring alerts, and consistency across environments, teams can run and observe these capabilities on general-purpose cloud container platforms, log services, and monitoring/alerting services, giving captured workflows reproducible and auditable engineering properties.

    Ultimately, whether an agent is “intelligent” does not depend on whether it can remember a conversation, but on whether it can turn one successful practice into a capability that runs automatically next time.