Build Complete Software while you sleep

AI that autonomously codes, tests, and deploys. Generate probabilistically, validate deterministically.

Three Core Components

More than just an MCP server - a complete autonomous development platform

MCP Server

Model Context Protocol server that exposes build tools to Claude Code. Provides 50+ MCP tools for builds, patterns, skills, and delegation.

Daemon (cfd)

Background service managing build queues, resource limits, and process monitoring. Task queue with persistent storage, watchdog enforcement.

CLI / TUI

Terminal interface for monitoring builds and managing the system. Mission Control TUI with real-time phase progress and multi-build support.

Key Features

Everything you need for autonomous software development

Build Pipeline

8-Phase Workflow

Scout, Architect, Builder, Test, Docs, Deploy, Feedback - each phase spawns fresh Claude instances with isolated context.

Self-Healing Tests

Automatically fixes test failures through redesign/rebuild cycles. Up to 3 retry attempts with intelligent debugging.

Parallel Execution

AI decides when to spawn parallel agents for faster builds. 2-8 concurrent workers, 3x faster than sequential.

Incremental Builds

Smart change detection rebuilds only what changed. Caches scout analysis and test impact analysis.

Pattern Learning

Context Codex

SQLite database tracking issues, solutions, and build metrics. Full-text search and confidence scoring.

Skills Library

Reusable code implementations with success rate tracking. Search by query, filter by project type.

Infrastructure

Deterministic Enforcement

Post-phase validators, checksum verification, state machine. Code-level compliance wrapping probabilistic generation.

BAML Type Safety

Structured JSON outputs with schema validation. Reduces parsing errors from 5% to less than 1%.

Context Isolation

Each phase spawns fresh 200K token windows. No context pollution, no token accumulation.

The Autonomous Pipeline

Eight specialized phases, each with fresh context and deterministic validation

Scout

Researches requirements, analyzes technical constraints, queries pattern library

Output: scout_report.json

Architect

Designs system architecture, file structure, test strategy from SCOUT_JSON

Output: architecture.json

Builder

Implements code from ARCHITECTURE_JSON with 2-8 parallel workers

Output: source code + build-tasks.json

Test

Runs tests, self-heals failures, validates against requirements

Output: test-report.md

Deploy

Creates GitHub repo, commits code, pushes to remote

Output: github.com/repo

Core Innovation: Deterministic Compliance Layer

Each phase spawns a fresh Claude instance via subprocess with rules injected at spawn time. Post-phase validators verify outputs exist, checksums detect unauthorized modifications, and BAML schemas enforce type safety. Generate probabilistically, validate deterministically.

Command Line Tools

Manage builds and monitor progress from your terminal

# Mission Control TUI
cf                          # Launch interactive terminal UI

# Daemon management
cfd start                   # Start the daemon
cfd status                  # Check daemon health
cfd logs <job-id> --follow  # Stream build logs
cfd list                    # List active builds
cfd stop                    # Stop the daemon

Get Started in 2 Steps

Install takes less than 2 minutes

1

Install

# Option A: npm (recommended)
npm install -g context-foundry

# Option B: pip
pip install context-foundry
2

Build Something

# In Claude Code, just ask in natural language:
"Use CF to build a mass text messaging app"

# Walk away. Come back to deployed code on GitHub.
8
Build Phases
200K
Fresh Token Windows
50+
MCP Tools
3
Extensions

Ready to Build Autonomously?

Generate probabilistically, validate deterministically