├── .gitignore ├── LICENSE ├── README.md ├── package.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | /**/.vscode 21 | /**/lib 22 | lib 23 | 24 | # Coverage directory used by tools like istanbul 25 | coverage 26 | *.lcov 27 | 28 | # nyc test coverage 29 | .nyc_output 30 | 31 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 32 | .grunt 33 | 34 | # Bower dependency directory (https://bower.io/) 35 | bower_components 36 | 37 | # node-waf configuration 38 | .lock-wscript 39 | 40 | # Compiled binary addons (https://nodejs.org/api/addons.html) 41 | build/Release 42 | 43 | # Dependency directories 44 | node_modules/ 45 | jspm_packages/ 46 | 47 | # TypeScript v1 declaration files 48 | typings/ 49 | 50 | # TypeScript cache 51 | *.tsbuildinfo 52 | 53 | # Optional npm cache directory 54 | .npm 55 | 56 | # Optional eslint cache 57 | .eslintcache 58 | 59 | # Microbundle cache 60 | .rpt2_cache/ 61 | .rts2_cache_cjs/ 62 | .rts2_cache_es/ 63 | .rts2_cache_umd/ 64 | 65 | # Optional REPL history 66 | .node_repl_history 67 | 68 | # Output of 'npm pack' 69 | *.tgz 70 | 71 | # Yarn Integrity file 72 | .yarn-integrity 73 | 74 | # dotenv environment variables file 75 | .env 76 | .env.test 77 | 78 | # parcel-bundler cache (https://parceljs.org/) 79 | .cache 80 | 81 | # Next.js build output 82 | .next 83 | 84 | # Nuxt.js build / generate output 85 | .nuxt 86 | dist 87 | 88 | # Gatsby files 89 | .cache/ 90 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 91 | # https://nextjs.org/blog/next-9-1#public-directory-support 92 | # public 93 | 94 | # vuepress build output 95 | .vuepress/dist 96 | 97 | # Serverless directories 98 | .serverless/ 99 | 100 | # FuseBox cache 101 | .fusebox/ 102 | 103 | # DynamoDB Local files 104 | .dynamodb/ 105 | 106 | # TernJS port file 107 | .tern-port 108 | 109 | .DS_Store 110 | /.vs 111 | /dotnet/packages/Microsoft.Bot.Builder.M365/.vs 112 | /dotnet/packages/Microsoft.Bot.Builder.M365/Microsoft.Bot.Builder.M365/bin/Debug/netstandard2.0 113 | /dotnet/packages/Microsoft.Bot.Builder.M365/Microsoft.Bot.Builder.M365/obj 114 | /dotnet/packages/Microsoft.Bot.Builder.M365/Microsoft.Bot.Builder.M365.Tests/bin/Debug/net6.0 115 | /dotnet/packages/Microsoft.Bot.Builder.M365/Microsoft.Bot.Builder.M365.Tests/obj/Debug/net6.0 116 | /dotnet/packages/Microsoft.Bot.Builder.M365/Microsoft.Bot.Builder.M365.Tests/obj 117 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Steven Ickman 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Self-INSTRUCT 2 | Self-INSTRUCT is similar to [Auto-GPT](https://github.com/Significant-Gravitas/Auto-GPT) but with better reasoning and planning. As awesome as GPT is, it's ability to "plan" is mediocre at best (even for GPT-4.) The core idea behind Self-INSTRUCT is to improve its core planning ability by providing it with fragments of human authored [INSTRUCT](https://medium.com/@ickman/instruct-making-llms-do-anything-you-want-ff4259d4b91) sequences that GPT can pick from when doing planning. Self-INSTRUCT will also benefit from other INSTRUCT features, like the ability to avoid hallucinations. 3 | 4 | The code for Self-INSTRUCT is under active development and I'll have more information I can share soon. 5 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "self-instruct", 4 | "version": "0.0.1", 5 | "workspaces": [ 6 | "./packages/*", 7 | "./samples/*" 8 | ], 9 | "scripts": { 10 | "build": "wsrun -e -m -t build", 11 | "build-docs": "wsrun -e -m build-docs", 12 | "clean": "wsrun -m clean", 13 | "depcheck": "wsrun -m -l depcheck", 14 | "dev:link": "wsrun --if is-not-private --bin=yarn link", 15 | "dev:unlink": "wsrun --if is-not-private --bin=yarn unlink", 16 | "lint": "wsrun -m -l lint", 17 | "package": "wsrun -e -t -l --if is-not-private --bin yarn pack", 18 | "test": "npm-run-all build test:mocha test:nyc:report", 19 | "test:mocha": "nyc --silent mocha \"packages/@(bot*)/tests/**/*.test.js\" --exit --check-leaks", 20 | "test:nyc:report": "nyc report" 21 | }, 22 | "devDependencies": { 23 | "@azure/logger": "^1.0.2", 24 | "@azure/ms-rest-js": "2.6.0", 25 | "@microsoft/api-extractor": "^7.15.1", 26 | "@standardlabs/downlevel-dts": "^0.7.5", 27 | "@standardlabs/is-private": "^1.0.1", 28 | "@types/jsonwebtoken": "7.2.8", 29 | "@types/lodash": "^4.14.134", 30 | "@types/mocha": "^5.2.7", 31 | "@types/sinon": "^9.0.11", 32 | "@typescript-eslint/eslint-plugin": "^4.16.1", 33 | "@typescript-eslint/parser": "^4.16.1", 34 | "applicationinsights": "^1.7.5", 35 | "browserify": "^17.0.0", 36 | "depcheck": "^1.4.1", 37 | "eslint": "^7.21.0", 38 | "eslint-config-prettier": "^8.1.0", 39 | "eslint-plugin-import": "^2.22.1", 40 | "eslint-plugin-jsdoc": "^30.7.7", 41 | "eslint-plugin-mocha": "^8.1.0", 42 | "eslint-plugin-only-warn": "^1.0.2", 43 | "eslint-plugin-prettier": "^3.3.1", 44 | "eslint-plugin-security": "^1.4.0", 45 | "exorcist": "^1.0.1", 46 | "mocha": "^6.2.3", 47 | "mocha-junit-reporter": "^2.0.0", 48 | "ms-rest-azure": "^2.6.2", 49 | "npm-run-all": "^4.1.5", 50 | "nyc": "^15.1.0", 51 | "prettier": "^2.1.2", 52 | "read-text-file": "^1.1.0", 53 | "replace-in-file": "^4.1.0", 54 | "rimraf": "^3.0.2", 55 | "shx": "^0.3.3", 56 | "sinon": "^9.2.4", 57 | "source-map-support": "^0.5.19", 58 | "sponge": "^0.1.0", 59 | "tinyify": "^3.0.0", 60 | "ts-node": "^9.0.0", 61 | "typedoc": "^0.19.2", 62 | "typedoc-plugin-external-module-name": "^4.0.3", 63 | "typedoc-plugin-markdown": "^3.0.11", 64 | "typescript": "^4.0.5", 65 | "wsrun": "^5.2.4" 66 | }, 67 | "nyc": { 68 | "exclude": [] 69 | } 70 | } 71 | --------------------------------------------------------------------------------