genesis-repository-truth-context
Compile verified repository context facts for AI prompts
| Size | Folder | Inside |
|---|---|---|
| 10.5 kB | genesis_truth_context/ | 3 scripts |
| 2.2 kB | tests/ | 3 test files |
| 215 B | bin/ | 1 script |
| 6 kB | (root) | 5 docs · 1 asset |
| Size | Path |
|---|---|
| 103 B | .gitignore |
| 497 B | CHANGELOG.md |
| 961 B | LICENSE |
| 445 B | QUICKSTART.md |
| 3.1 kB | README.md |
| 274 B | SECURITY.md |
| 6 B | VERSION · binary |
| 215 B | bin/genesis-truth-context · binary |
| 218 B | genesis_truth_context/__init__.py |
| 1.4 kB | genesis_truth_context/__main__.py |
| 8.9 kB | genesis_truth_context/compiler.py |
| 596 B | pyproject.toml |
| 281 B | tests/fixtures/sample_repo/package.json |
| 42 B | tests/fixtures/sample_repo/src/index.js |
| 1.9 kB | tests/test_compiler.py |
Already bought this?
View your purchasesREADME
Genesis Repository Truth Context Compiler
Deterministic codebase fact extraction and context engineering compiler for autonomous coding agents (Codex CLI, Claude Code, Cursor, Gemini).
1. What Problem Does This Solve?
Coding agents frequently hallucinate build commands, invent nonexistent dependencies, execute incorrect test runners, or misinterpret project topology when fed uncurated repository dumps or generic README files.
genesis-repository-truth-context solves this by statically inspecting project manifests (package.json, pyproject.toml, Cargo.toml), git telemetry, and risk zones to compile a compact, verified fact manifest. Crucially, it enforces strict structural separation between Verified Facts (deterministic ground truth) and Heuristic Inferences (static hypotheses), preventing models from treating guesses as established truth.
2. Who Buys It?
- AI Engineers and Agentic Framework Developers.
- Engineering teams using autonomous coding agents in large or complex codebases.
- Platform architects building context-injection pipelines for enterprise LLM agents.
3. What Does It Output?
- A compact, token-efficient Markdown context document optimized for LLM system prompts.
- Structured JSON (
--json) for automated agent orchestration harnesses.
4. How Fast Can You Test It?
Under 3 seconds. Run:
python3 -m genesis_truth_context ./tests/fixtures/sample_repo
5. Why Is This Different From Generic README Summarizers?
Generic summarizers produce unverified prose with no operational guarantees. genesis-truth-context runs AST and manifest parsers to extract factual test/build commands, dirty git states, and security risk zones, while cleanly demarcating inferences so agents never act blindly on assumptions.
Installation & Usage
# Compile truth context for current repository
python3 -m genesis_truth_context .
# Output to markdown file for agent system prompt
python3 -m genesis_truth_context /path/to/repo --out ./agent-context.md
# Output machine-readable JSON for orchestration pipeline
python3 -m genesis_truth_context /path/to/repo --json
Compiler Architecture & Separation of Concerns
Repository Root
├── Git Telemetry ──┐
├── Package Manifests ──┼──► [VERIFIED FACTS] ──► High Confidence Constraints
├── Build & Test Scripts ──┤ (Zero Model Guesswork)
└── Security Risk Zones ──┘
Static AST Patterns ─────► [INFERENCES] ──► Explicitly Labelled Hypotheses
(Requires Pre-flight Confirmation)
Supported Manifest Ecosystems
- Node.js:
package.json(scripts, dependencies, devDependencies) - Python:
pyproject.toml,requirements.txt,pytest.ini - Rust:
Cargo.toml(packages, targets, cargo test/build) - Git: Working tree cleanliness, branch tracking, commit hash verification
License
Commercial — Genesis Code (genesiscode2026). See LICENSE.
Security scan report
Scanned by X402 Git, OSV (opens in a new tab) and Socket (opens in a new tab) — passed on all three. Findings from all three are listed below.
- secrets
- none found
- X402 Git
- size limits
- within caps
- X402 Git
- known malware
- none in 4 packages
- OSV
- known vulnerabilities
- 3 moderate, 2 low in 4 packages — see below
- OSV
- dependency behaviour
- 2 direct packages declare network access, shell access, filesystem access and more · 462 more in transitive packages · 37 packages flagged for review
- Socket
- instruction smuggling
- none found
- X402 Git
- what it can do
- listed below
- X402 Git
What this can do
- Tools
- none
- Runs
- pyproject.toml ([build-system])
- bin/genesis-truth-context
- genesis_truth_context/__main__.py
- Talks to
- nothing
- Reads
- no environment variables
- At install
- something runs
Findings (54)
- HIGHyargs 17.7.3 (dev only) — yargs 17.7.3 (transitive, dev only) — contains an obfuscated file
- MODERATEpyproject.toml — [build-system] runs when this is installed
- MODERATEexpress — express (npm): Express ressource injection GHSA-cm5g-3pgc-8rg4 CVE-2024-10491
- MODERATEexpress — express (npm): No Charset in Content-Type Header in express GHSA-gpvr-g6gh-9mc2 CVE-2014-6393
- MODERATEexpress — express (npm): Express.js Open Redirect in malformed URLs GHSA-rv95-896h-c2vc CVE-2024-29041
- MODERATEsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — ships compiled native code
- MODERATEsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — ships compiled native code
- MODERATEexpress 4.22.3 — express 4.22.3 (direct) — makes network requests at runtime
- MODERATEexpress 4.22.3 — express 4.22.3 (direct) — makes network requests at runtime
- MODERATEexpress 4.22.3 — express 4.22.3 (direct) — makes network requests at runtime
- MODERATEexpress 4.22.3 — express 4.22.3 (direct) — makes network requests at runtime
- flagged for reviewpicomatch 2.3.2 (dev only) — picomatch 2.3.2 (transitive, dev only) — flagged for review as a possible vulnerability
- MODERATEsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — runs shell commands
- MODERATEsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — runs shell commands
- MODERATEsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — evaluates code at runtime
- MODERATEsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — evaluates code at runtime
- LOWexpress 4.22.3 — express 4.22.3 (direct) — loads modules by a computed name
- LOWexpress 4.22.3 — express 4.22.3 (direct) — reads environment variables
- LOWsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — reads environment variables
- LOWsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — reads environment variables
- LOWexpress 4.22.3 — express 4.22.3 (direct) — reads or writes files
- LOWsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — reads or writes files
- LOWsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — reads or writes files
- LOWexpress — express (npm): Express Open Redirect vulnerability GHSA-jj78-5fmv-mv28 CVE-2024-9266
- LOWexpress — express (npm): express vulnerable to XSS via response.redirect() GHSA-qw6h-vgh9-j6wx CVE-2024-43796
- flagged for reviewsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous
- flagged for reviewsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous
- flagged for reviewsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous
- flagged for reviewsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous
- flagged for reviewsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous
- flagged for reviewsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous
- flagged for reviewsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous
- LOWSocket SBOM Resolver — Socket SBOM Resolver (transitive) — no lockfile, so installs are not reproducible
- LOWSocket SBOM Resolver — Socket SBOM Resolver (transitive) — no lockfile, so installs are not reproducible
- LOWcors 2.8.6 — cors 2.8.6 (direct) — published by an author new to this package
- LOWbin/genesis-truth-context — Ships the script bin/genesis-truth-context
- LOWgenesis_truth_context/__main__.py — Ships the script genesis_truth_context/__main__.py
- LOWis-arrayish 0.2.1 (dev only) — is-arrayish 0.2.1 (transitive, dev only) — trivially small
- LOWexpress 4.22.3 — express 4.22.3 (direct) — contains hard-coded URLs
- LOWsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — contains hard-coded URLs
- LOWsetuptools 84.0.0 (dev only) — setuptools 84.0.0 (direct, dev only) — contains hard-coded URLs
- flagged for reviewgptAnomaly — 29 transitive packages, e.g. content-disposition@0.5.4, mime-types@2.1.35, chalk@4.1.2
- MODERATEusesEval — 11 transitive packages, e.g. depd@2.0.0, jest-snapshot@29.7.0, @babel/traverse@7.29.8
- MODERATEshellAccess — 7 transitive packages, e.g. jest-haste-map@29.7.0, jest-worker@29.7.0, babel-plugin-istanbul@6.1.1
- MODERATEnetworkAccess — 3 transitive packages, e.g. debug@2.6.9, methods@1.1.2, fb-watchman@2.0.2
- LOWunmaintained — 67 transitive packages, e.g. safe-buffer@5.2.1, object-assign@4.1.1, vary@1.1.2
- LOWenvVars — 41 transitive packages, e.g. debug@2.6.9, depd@2.0.0, finalhandler@1.3.2
- LOWfilesystemAccess — 35 transitive packages, e.g. debug@2.6.9, etag@1.8.1, send@0.19.2
- LOWurlStrings — 31 transitive packages, e.g. debug@2.6.9, iconv-lite@0.4.24, @jest/core@29.7.0
- LOWnewAuthor — 18 transitive packages, e.g. encodeurl@2.0.0, finalhandler@1.3.2, http-errors@2.0.1
- LOWdynamicRequire — 17 transitive packages, e.g. @jest/core@29.7.0, import-local@3.2.0, jest-config@29.7.0
- LOWdebugAccess — 16 transitive packages, e.g. on-finished@2.4.1, raw-body@2.5.3, @jest/core@29.7.0
- LOWminifiedFile — 3 transitive packages, e.g. yargs@17.7.3, resolve.exports@2.0.3, react-is@18.3.1
- LOWdeprecated — 2 transitive packages, e.g. glob@7.2.3, inflight@1.0.6
Releases 1
- v1.0.02026-09-17
Production-ready release. Compiles accurate repository context for LLM consumption without hallucinated file paths or stale summaries.