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.
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:
- Finds 15 to 20 repositories solving the problem you described.
- Mines their closed issues for recurring failures, security patches and architecture regrets.
- Synthesizes what survived in production across those projects.
- 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genesis_architect-8.0.0.tar.gz | 517.1 kB | With provenance | Details for genesis_architect-8.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genesis_architect-8.0.0-py3-none-any.whl | Python 3 | none | any | Details for genesis_architect-8.0.0-py3-none-any.whl |
Total release size: 914.4 kB
Release files / genesis_architect-8.0.0.tar.gz
| Download URL | genesis_architect-8.0.0.tar.gz |
|---|---|
| Size | 517.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b3527cabfa075ef29886256008fd7940c1d7cf7ff562cbc64221cf567892879
|
|
BLAKE2b-256 checksum How to use checksums |
523aec59f06f674abe38e4ff75d2495cf05ec9afa221a37eac49a71d893f3200
|
| 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 3, 2026.
Transparency logRelease files / genesis_architect-8.0.0-py3-none-any.whl
| Download URL | genesis_architect-8.0.0-py3-none-any.whl |
|---|---|
| Size | 397.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11678573e7573f7982d6b58ab026855300e69d6ff1f230c0eb2d2143a6e815b1
|
|
BLAKE2b-256 checksum How to use checksums |
01590d5699b2e142782274ccac9e801979772d820c6a4be0b3b57d69459e0b58
|
| 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 3, 2026.
Transparency logSecurity for genesis-architect 8.0.0
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.
Attestation for genesis_architect-8.0.0.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 3, 2026.
Transparency logA 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.