Skip to main content
Genesis Architect

Genesis Architect

Most projects fail by repeating mistakes that were already solved in someone else's repository.

Genesis Architect reads those repositories first. It mines closed issues, active forks and post-mortems from projects like the one you are about to build, extracts the failures that keep recurring, and generates a scaffold with those mitigations already in place.

Then it stays. It diagnoses drift, scores architecture, models threats, and tells you which modules are too fragile to touch.

CI PyPI Python License: AGPL v3 Tests



Install

pip install genesis-architect

That is the whole install. Optional extras add voice and the streaming Companion UI:

pip install "genesis-architect[all]"

Start

# Research GitHub, then scaffold a project with the mitigations built in
genesis init a Python CLI for analyzing log files

# Point it at code that already exists
genesis recover .        # drift, broken imports, anti-patterns, fragile modules
genesis harden .         # STRIDE threat model, OWASP checklist, secrets scan

# Or just say what you want; it routes to the right engines
genesis decide "why is this project so hard to change?"

What it actually produces

Run: genesis init a Python CLI for analyzing log files

Pitfalls found in real GitHub issues, before a single file is written:

# Issue Found in Root cause Built-in mitigation
1 pallets/click#2416 4/5 repos Business logic inside a Click callback, untestable cli.py only parses args, all logic in core.py
2 pallets/click#2558 3/5 repos Type stubs change in Click 8.1.4 breaks mypy silently Pin click>=8.1.7, # type: ignore only where needed
3 pallets/click#1846 3/5 repos Raw file path from CLI args allows ../../../etc/passwd get_safe_path(base, user_input) in utils/security.py
4 fastapi/typer#522 5/5 repos No input validation produces cryptic tracebacks click.BadParameter at entry point before processing

Scaffold generated, 12 files, no empty stubs:

log-analyzer/
├── src/log_analyzer/
│   ├── main.py        # Click CLI, args only, delegates to core
│   ├── core.py        # All logic here, testable without subprocess
│   └── utils/
│       └── security.py  # get_safe_path(), path traversal guard
├── tests/test_core.py
├── .github/workflows/ci.yml   # tests, secrets, SAST, quality gate
├── pyproject.toml     # click>=8.1.7 pinned, mypy strict, pytest config
├── RESEARCH.md        # 5 repos analyzed, every source verified live
├── PITFALLS.md        # the pitfalls above, with full root cause analysis
└── ROADMAP.md         # scaffold, tests, CI, quality, ship

Every cited issue URL is checked by CI. A 404 fails the build.


When not to use it

Genesis is overkill for a throwaway script, a one-off utility, or anything under 100 lines you will delete next week. It earns its keep on projects you intend to maintain, anything touching auth, file I/O or external APIs, and libraries other people will depend on.


What is included

Everything below ships in pip install genesis-architect.

Research and scaffolding

  • GitHub repo scan (15 to 20 repos, filtered by stars, recency, language)
  • Issue mining, up to 20 closed bug issues per repo across the top 5
  • Fork analysis ranked by merged PRs in the last 6 months, not by stars
  • Multi-source research orchestration with recency and corroboration scoring
  • Evidence packs: every recommendation carries its sources and a confidence grade
  • Knowledge vault, local cache with 6-month TTL

Analysis

  • Import graph for Python, TypeScript/JavaScript, Go, Rust, with cycle detection
  • Architecture scoring and anti-pattern detection
  • Fragility classification: which modules are stable, fragile, or do-not-touch
  • Drift detection against a committed architecture model
  • C4 diagrams, all three levels, rendered as Mermaid
  • Knowledge graph linking modules, CVEs, risks and decisions into one queryable graph

Security

  • STRIDE threat model and OWASP Top 10 checklist, tailored per project type
  • Offline secrets scanning with redaction
  • Dependency CVE lookup via OSV.dev, no API key required

