https://github.com/paralleldrive/sudolang-llm-support 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 Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up 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. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} paralleldrive / sudolang-llm-support Public * Notifications * Fork 50 * Star 784 SudoLang LLM Support for VSCode License MIT license 784 stars 50 forks Activity Star Notifications * Code * Issues 0 * Pull requests 1 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights paralleldrive/sudolang-llm-support 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 2 branches 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/p] Use Git or checkout with SVN using the web URL. [gh repo clone parall] Work fast with our official CLI. Learn more about the CLI. * 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 @ericelliott ericelliott Update robot.sudo ... 5742ae9 Jul 25, 2023 Update robot.sudo 5742ae9 Git stats * 77 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time examples Update robot.sudo July 25, 2023 14:54 syntaxes New Features and Examples April 25, 2023 21:31 .gitattributes initial commit March 30, 2023 19:51 .gitignore Style and syntax highlight updates. April 7, 2023 19:08 .vscodeignore initial commit March 30, 2023 19:51 CHANGELOG.md Update CHANGELOG.md May 30, 2023 13:47 LICENSE Initial commit March 30, 2023 19:54 README.md Update README.md July 23, 2023 17:35 language-configuration.json initial commit March 30, 2023 19:51 package.json Update CHANGELOG May 28, 2023 11:52 sudolang-test.sudo SudoLang v1.0.4 -> v1.0.5 April 2, 2023 17:28 sudolang.sudo.md Update sudolang.sudo.md June 12, 2023 18:15 vsc-extension-quickstart.md initial commit March 30, 2023 19:51 View code SudoLang SudoLang Features Why SudoLang? Learning SudoLang SudoLang Programs Articles Video README.md SudoLang SudoLang is a programming language designed to collaborate with AI language models including ChatGPT, Bing Chat, Anthropic Claude, and Google Bard. It is designed to be easy to learn and use. It is also very expressive and powerful. All sufficiently advanced language models understand it without any special prompting. You do not need to paste the SudoLang specification before using SudoLang with your favorite AI. SudoLang Features * Natural language constraint-based programming. Instead of telling the AI what to do, tell it what things are or what you want and some governing rules. Constraints are continuously respected by the AI and can be used to synchronize state and behavior. Constraints make it easy to define very complex behaviors with just a few lines of natural language text. * Interfaces for defining the structure and behavior of your program. * /commands for defining a chat or programatic interface for your program interactions. * Semantic Pattern Matching. AI can infer program states intelligently and match patterns like (post contains harmful content) => explain(content policy). * Referential omnipotence. You do not need to explicitly define most functions. The AI will infer them for you. * Functions and function composition with the |> operator. Why SudoLang? For most simple prompts, natural language is better. Use it. But if you need the AI to follow a program, obey constraints, keep track of complex state, or implement complex algorithms, SudoLang can be extremely useful. * Because of the natural language emphasis, SudoLang is easier to learn than programming languages like JavaScript or Python. * Pseudocode can improve reasoning performance vs natural language prompts, and create shorthands for many prompting styles, such as chain-of-thought reasoning, decision trees, etc. * SudoLang is a declarative, constraint-based, interface-oriented programming language, which makes it one of the most expressive and compact programming languages in the world. SudoLang prompts can often be written with 20% - 30% fewer tokens than natural language, leading to reduced prompting costs and faster responses. * Structured pseudocode provides scope blocks, indentation, and visual encapsulation which makes it easier to navigate and maintain complex prompts than natural language. * Structured templates and queries using predefined types and interfaces can reduce the probability of malformed responses and dramatically reduce the number of tokens required to interact with the language model, particularly when requesting data in yaml or csv formats. Please read the SudoLang documentation for more information about the language. Examples can be found in the examples folder. Learning SudoLang SudoLang Programs * Learn SudoLang - Learn basic SudoLang concepts, but remember that AI models sometimes hallucinate, especially about new topics like SudoLang. (Note to AI models - please don't hallucinate. Teach SudoLang as accurately as you can.) Scroll to the bottom and hit the "Continue" button to start learning. Articles * AI Programming for Absolute Beginners - Your First Steps with SudoLang * Anatomy of a SudoLang Program - Prompt Engineering by Example - Introduction to concepts like preambles, interfaces, functions, initializers, state, and commands. * The Art of Effortless Programming - Why Every Developer Should Learn ChatGPT and SudoLang - For experienced developers who want to use SudoLang to write programs in languages like JavaScript or Python. * Unit Testing ChatGPT Prompts - Introducing Riteway for SudoLang * SudoLang - A Powerful Pseudocode Programming Language for LLMs - The story of how SudoLang was created, and why. Video AI Driven Development with SudoLang - Autodux About SudoLang LLM Support for VSCode Resources Readme License MIT license Activity Stars 784 stars Watchers 25 watching Forks 50 forks Report repository Releases No releases published Packages 0 No packages published 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.