{"id":17294,"date":"2026-02-21T11:26:22","date_gmt":"2026-02-21T11:26:22","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=17294"},"modified":"2026-02-21T11:26:23","modified_gmt":"2026-02-21T11:26:23","slug":"simple-example-how-to-use-mshell-ecosystem","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2026\/02\/21\/simple-example-how-to-use-mshell-ecosystem\/","title":{"rendered":"SImple example how to use Mshell Ecosystem."},"content":{"rendered":"\n<p>This note is a practical example of a code generation session within the mshell Ecosystem \u2014 an AI-and-Mathematics powered shell environment that supports 7 programming languages (C, C++, Rust, Go, Python, Lua, and Bash) plus native mshell scripting. The session demonstrates how an user interacts with LLM through a conversational prompt to generate a C\/OpenGL application featuring three perpetually bouncing balls rendered in gold, silver, and copper.<br>Beyond single-language code generation, mshell uses Markdown as the foundation for building documentation, multi-language pipelines, and interlanguage solutions. The core idea is that code blocks in different languages within a single .md document can exchange data through a session variable system \u2014 one block writes its output to a named variable, and the next block in any other language reads it as input. This means, for example, a C program can compute data, pass it to Python for statistical processing, then send the result to an LLM for analysis, and finally display the conclusion in Bash \u2014 all within one document, executed sequentially. LLM model calls can also be embedded inline, supporting Ollama, OpenAI, and Claude backends.<\/p>\n\n\n\n<div\n    class='wp-block-pdfp-pdf-poster  alignnone'\n    id='block-1'\n    data-attributes='{&quot;file&quot;:&quot;https:\\\/\\\/www.appservgrid.com\\\/paw92\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/bouncing_balls.pdf&quot;,&quot;btnStyles&quot;:{&quot;background&quot;:&quot;#2271b1&quot;,&quot;color&quot;:&quot;#fff&quot;,&quot;fontSize&quot;:&quot;16px&quot;,&quot;padding&quot;:{&quot;top&quot;:10,&quot;right&quot;:20,&quot;bottom&quot;:10,&quot;left&quot;:10}},&quot;align&quot;:&quot;none&quot;,&quot;alignment&quot;:&quot;left&quot;,&quot;title&quot;:&quot;&quot;,&quot;titleFontSize&quot;:&quot;16px&quot;,&quot;height&quot;:{&quot;desktop&quot;:&quot;840px&quot;,&quot;tablet&quot;:&quot;700px&quot;,&quot;mobile&quot;:&quot;400px&quot;},&quot;width&quot;:{&quot;desktop&quot;:&quot;100%&quot;,&quot;tablet&quot;:&quot;100%&quot;,&quot;mobile&quot;:&quot;100%&quot;},&quot;showName&quot;:false,&quot;print&quot;:false,&quot;onlyPDF&quot;:false,&quot;defaultBrowser&quot;:false,&quot;downloadButton&quot;:false,&quot;downloadButtonText&quot;:&quot;Download File&quot;,&quot;fullscreenButton&quot;:true,&quot;fullscreenButtonText&quot;:&quot;View Fullscreen&quot;,&quot;newWindow&quot;:false,&quot;protect&quot;:false,&quot;thumbMenu&quot;:false,&quot;sidebarOpen&quot;:false,&quot;initialPage&quot;:0,&quot;alert&quot;:false,&quot;lastVersion&quot;:false,&quot;hrScroll&quot;:false,&quot;isHideRightToolbar&quot;:false,&quot;additional&quot;:{&quot;ID&quot;:&quot;&quot;,&quot;Class&quot;:&quot;&quot;,&quot;CSS&quot;:&quot;&quot;},&quot;adobeEmbedder&quot;:false,&quot;adobeOptions&quot;:{&quot;showDownloadPDF&quot;:true,&quot;showPrintPDF&quot;:true,&quot;showAnnotationTools&quot;:true,&quot;showFullScreen&quot;:false,&quot;embedMode&quot;:&quot;SIZED_CONTAINER&quot;},&quot;popupOptions&quot;:{&quot;enabled&quot;:false,&quot;text&quot;:&quot;Open PDF&quot;,&quot;btnStyle&quot;:{&quot;background&quot;:&quot;#2271b1&quot;,&quot;color&quot;:&quot;#fff&quot;,&quot;fontSize&quot;:&quot;16px&quot;,&quot;padding&quot;:{&quot;top&quot;:10,&quot;right&quot;:20,&quot;bottom&quot;:10,&quot;left&quot;:10}}},&quot;popupBtnStyle&quot;:{&quot;background&quot;:&quot;#2271b1&quot;,&quot;color&quot;:&quot;#fff&quot;,&quot;padding&quot;:{&quot;top&quot;:10,&quot;right&quot;:20,&quot;bottom&quot;:10,&quot;left&quot;:10}},&quot;popupBtnText&quot;:&quot;Open Document&quot;,&quot;CSS&quot;:&quot;&quot;,&quot;socialShare&quot;:{&quot;enabled&quot;:false,&quot;facebook&quot;:true,&quot;twitter&quot;:true,&quot;linkedin&quot;:true,&quot;pinterest&quot;:true,&quot;position&quot;:&quot;top&quot;},&quot;isPremium&quot;:false}'\n    style=\"text-align: left\">\n    \n        <iframe loading=\"lazy\" title=\"\" style=\"border:0;\" width=\"100%\" height=\"800px\" class=\"pdfp_unsupported_frame\" src=\"\/\/docs.google.com\/gview?embedded=true&#038;url=https:\/\/www.appservgrid.com\/paw92\/wp-content\/uploads\/2026\/02\/bouncing_balls.pdf\"><\/iframe>\n\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>This note is a practical example of a code generation session within the mshell Ecosystem \u2014 an AI-and-Mathematics powered shell environment that supports 7 programming languages (C, C++, Rust, Go, Python, Lua, and Bash) plus native mshell scripting. The session demonstrates how an user interacts with LLM through a conversational prompt to generate a C\/OpenGL &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2026\/02\/21\/simple-example-how-to-use-mshell-ecosystem\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SImple example how to use Mshell Ecosystem.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-17294","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/17294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=17294"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/17294\/revisions"}],"predecessor-version":[{"id":17296,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/17294\/revisions\/17296"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=17294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=17294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=17294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}