Working alongside you

  • Decision engine with seven modes, routed from plain language
  • Per-project memory and a decision journal as plain Markdown in .genesis/
  • Companion UI, voice control, and video-to-pitfall extraction (optional extras)

Full command reference: genesis --help, and SKILL.md for the Claude Code / Cursor integration.


How it works

Before writing a file, Genesis runs real research:

  1. Finds 15 to 20 repositories solving the problem you described.
  2. Mines their closed issues for recurring failures, security patches and architecture regrets.
  3. Synthesizes what survived in production across those projects.
  4. Turns each pitfall into a concrete code task, not a document to read later.

The difference from a template: the scaffold reflects what actually broke for the people who built this before you.


Use it inside Claude Code, Cursor or Codex

Genesis ships as an agent skill. Clone it where your agent looks for skills:

# Claude Code
git clone https://github.com/maioio/genesis-architect ~/.claude/skills/genesis-architect

# Codex CLI
git clone https://github.com/maioio/genesis-architect ~/.codex/skills/genesis-architect

# Cursor: copy SKILL.md to .cursor/rules/genesis-architect.md

Then describe what you want in plain language. SKILL.md defines the routing.


Configuration

Genesis calls an LLM through LiteLLM, so any provider works: Anthropic, OpenAI, Gemini, or a local Ollama model.

genesis config set LLM_API_KEY <your-key>
genesis config set GITHUB_TOKEN <token>   # optional, raises the rate limit

Local analysis (recover, harden, import graph, C4, knowledge graph) runs fully offline and needs no key at all.

Telemetry is off by default and opt-in only: genesis telemetry status.


Contributing

Issues and pull requests are welcome. Start with CONTRIBUTING.md; it covers the dev setup, the test suite, and how to add a scaffold layout or engine.

git clone https://github.com/maioio/genesis-architect
cd genesis-architect
pip install -e ".[dev]"
pytest -q

# Or run the suite plus end-to-end CLI checks against a real install
docker build -f Dockerfile.test -t genesis-test . && docker run --rm genesis-test

Please read the Code of Conduct and Security Policy before reporting a vulnerability.


License

GNU AGPL-3.0-or-later. Copyright (C) 2026 Maio Eshet.

You can use, modify and redistribute Genesis freely, including commercially. The one obligation: if you modify it and offer it to others over a network, you must publish your modified source under the same license. Running it on your own code, in your own company, changes nothing for you.

Releases up to v5.4.1 were published under MIT and remain available under those terms.


If Genesis saved you from a bad architecture decision, star it so other people find it.

Metadata

Release files for genesis-architect 8.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genesis-architect 8.0.1
File Size Uploaded Provenance Actions
genesis_architect-8.0.1.tar.gz 521.6 kB With provenance Details for genesis_architect-8.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for genesis-architect 8.0.1
File Interpreter ABI Platform Actions
genesis_architect-8.0.1-py3-none-any.whl Python 3 none any Details for genesis_architect-8.0.1-py3-none-any.whl

Total release size: 921.2 kB

Release files / genesis_architect-8.0.1.tar.gz

Download URL genesis_architect-8.0.1.tar.gz
Size 521.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e107244cbbd609a84066648ee58dc7f9eaf34ad362b2e6acd08af1008c137b98
BLAKE2b-256 checksum
How to use checksums
09315f8dc7f375977f1cd7daf59020e21735787a9eba00cb69f57f05c006e5e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

Release files / genesis_architect-8.0.1-py3-none-any.whl

Download URL genesis_architect-8.0.1-py3-none-any.whl
Size 399.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9a80cdab87c01a6630545aed9a548ef05ad2f1c286bca6a1d4438403b8b0ca3
BLAKE2b-256 checksum
How to use checksums
f34af0bfb646fa6dba60cab799ca4a8930f13efa28336726a95279fb146ca943
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

Security for genesis-architect 8.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for genesis_architect-8.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page