A Disciplined AI‑SDLC Orchestrator
Cognitive Forge Dev (cforge-dev) is a CLI-based SDLC orchestrator that enforces architectural discipline when building software with AI.
It exists to solve a core problem:
AI can generate code quickly — but without structure, it produces architectural debt faster than humans can detect it.
cforge-dev is the execution layer built on top of Cognitive Forge (cforge).
cforge= Reasoning Enginecforge-dev= AI SDLC Orchestrator
Together they form a disciplined AI engineering stack.
AI sessions accumulate noisy context and drift from architectural intent.
Vibe coding leads to:
- unclear boundaries
- implicit coupling
- missing contracts
- no domain model
AI does not naturally follow:
- structured SDLC
- issue boundaries
- test-first discipline
- clean branching strategy
Multiple edits in a single session blur responsibility and break traceability.
If planning lives in chat instead of GitHub, alignment collapses.
cforge-dev enforces:
- GitHub as single source of truth
- Architecture-first development
- One issue = one isolated execution session
- Test-before-implementation
- Structured sprint cycles
- Release discipline
- Continuous Repository Governance (preventing documentation and architecture rot)
It transforms AI coding from improvisation into process-driven engineering.
Non-negotiable rules:
- GitHub is the source of truth.
- No coding without an Architecture Issue.
- One issue per clean AI execution session.
- Tests before implementation.
- No direct edits to main branch.
- Every sprint ends with a release tag.
This doctrine prevents entropy.
Layered system:
cforge (reasoning core)
↑
cforge-dev (SDLC orchestration)
↑
GitHub (issues, PRs, releases)
↑
Project Repository
cforge-dev uses cforge internally for:
- structured analysis
- persona-driven planning
- critique & refinement
- architectural enforcement
GitHub entities define structure:
- PRD (Product Requirements Document)
- Feature Issues
- Task Issues
- Architecture Issues
- Pull Requests
- Release Tags
All planning artifacts live in GitHub. No planning exists only in chat.
Planning uses structured personas executed via cforge.
- Defines domain model
- Sets boundaries
- Designs folder structure
- Defines interfaces
- Translates PRD into Features
- Defines acceptance criteria
- Defines milestones
- Breaks features into tasks
- Plans sprint
- Orders execution
Personas operate through RCCF reasoning discipline.
Core Principle:
Every GitHub Issue is executed in a fresh, isolated AI context.
Isolation guarantees:
- No context drift
- Clear responsibility
- Clean reasoning boundary
- Traceable commit history
Execution session lifecycle:
- Fetch issue
- Load minimal required context
- Inject system prompts
- Run cforge reasoning
- Generate tests
- Generate implementation
- Run tests
- Commit changes
- Push branch
- Open PR
Then session terminates.
cforge-dev acts as lightweight orchestrator.
Responsibilities:
- Pull issues via GitHub CLI
- Prepare execution environment
- Spawn AI execution process
- Inject strict system prompts
- Validate outputs
- Run test suite
- Commit + push
- Close issue when merged
No long-lived agent memory. No uncontrolled iteration loops.
Outer Layer (CLI)
Application Layer (Use Cases)
Domain Layer (SDLC rules & orchestration logic)
Infrastructure Layer (GitHub CLI, filesystem, shell, test runner)
Domain contains:
- SDLC doctrine enforcement
- Execution isolation rules
- Persona selection logic
- Issue validation rules
- Sprint cycle logic
Infrastructure implements:
- GitHub client adapter
- Test runner adapter
- Git adapter
- Shell command adapter
Domain never depends on GitHub implementation.
Binary: cforge-dev
cforge-dev plan sprint
- Reads PRD
- Generates feature issues
- Orders tasks
- Creates sprint milestone
cforge-dev implement 123
Where 123 = GitHub Issue ID
Under the hood:
- Create feature branch
- Fetch issue details
- Load architecture context
- Spawn isolated AI session
- Generate tests first
- Generate implementation
- Run tests
- Commit changes
- Push branch
- Open PR
cforge-dev verify 123
- Re-run tests
- Validate acceptance criteria
- Apply critique mode
cforge-dev release
- Ensure sprint issues closed
- Bump version
- Create tag
- Generate changelog
cforge-dev audit
Acts as the autonomous SDLC Guardian:
- Scans the workspace against markdown-based "Governance Contracts" (e.g., repo-standard.md).
- Detects documentation rot (e.g., features merged without updating the README.md or CHANGELOG.md).
- Checks for compliance with architectural boundaries and Conventional Commits.
- Uses the underlying cforge reasoning engine to automatically propose and commit fixes.
Context is constructed intentionally:
Included:
- Relevant architecture files
- Issue description
- Acceptance criteria
- Related interfaces
Excluded:
- Entire codebase dump
- Previous unrelated sessions
Context compression via cforge ensures minimal, focused injection.
cforge-dev doesn't rely on hardcoded rules for repository health. Instead, it relies on Governance Contracts—simple markdown files stored in a /contracts/ directory.
These contracts define:
- Folder structures
- Required documentation (README, CONTRIBUTING, LICENSE)
- Commit formatting (Conventional Commits)
- Code style constraints
When cforge-dev audit is run (or triggered in a CI/CD pipeline), it loads these contracts, inspects the filesystem and git history, and utilizes the cforge reasoning engine to critique discrepancies and generate the missing compliance artifacts.
AI is not autonomous. AI operates within strict guardrails:
- System prompts enforce SDLC doctrine
- Persona determines reasoning mode
- Tests must precede implementation
- PR required before merge
Human remains final reviewer.
- GitHub integration
- Issue execution flow
- Test-first enforcement
- Basic persona prompts
- Branch + PR automation
- Context isolation logic
- Context compression
- Architecture validation
- Strict doctrine enforcement
- plan sprint
- implement
- verify
- release
- structured logging
- Parallel execution (isolated sessions)
- Dependency graph awareness
- Automated risk detection
Multiple issues executed concurrently:
- Separate branches
- Separate AI contexts
- Shared architecture constraints
Requires dependency awareness to prevent conflicts.
cforge-dev prevents:
- spontaneous file edits
- undocumented decisions
- hidden coupling
- skipping test coverage
It forces explicit architecture before velocity.
Cognitive Forge Dev is:
A disciplined AI-SDLC workflow CLI that prevents architectural regret while enabling high-velocity AI-assisted development.
It structures the AI. It controls the process. It protects the architecture.
Built on top of Cognitive Forge.