How loktrishal-05/codekiln works
CodeKiln generates validated, tamper-resistant feature-development tasks from a working repository, then evaluates coding systems against them. The intended workflow is repository ingestion and feature planning, synthesis of a specification and reference patch, blind-reader and execution/mutation gates, secure packaging, and evaluation/reporting. The sampled pipeline currently stops after planning and diversity checks, while the README documents the broader product capabilities; those later stages are included from documented contracts and indexed modules. Arrows use shown references or README statements; uncertain integration details are omitted.
Main entry points: cli.py CLI · pipeline.py Pipeline orchestration · runner.py Synthesis runner · eval_runner.py Blind evaluation
Components 28
Intake and planning
- CLI
src/codekiln/cli.py - Pipeline orchestration
src/codekiln/pipeline.py - Repository loader
src/codekiln/ingestion/repo_loader.py - Reverse feature extraction
src/codekiln/planner/reverse_extract.py - Forward planning
src/codekiln/planner/forward_synth.py - Difficulty and diversity
src/codekiln/planner/diversity_guard.py - Candidate plan
src/codekiln/planner/models.py
Task synthesis
- Synthesis runner
src/codekiln/synthesis/runner.py - LLM router
src/codekiln/synthesis/llm_router.py - Feature specification
src/codekiln/synthesis/models.py - Requirement-test audit
src/codekiln/synthesis/rtm.py
Trust and validation
- Blind-reader lint
src/codekiln/validation/blind_reader.py - Execution gate
src/codekiln/validation/gate_runner.py - Harbor task runner
src/codekiln/validation/harbor_runner.py - Mutation probes
src/codekiln/validation/mutation_probe.py
Packaging and evaluation
- Harbor packaging
src/codekiln/packaging/packager.py - Security scrubber
src/codekiln/packaging/scrubber.py - Harbor task format
src/codekiln/packaging/harbor.py - Blind evaluation
src/codekiln/evaluation/eval_runner.py - Evaluation reports
src/codekiln/evaluation/report_builder.py - Cross-task matrix
src/codekiln/evaluation/variation_matrix.py
State and accounting
- Factory database
src/codekiln/db.py - Candidate state machine
src/codekiln/states.py - Cost and budget ledger
src/codekiln/billing/ledger.py
Other components
- Factory operator
- Chat model service
- Harbor runtime
- Target repository
Connections 36
- Factory operator → CLI: invokes
README.md - CLI → Pipeline orchestration: starts run
src/codekiln/cli.py - Pipeline orchestration → Repository loader: loads repository
src/codekiln/pipeline.py - Repository loader → Target repository: checks out
src/codekiln/ingestion/repo_loader.py - Pipeline orchestration → Reverse feature extraction: plans features
src/codekiln/pipeline.py - Pipeline orchestration → Forward planning: plans features
- Pipeline orchestration → Difficulty and diversity: balances candidates
src/codekiln/pipeline.py - Reverse feature extraction → Candidate plan: creates plans
src/codekiln/planner/reverse_extract.py - Forward planning → Candidate plan: creates plans
src/codekiln/planner/forward_synth.py - Pipeline orchestration → Factory database: records candidates
src/codekiln/pipeline.py - Pipeline orchestration → Candidate state machine: marks diversity state
src/codekiln/pipeline.py - CLI → Synthesis runner: starts synthesis
src/codekiln/cli.py - Synthesis runner → LLM router: requests feature spec
src/codekiln/synthesis/runner.py - LLM router → Chat model service: requests completion
src/codekiln/synthesis/llm_router.py - LLM router → Feature specification: parses and validates
src/codekiln/synthesis/llm_router.py - Synthesis runner → Requirement-test audit: audits traceability
src/codekiln/synthesis/runner.py - Synthesis runner → Blind-reader lint: checks instruction
src/codekiln/synthesis/runner.py - Synthesis runner → Harbor packaging: writes task package
src/codekiln/synthesis/runner.py - Synthesis runner → Cost and budget ledger: meters generation
src/codekiln/synthesis/runner.py - CLI → Execution gate: runs gates
src/codekiln/cli.py - Execution gate → Harbor task runner: executes phases
src/codekiln/validation/gate_runner.py - Execution gate → Candidate state machine: advances on pass
- CLI → Mutation probes: runs probes
src/codekiln/cli.py - Mutation probes → Harbor task runner: runs mutants
src/codekiln/validation/mutation_probe.py - CLI → Security scrubber: audits staged task
src/codekiln/cli.py - CLI → Harbor packaging: packages task
src/codekiln/cli.py - Harbor packaging → Security scrubber: scrubs package
src/codekiln/packaging/packager.py - Harbor packaging → Harbor task format: writes Harbor files
src/codekiln/packaging/harbor.py - Harbor task runner → Harbor runtime: runs task
README.md - CLI → Blind evaluation: starts evaluation
src/codekiln/cli.py - Blind evaluation → Harbor task runner: runs evaluation task
src/codekiln/evaluation/eval_runner.py - Blind evaluation → Blind-reader lint: checks task visibility
src/codekiln/evaluation/eval_runner.py - Blind evaluation → Factory database: records results
src/codekiln/evaluation/eval_runner.py - CLI → Evaluation reports: builds report
src/codekiln/cli.py - Evaluation reports → Candidate state machine: renders state data
src/codekiln/evaluation/report_builder.py - Factory operator → Cross-task matrix: compares tasks
README.md