Folder-Based Agent Harness
Give each AI workflow persistent instructions, tools, memory, and clean sessions
- Difficulty
- Advanced
- Time to result
- ~weeks to results
- Steps
- 8
- Confidence
- 98%
The Folder-Based Agent Harness stores an AI workflow as durable operational assets rather than relying on one expanding conversation. Each objective receives a folder containing instructions, persistent memory, required resources, and protected API access. A clean execution session reads those assets and performs one bounded task, while a separate builder session edits the harness when testing reveals unclear or incorrect behavior. New execution sessions then test the revised files without inheriting irrelevant conversational history. At company scale, the folders can be versioned and shared through GitHub, but every agent must have an explicit boundary defining where automation ends and expert judgment begins. This creates repeatability, limits context contamination, and lets teams improve workflows over time.
Origin
Cameron LiButti described the structure his agency uses for SEO audits, monitoring, keyword research, and rapid design prototyping. Extracted from The Best SEO Podcast.
Core principles
- 01An agent is a structured workflow rather than a magical autonomous worker
- 02Persistent files are more reliable than long chat histories
- 03Build sessions and execution sessions should remain separate
- 04Agents should surface issues while experts retain consequential decisions
- 05Shared standards prevent company-wide agent sprawl
How to run it
- 1
Choose one bounded objective
Define a repeatable outcome such as running an SEO audit, researching keywords, or detecting visual regressions.
Pro tip Write the expected output and escalation condition before selecting tools.
Watch out A vague company-wide mandate will produce an agent with unclear stopping conditions.
- 2
Create the harness folder
Create a dedicated folder containing the workflow's instructions, memory, resources, and configuration.
Pro tip Use a reusable template when several clients need the same workflow.
Watch out Do not scatter authoritative instructions across unrelated chats and documents.
- 3
Write durable instructions
Specify the objective, process, constraints, outputs, and human handoff in an agent file.
Pro tip Treat every disappointing run as evidence that an instruction may need clarification.
Watch out Do not assume the model will consistently remember a rule merely because it appeared earlier in a conversation.
- 4
Attach minimal tools
Give the workflow only the APIs, datasets, and applications needed to complete its objective.
Pro tip Start with read-only access when the agent's purpose is monitoring or analysis.
Watch out Excessive access increases security risk and the consequences of an incorrect action.
- 5
Externalize memory
Record durable context and validated lessons in a memory file that every fresh run can read.
Pro tip Keep task-specific noise out of general memory.
Watch out Long chat histories will eventually be compressed and may lose important details.
- 6
Separate building from running
Use one session to maintain the harness and a fresh session to execute each task. When a run fails, revise the files in the builder session and test again in another clean session.
Pro tip Open a third clean session when validating whether updated instructions work without hidden context.
Watch out Mixing development discussion with production execution contaminates the context and makes results harder to reproduce.
- 7
Set the human boundary
Document which findings the agent may surface or prepare and which decisions require an expert.
Pro tip Route anomalies directly to the responsible person with supporting evidence.
Watch out Do not let an analytical agent silently progress into consequential autonomous action.
- 8
Version and standardize
Store approved harnesses in a shared version-controlled repository so the company uses consistent workflows.
Pro tip Assign ownership for reviewing duplicated or overlapping agents.
Watch out Easy agent creation can produce an unmaintainable collection of conflicting workflows.
In the wild
A read-only agent captures each client website daily, compares the current appearance with the previous day, and identifies visual changes that no longer make sense. It does not repair the website. Instead, it sends the anomaly and comparison evidence to a developer for judgment.
→ Unexpected client changes are surfaced faster without granting the agent authority to alter production websites.
An SEO audit runs in a clean session using instructions and memory from its folder. When the output exposes a missing rule, a separate builder session edits the harness. The next audit starts fresh and reads the revised files rather than inheriting the debugging conversation.
→ The audit process improves while individual runs remain focused and reproducible.
A prototype agent translates discovery material into an early design direction for client feedback within 48 to 72 hours. Failed attempts are used to revise its written instructions, and each new test begins without the context of previous attempts.
→ The agency can validate direction earlier while preserving creative-director involvement for final design quality.
Common mistakes
Building inside one endless chat
Long sessions accumulate irrelevant context, consume more tokens, and eventually lose details through compression.
Letting every team create agents freely
Uncoordinated agent creation produces duplicated capabilities and a spaghetti-like operational structure.
Giving agents decision authority too early
Agents are safer and more useful when they surface evidence quickly while accountable experts make consequential decisions.
Is it for you?
Best for
It is best for teams repeatedly analyzing data, running audits, monitoring systems, or coordinating tool-assisted knowledge work.
Not ideal for
It is not ideal for ambiguous creative work that depends heavily on taste, discovery, and continuous human direction.
From the transcript
“when someone says like a harness, it's just a folder system with a set of instructions.”
“that's where we're implementing AI is not making the decisions, but surfacing some issues faster so that we as the experts can make those decisions…”
“I'll go back to the window that's coding the agent, I'll change it there because it has all that context, and then I will switch…”
From the episode
How SEO Grew Up With Cameron LiButti