Skip to main content

Reference

This page is the reference for the terminal and for the shortcuts, which work in all three versions. The desktop app doesn't need commands.

Commands​

CommandWhat it does
miyagi initSets up a new subject (the questions in Getting started) in miyagi's folder, or in the one given with --dir, with or without a Moodle classroom, and offers to explore your Moodle if you connect it. With -w on a subject without a classroom, it offers to connect one; on one that already has it, it connects it again.
miyagi chatFull-screen conversation with the assistant, always asking permission before publishing.
miyagi runGoes through the whole course in one sitting: grades, looks after the forum, reviews the content and sums up how the class is doing.
miyagi run --task "…"Does only the job you give it, with the same rules.
miyagi exploreLooks, without creating anything, at which activity and question types it sees in your course and how grades are calculated, and notes it down. With no classroom connected, it warns you and does nothing.
miyagi ingestAdds the documents in sources it didn't have yet to its notes, without opening Moodle.
miyagi ingest <archivos…>Adds only those documents.
miyagi skillsLists its skills, including yours (marked [own]).
miyagi commandsLists the chat shortcuts, including yours.
miyagi webThe web version: the same page as the app, in your browser and only on your computer. It shows an address with its key: open it and don't share it (see miyagi in the browser).
miyagi workspacesLists your subjects, with the name for -w and their folder. It marks the ones it can no longer find.
miyagi workspaces forget <name>Removes a subject from the list. Its folder isn't touched.
miyagi extension …Installs, configures, enables or removes extensions: search, add, list, config, enable, disable, update, remove.
miyagi --helpShows the help with all commands and options.
miyagi --versionShows the installed version.

With no command at all (just miyagi), it asks whether you want run or chat and, if you're not inside a subject's folder, which one from your list. If you choose a new one, it asks you the init questions, saves it and finishes: launch it again to start.

Options​

OptionWhat forIn which commands
-w <name>, --workspace <name>Work with that subject from your list, from any folderAll
--dir <folder>Work with the subject in that folder, or create it there with initAll
--language=<code>Language of menus and messages: es, en, fr or deAll
--plainSimple text, without full screen, panels or animationschat, run, explore, ingest
--inlineThe chat in the terminal's normal history, without taking up the whole windowchat
--continuePick up the course's last conversationchat
--mode <mode>Choose the mode without being asked: guided, interactive or autonomousrun
--task "<task>"Do only that job instead of going through the whole courserun

Conversation shortcuts​

ShortcutWhat it does
/miyagi:orientGets its bearings in the course: assessment, deadlines and communication channels.
/miyagi:gradeGrades pending submissions with fair, consistent criteria.
/miyagi:forumReviews the forum and decides whether the teacher needs to step in.
/miyagi:progressReviews how the class is doing and who is falling behind.
/miyagi:quiz <unit>Creates a quiz on that topic (or adds questions to it), with the questions imported all at once.
/miyagi:exam <quiz>Prints a quiz as a paper exam: versions A, B… with their answer sheet.
/miyagi:publish <material or unit>Publishes to the classroom what's in materials/: a bank, a quiz, some notes, an assignment with its rubric or a whole unit, hidden first and with your approvals.
/miyagi:build-unit <description>Builds a unit inside the course, fitted to its teaching plan, its calendar and its style.
/miyagi:build-course <description>Builds a complete course: plans it, creates each section and reviews it as a student would see it.
/miyagi:teaching-planWrites or reviews your teaching plan from your material and your decisions.
/miyagi:alignChecks whether the classroom matches your teaching plan and fixes what doesn't.
/miyagi:auditFull audit of the course with prioritised recommendations.
/miyagi:research <unit>Researches a topic online and saves what it finds with its sources.
/miyagi:mapShows where each section and activity of the course is: its number and its link.
/miyagi:new-command <what it should make>Writes with you a command of your own with a form, for this subject or all of them.
/knowledge:ingestAdds whatever is in sources and not yet processed to its notes.
/knowledge:query <question>Answers from its course notes.
/knowledge:lintChecks that its notes are complete and well linked.
/planEnters plan mode (it suggests a plan without changing anything) or, if you're already in it, goes back to the previous mode.
/resumeChoose an earlier conversation to pick it up again.
/extensionsShows which extensions the session works with, and enables or disables them.
/copyCopies its last reply.
/exitCloses the session.

The chat keys (approve, reject, interrupt, change mode) are in The conversation.