Our practical project for AI-assisted software development. It connects agents with an explicit process, technical checks and human responsibility.
Issue
A requirement becomes a verifiable task.
An issue describes the goal, context and acceptance criteria. The factory detects the trigger label and checks dependencies. Unclear requirements are not silently interpreted.
Foundation: goal, context and acceptance criteria in the issue.
Validation
Resolve gaps before writing code.
After checking required fields, an LLM assesses the requirement. If information is missing, the factory asks a question in the issue and waits for an answer.
Evidence: assessment, question and status in the event log.
Implementation
An isolated workspace for each issue.
The orchestrator starts the implementer in a container. The agent edits workspace files; the factory checks allowed paths against the diff. Runner and model are configurable.
Separation: the agent edits files; the factory controls the workflow.
Tests
Test results rather than self-assessment.
A test agent adds and checks tests. Maven runs in a separate build container. Failures return for correction, with a bounded number of rounds. An agent claiming success does not replace a successful build.
Evidence: build results and Surefire test reports.
Acceptance
Verify against the current base branch.
Before the pull request, the factory rebases and builds in a fresh clone. This checks the change against the current project state. Only then does the factory push and open the pull request.
Gate: acceptance must succeed.
CI & review
Fit into the existing development process.
The factory waits for CI and processes review feedback. People review the change and perform the merge. Once the merge is detected, the factory completes the task.
Human: review, merge, release and operations.
Explanatory workflow model. Questions, failures and review can lead to bounded correction loops or termination.
Architecture
Separate responsibilities. Make interactions visible.
UI & REST APIfactory-app · Spring Boot
PostgreSQLStates · Events · Runs
factory-core
Orchestrator
State machine · Steps · Quality gates
IssueTracker / CodeHostGitHub · GitLab
AgentRunnerCharly · OpenCode · Copilot CLI
Workspace / BuildGit · Docker · Maven
LLM: local or external · OpenAI-compatible endpoint
Simplified architecture. The core depends on interfaces; the application connects infrastructure and concrete adapters.
Open interfaces
Choose agents and models. Keep the process.
Charly AI Factory supports multiple coding agents and LLMs. Agents connect through runners; models are accessed through OpenAI-compatible interfaces.
Agents
AgentRunner
Charly Agent
OpenCode
GitHub Copilot CLI
Charly AI Factory
One workflow for requirements, implementation, tests and review.
Configurable agent & model
Language models
OpenAI-compatible API
Local: e.g. Qwen via Ollama
External: LLMs via compatible endpoints
OpenAI-compatible describes the model interface. Runners and models are configured per role; available model features depend on the selected runner.
Sandboxing & access boundaries
Bounded access. Controlled execution.
AI-generated code is executed, not just read. We separate agent execution from the controlling system and check changes at defined boundaries.
Factory / orchestrator
Controls tasks and status. Handles push and pull requests.
Execution in Docker containers
Agent container
Edit code · Use tools
Works on a local copy of the repository. The factory handles push and pull requests.
Build container
Maven · Build & tests
Verification independent of the agent’s verdict
Dedicated workspace per issueLocal clone · Git configuration and hooks protected
Workflow checkpoints
Path gate on the diff after the agent run · Build & tests · Fresh acceptance before the pull request
Allow changes deliberately
Path rules distinguish agent roles. After a run, the orchestrator checks the diff and discards disallowed changes. This gate checks results; it is not a write barrier during container execution.
Protect Git configuration
Git configuration and hooks are mounted read-only in agent and build containers. After execution, the factory checks the configuration and restores it if changed.
Technical context for these boundaries
Container isolation, the path gate and network rules complement each other. Without the network allowlist enabled, the configured runner network applies; a container alone does not imply blocked internet access.
The controlling factory needs the host Docker socket and is therefore a privileged component. Agent containers do not receive that socket. Model credentials may be supplied to an agent for model calls; the separation specifically concerns tracker and Git credentials.
Engineering decisions
Why the factory is built this way.
Workflow in the orchestrator
State transitions and gates live in deterministic application code. The model makes choices within a task, rather than controlling the entire process.
Separate agent and build
An agent run is not proof of quality. Builds run separately; acceptance follows a rebase in a fresh clone.
A core without Spring
factory-core contains the state machine, steps and interfaces. factory-app adds the REST API, UI, persistence and operations.
Design for repeatable steps
Serialisable inputs and outputs and idempotent steps support recovery and diagnosis. States and events are stored in PostgreSQL.
A concrete example
A new field. More than a code change.
Illustrative issue
Add a product description
“A product should have an optional description. The API returns it; existing products continue to work.”
Check acceptance criteria for completeness
Edit relevant files and tests
Evaluate build results and correct failures
Submit the change as a pull request for review
An explanatory example, not a report of a measured production run.
Context
What the project demonstrates.
Traceability
States, agent runs and build results reveal what happened and where intervention is needed.
Quality by process
Tests, a fresh acceptance build, CI and human review form explicit checkpoints.
Interchangeable components
Charly Agent, OpenCode or Copilot CLI: AgentRunner makes agents interchangeable. Different LLMs connect through OpenAI-compatible APIs, locally or externally.
Human control
Questions and review are part of the process. Merge, release and operations remain human decisions.
A transparent view of development status
The factory is under active development. The documented workflow covers validation, implementation, testing, acceptance, PR/MR, CI and review on GitHub and GitLab. Jira is documented as a read-only source for issue drafts. Broader concepts such as a knowledge base and additional approvals should not be taken as a blanket claim of implemented features.