docs/architecture/agent-refactor/README.md
This directory is the working area for the current Agent refactor.
The purpose of this refactor is simple:
the project needs a smaller, clearer, and more stable Agent model before more Agent-related behavior is added.
The codebase already contains meaningful Agent behavior. What it still lacks is a sufficiently explicit and stable semantic boundary around that behavior.
This refactor exists to fix that first.
This is a maintenance-led consolidation effort.
It is not a general invitation to expand Agent behavior in parallel.
During this refactor window, Agent-related work should converge on the current refactor track instead of branching into new semantics.
That means:
This refactor follows one hard rule:
do not introduce a new concept unless it is strictly necessary
More explicitly:
The goal of this refactor is not to grow the model.
The goal is to reduce ambiguity.
This refactor is currently concerned with the following questions:
Agent isAgentLoop isAgentLoop isAgentLoop isThese are the current working boundaries.
If they need to be adjusted, they should be adjusted explicitly rather than drift implicitly in code.
The documents here are working materials.
They are not final or immutable.
If current notes are incomplete, incorrectly split, or too broad, they should be revised. This directory should evolve with the refactor rather than pretending the first draft is complete.
This directory may eventually contain notes such as:
agent-overview.md
agent-loop.md
persona.md
capability.md
context.md
subagent.md
These files should be added only when they help clarify the current refactor work.
This directory should not turn into a generic architecture dump.
This directory is not intended for:
If a topic does not directly help reduce ambiguity in the current Agent model, it probably does not belong here yet.
Implementation changes should not keep redefining Agent semantics implicitly.
If a PR changes or depends on Agent semantics, those semantics should either already exist here or be clarified in a linked issue first.
This directory is here to make implementation narrower and more disciplined.
The umbrella issue for this refactor should point here.
The issue is the coordination surface.
This directory is the repository-local working surface.
The main question of this refactor is not:
The main question is: