Skip to main content

Codex Agentic Test Automation Kit

A locally installable multi-agent toolkit that normalizes diverse test input and uses four specialized agents to turn it into executable tests with bounded quality loops.

At a glance

Project type
Internal tool
Year
2026
Project stage
Completed
Role of 5A Technologies
Expertise now brought together within 5A Technologies, gained during a previous professional role: agentic architecture, workflow orchestration, test automation, bounded quality loops and local developer tooling.
Technologies
  • TypeScript
  • Node.js
  • npm
  • Codex
  • Model Context Protocol (MCP)
  • SQLite
Codex Agentic Test Automation Kit — bounded multi-agent test flowHover or focus for details. On mobile, tap a phase to open it.

Extended twelve-phase agentic testing workflow: input, Codex coordination, normalization, routing, four specialized agents, local execution, quality gates, bounded feedback loops and final handover. 1. Provide test request: CSV, Excel, user stories or free-form text 2. Codex session coordinates: Scope, access boundaries and run status remain central 3. Build contract and context: Input and repository context become one automation contract 4. Route workflow: UI, API, unit, mixed, repair or analysis-only 5. Analysis Agent: Agent 1/4 · scope, scenarios and missing context 6. Architecture Agent: Agent 2/4 · framework, structure and execution plan 7. Implementation Agent: Agent 3/4 · tests, helpers, data and configuration 8. Repository and tools: Adapters apply changes and run build, lint and tests locally 9. Quality Agent: Agent 4/4 · technical and functional review 10. Decide gate and iteration: Pass, repair selectively or stop within bounds 11. Record stop condition: Passed, iteration limit or external blocker 12. Final handover: Manifest, results, commands and remaining actions Connections: Provide test request to Codex session coordinates (test request). Codex session coordinates to Build contract and context (bounded run). Build contract and context to Route workflow (contract and repository context). Route workflow to Analysis Agent (selected workflow). Analysis Agent to Architecture Agent (analysis contract). Architecture Agent to Implementation Agent (architecture plan). Implementation Agent to Repository and tools (changes and commands). Repository and tools to Quality Agent (local execution evidence). Quality Agent to Decide gate and iteration (quality verdict). Decide gate and iteration to Record stop condition (release or stop condition). Record stop condition to Final handover (reviewable final result). Decide gate and iteration to Analysis Agent (interpretation feedback). Decide gate and iteration to Architecture Agent (architecture feedback). Decide gate and iteration to Implementation Agent (implementation feedback).

Codex Agentic Test Automation Kit · system flow12 phases · quality agent and bounded repair loops
  1. Provide test requestCSV, Excel, user stories or free-form text
    Coordination, stop condition and handoverThe run starts with test information in several formats

    The user provides a new test request, extension, repair assignment or analysis request. The request can include UI, API and unit tests or a combination of those layers.

  2. Codex session coordinatesScope, access boundaries and run status remain central
    Coordination, stop condition and handoverOne coordinating Codex session safeguards the full run

    This session starts and bounds the orchestration, guards the selected workflow and later receives the final handover. It is explicitly separate from the four specialized agents.

  3. Build contract and contextInput and repository context become one automation contract
    Contract, routing and local executionDifferent sources receive one shared structure

    Parsers normalize scenarios, expected results, test layers and constraints. Relevant repository structure, frameworks and missing context are investigated at the same time.

  4. Route workflowUI, API, unit, mixed, repair or analysis-only
    Contract, routing and local executionThe router selects an appropriate predefined flow

    The router determines which agents are needed, the order in which they work, which compatible adapters are reused and which quality gates apply.

  5. Analysis AgentAgent 1/4 · scope, scenarios and missing context
    Analysis, architecture and implementationThe test request becomes an executable assignment

    The agent validates scenarios, links acceptance criteria, investigates relevant repository context and determines what can be automated. When the basis is insufficient, the flow can end as analysis-only.

  6. Architecture AgentAgent 2/4 · framework, structure and execution plan
    Analysis, architecture and implementationThe solution is fitted into the existing test architecture

    The agent selects compatible adapters and designs suites, fixtures, page objects, clients, mocks, test data, commands and concrete acceptance conditions.

  7. Implementation AgentAgent 3/4 · tests, helpers, data and configuration
    Analysis, architecture and implementationThe implementation plan is executed traceably

    The agent creates or repairs tests and supporting code, links changes to scenarios and starts the first local execution within the configured access boundaries.

  8. Repository and toolsAdapters apply changes and run build, lint and tests locally
    Contract, routing and local executionThe agents work through bounded local repository tools

    Filesystem, process, framework and test-runner adapters inspect and modify the target project. Build, type, lint and test results are returned as execution evidence.

  9. Quality AgentAgent 4/4 · technical and functional review
    Quality Agent and bounded repair loopsGenerated code is not yet an accepted result

    The agent checks build, types, lint, test discovery, execution, skips, assertions, acceptance criteria, reuse, duplication, error handling and remaining risks.

  10. Decide gate and iterationPass, repair selectively or stop within bounds
    Quality Agent and bounded repair loopsEvery verdict selects exactly one next route

    Success proceeds to handover. Rejection sends targeted feedback to Analysis, Architecture or Implementation while the configurable iteration maximum has not been reached. Every new version passes through Quality again.

  11. Record stop conditionPassed, iteration limit or external blocker
    Coordination, stop condition and handoverThe run stops only in an explicit and reviewable state

    The flow stops when gates pass, the iteration limit is reached or missing access, human input or an external product decision makes further work irresponsible.

  12. Final handoverManifest, results, commands and remaining actions
    Coordination, stop condition and handoverControl returns to the coordinating Codex session

    The report distinguishes generated, executable, successful and blocked work and lists changed files, checks, repeatable commands, non-automated scenarios and remaining actions.

Coordination, stop condition and handoverContract, routing and local executionAnalysis, architecture and implementationQuality Agent and bounded repair loopsThe coordinating Codex session safeguards scope and handover; four specialized agents analyze, design, implement and validate through targeted, bounded repair loops.

MCP Memory reuses project context and invalidates outdated context when the source or repository changes.

The local Live Board observes workflows, agents, handoffs, commands and status; it makes no decisions.

Feature flags and access boundaries limit workflows, dependency changes, repair behavior and iterations.

The loop stops when gates pass, the iteration limit is reached or an external blocker requires human input.

In brief

The challenge

The agentic solution

From input to final handover

From input to one automation contract

Workflow router and compatible adapters

The agentic architecture

Loop engineering and targeted handoffs

Local execution and quality gates

MCP Memory and context management

Live Agent Board and observability

Technical building blocks

Final handover

Expertise we bring forward

Qualitative outcome

What this project demonstrates

Deliberate publication boundaries

Would you like to discuss a similar solution?

Tell us where your process slows down today or where AI and automation should work together more effectively. We will explore which controlled approach fits.