https://github.com/fullthom/chat-gpt-quine Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} fullthom / chat-gpt-quine Public * Notifications * Fork 0 * Star 40 40 stars 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights fullthom/chat-gpt-quine This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/f] Use Git or checkout with SVN using the web URL. [gh repo clone fullth] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @fullthom fullthom Update README.md ... 101320f Mar 3, 2023 Update README.md 101320f Git stats * 45 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .gitignore update March 1, 2023 22:58 0.0.0.0.py Check in sample lineage March 3, 2023 09:55 0.0.0.1.0.py Check in sample lineage March 3, 2023 09:55 0.0.0.1.1.py Check in sample lineage March 3, 2023 09:55 0.0.0.1.2.py Check in sample lineage March 3, 2023 09:55 0.0.0.1.py Check in sample lineage March 3, 2023 09:55 0.0.0.2.py Check in sample lineage March 3, 2023 09:55 0.0.0.py Check in sample lineage March 3, 2023 09:55 0.0.1.py Check in sample lineage March 3, 2023 09:55 0.0.2.0.py Check in sample lineage March 3, 2023 09:55 0.0.2.1.py Check in sample lineage March 3, 2023 09:55 0.0.2.2.py Check in sample lineage March 3, 2023 09:55 0.0.2.3.py Check in sample lineage March 3, 2023 09:55 0.0.2.py Check in sample lineage March 3, 2023 09:55 0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.1.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.2.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.1.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.1.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.1.1.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.1.2.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.1.3.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.1.4.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.1.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.2.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.1.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.1.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.2.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.0.1.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.0.2.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.0.3.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.0.4.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.1.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.2.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.2.1.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.2.2.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.2.3.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.2.4.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.2.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.3.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.4.0.0.0.0.0.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.4.0.0.0.0.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.4.0.0.0.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.4.0.0.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.4.0.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.4.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.4.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.4.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.3.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.2.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.3.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.2.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.3.py Check in sample lineage March 3, 2023 09:55 0.1.0.0.py Check in sample lineage March 3, 2023 09:55 0.1.0.py Check in sample lineage March 3, 2023 09:55 0.1.py Check in sample lineage March 3, 2023 09:55 0.py Check in sample lineage March 3, 2023 09:55 README.md Update README.md March 3, 2023 12:43 lib.py Check in sample lineage March 3, 2023 09:55 start.py small tweaks March 3, 2023 09:38 View code README.md Self-replicating Python using ChatGPT This was a little experiment that I (Thomas) created. My goal was a self sustaining program that could reproduce and mutate by using ChatGPT. I wrote .gitignore, start.py, 0.py, and lib.py. The code is 'supposed' to create a new file where the name is it's lineage. 0.py is the first, and 0.0.py is the first child of 0.py, 0.0.1 is the second child of 0.0.py etc. Requests to ChatGPT are concurrent within an execution of get_children, but because of how I used exec() only a single version can be running at once. It forms a tree, where if all of one version's children dies, then the next sibling (or aunt/uncle if the parent is exhausted too) is run. If you want to run this, I'd strongly encourage setting a cap on your OpenAPI budget as this makes a lot of requests. About No description, website, or topics provided. Resources Readme Stars 40 stars Watchers 5 watching Forks 0 forks Releases No releases published Packages 0 No packages published Languages * Python 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.