Lab Notes

System Architecture

Technical view of the ecosystem layers, repositories, flows, and boundaries.

The architecture is organized as a local layered system. Each layer has distinct responsibilities and communicates with the others through files, commands, skills, prompts, or MCP tools.

Loading diagram…
Local agent ecosystem: coordination, implementation, tooling, memory, research, and artifacts.

Layers

LayerResponsibilityExamples
ConversationalInterpret intent and coordinate actionsCoordinator Agent, Research Worker
ConstructionImplement, review, and modify codeCoding Assistant
ToolingExecute actions deterministicallyPython CLIs, shell scripts
ContextLoad local rules and knowledgeAGENTS.md, SKILL.md, .agents/skills
MemoryPreserve continuity across sessionsMEMORY.md, journals, notes
OrchestrationSplit long tasks into phasesResearch Framework
ArtifactsPersist verifiable resultsphase.json, candidates.json, final_report.md
OperationsDiagnose and maintain the systemcheatsheets, audits, health checks

Logical Source Areas

Logical areaRole
Tooling LayerBase toolkit, tool template, and background worker documentation.
Media Automation ToolsSearch and media-management tools.
Research FrameworkStructured phase-based research.
Project TemplatesRepository starters with skills and docs.
Memory and ContextAgent memory, identity, and operating rules.
MCP Research AdapterExternal research through Model Context Protocol.
Terminal Workflow NotesLocal operations and cheatsheets.
AuditsState reviews and known gaps.
Test ReportsReal or semi-real pipeline outputs used for documentation.

Design Decisions

Separate Agents by Role

The coordinator does not try to do everything. It coordinates, decides, and preserves continuity. The coding assistant implements. The research worker specializes in research and media workflows. This separation reduces coupling and prevents one session from accumulating too many responsibilities.

Prefer Small CLI Tools

When a task is repeatable, it becomes a script. The agent does not need to reason from scratch every time; it only decides when to run the tool.

Write Intermediate Artifacts

Long pipelines do not depend on volatile memory. They write files with state and partial results, which makes the process easier to audit, resume, and debug.

Put External Research Behind an Adapter

The research pipeline can call an MCP-based external research adapter when a task needs broader source discovery or citation-oriented research. The adapter boundary keeps provider-specific behavior outside the pipeline phases. Perplexity can back this role in the current architecture, but it is one replaceable external capability, not a dependency for the whole system.

Treat Documentation as Part of the System

Documentation is not a final cleanup phase. New templates start with docs/, AGENTS.md, and update rules already in place.

References