Skip to content

[Phase 5] Unified CODEFRAME.md Workflow Config #398

@frankbria

Description

@frankbria

Summary

Consolidate CodeFrame's scattered configuration (AGENTS.md, CLAUDE.md, workspace config, CLI flags) into a single CODEFRAME.md file that combines runtime config, agent prompts, and execution settings — inspired by Symphony's WORKFLOW.md pattern.

Motivation

Currently CodeFrame configuration is spread across:

  • AGENTS.md / CLAUDE.md — project preferences for the agent
  • Workspace config in .codeframe/ — tech stack, workspace path
  • CLI flags — engine selection, verbose mode, parallel limits
  • Environment variables — API keys, rate limits

Symphony's WORKFLOW.md approach is elegant: one version-controlled Markdown file with YAML front matter for typed config and a Markdown body for the agent prompt template. This makes configuration discoverable, version-controlled, and team-shareable.

Design

A CODEFRAME.md file at the project root:

---
engine: react
tech_stack: "Python with uv, pytest, ruff"
batch:
  max_parallel: 4
  default_strategy: auto
gates:
  - ruff
  - pytest
hooks:
  before_task: "git checkout -b cf/{{task_id}}"
  after_task_success: "git add -A"
agent:
  max_iterations: 30
  verbose: false
---

# Project Agent Instructions

You are working on a Python REST API project using FastAPI...

## Coding Standards
- Use type hints everywhere
- Follow PEP 8
...

Backward Compatibility

  • CODEFRAME.md takes precedence if present
  • Falls back to AGENTS.md / CLAUDE.md if no CODEFRAME.md found
  • cf init can generate a starter CODEFRAME.md from detected settings

Scope

This is a single-session task since it's primarily a config loading refactor:

  1. Define CODEFRAME.md schema (YAML front matter + Markdown body)
  2. Add parser in core/agents_config.py with precedence: CODEFRAME.md > AGENTS.md > CLAUDE.md
  3. Extract typed config from front matter (engine, tech_stack, batch settings, gates, hooks)
  4. Use Markdown body as agent system prompt supplement
  5. Add cf init --generate-config to create starter CODEFRAME.md
  6. Update documentation

Acceptance Criteria

  • CODEFRAME.md parsed with YAML front matter + Markdown body
  • Typed config extracted: engine, tech_stack, batch, gates, hooks, agent settings
  • Markdown body used as agent prompt supplement
  • Backward compatible: falls back to AGENTS.md/CLAUDE.md
  • cf init --generate-config creates starter file from detected settings
  • Existing tests still pass (no regression)
  • Unit tests for new parser

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureSystem architecture and design patternsenhancementNew feature or requestphase-5Phase 5: Advanced Features & Polishphase-5.2Phase 5.2: Quality & Intelligence (PROOF9, PRD stress test, unified config)symphony-inspiredInspired by OpenAI Symphony spec analysis

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions