# primaryobjects/AI-Programmer

Using artificial intelligence and genetic algorithms to automatically write programs. Tutorial: http://www.primaryobjects.com/cms/article149

Repository: https://github.com/primaryobjects/AI-Programmer
Canonical: https://ross.abutalabs.com/products/ai-programmer
Language: C#
License Family: other
Topics: genetic-algorithms, c-sharp, fitness-score, ai, artificial-intelligence, genetic-algorithm, genetic-programming, programming-language, genome, program-synthesis
Last push: 2025-07-23T19:25:28+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 33, release rhythm 35, longevity 100
- inputs: {"age_days": 4970, "days_push": 406, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1103, forks 263 (observed 2026-08-28T04:03:35.990004+00:00)

## What it is
AI-Programmer is a C# experiment that uses genetic algorithms to automatically generate programs in a Turing-complete esoteric language (Brainfuck-style). Genomes are evolved, executed in a simulated interpreter, and ranked by fitness to produce programs like Hello World, arithmetic, and Fibonacci.

## Use cases
- generate programs automatically with genetic algorithms
- learn genetic programming and program synthesis
- evolve code that prints hello world
- experiment with fitness-score-driven code generation
- study self-modifying AI-generated programs
- run a genetic algorithm over an esoteric language interpreter

## When to choose
- you want a hands-on educational example of genetic programming
- you're researching program synthesis via evolutionary algorithms
- you want a C# codebase demonstrating genome-to-program evolution

## When to avoid
- you need production-ready code generation tools
- you expect LLM-based or neural program synthesis
- you need a maintained, licensed library for real applications

## Facets
- artifact type: library
- maturity: maintenance
- function: machine-learning, interpreter, programming-language, simulation
- domain: artificial-intelligence, programming-languages, education
- platform: dotnet, c, cross-platform
- tags: genetic-algorithms, genetic-programming, program-synthesis, brainfuck, esoteric-language, evolutionary-computation, research, algorithms

## Member repositories
- primaryobjects/AI-Programmer (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:35.990004+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:45:34.245112+00:00, confidence not recorded.
  - readme: https://github.com/primaryobjects/AI-Programmer (fetched 2026-08-28T04:03:35.990004+00:00, sha 90273b39ae51)
- Data as of 2026-08-30T08:39:29.467469+00:00.
