Back to Projects
20262 min readlaunched

Workforces AI

Autonomous multi-agent orchestration toolkit with AST code-graph indexing and self-healing test loops.

PythonTypeScriptMarkdown OKF EngineShellAntigravityMCP

Workforces provides production-grade orchestration infrastructure for multi-agent autonomous engineering and codebase maintenance.

Project Overview

While single-turn LLM chat assistants can generate isolated code snippets, they struggle with large-scale refactors, cross-file architectural integrity, and automated quality assurance.

Workforces was developed as an end-to-end framework that transforms AI coding agents into a cohesive, autonomous software engineering organization:

  • dev (Clean Coder): Enforces strict TDD, symbol graph discovery, and post-edit AST verification.
  • advisor & strategy: Unpacks root problems, unbundles monolithic architectures, and designs validation experiments.
  • scribe: Maintains immutable session lineage, persistent task tracking, and structured decision context.

Architectural Highlights

1. AST Code-Graph Indexer & Symbol Discovery

  • Before modifying or generating code, subagents invoke an AST graph parser to locate existing utilities and classes.
  • Completely prevents duplicate helper functions and enforces DRY principles across multi-repo workspaces.

2. Automated Post-Code Review & Self-Healing Hooks

  • Immediately analyzes modified diffs against contract signatures, swallowed error patterns, and test boundaries.
  • Triggers autonomous self-healing loops to remediate issues before finalizing tasks.

3. Open Knowledge Format (OKF) & Lineage Persistence

  • Stores architectural context, ADRs, and session states in clean, token-efficient Markdown tables.
  • Enables seamless context handover across asynchronous agent sessions.

Key Lessons Learned

• Hierarchical subagent teams prevent context bloat and catastrophic forgetting • Pre-edit AST code-graph lookups eliminate duplicate function and utility generation • Post-edit self-review hooks catch swallowed errors and regressions before humans ever inspect the diff