[WIP][OMEGA-76] Add workflow plugin to allow adding new skills via MarkDown files#259
Draft
vsbogd wants to merge 12 commits into
Draft
[WIP][OMEGA-76] Add workflow plugin to allow adding new skills via MarkDown files#259vsbogd wants to merge 12 commits into
vsbogd wants to merge 12 commits into
Conversation
Add separate loader to load plugins written in MeTTa. Add add-skill/remove-skill add-prompt-extension/remove-prompt-extension MeTTa functions to allow modifying prompt dynamically by plugins.
This plugin implements functionality introduced by PR #155. It adds agent skills to list available workflows, load and unload workflow instructions. Loading workflow instructions dynamically modifies list of the agent's skills and prompt in order to make agent following the workflow. Co-authored-by: Svetlana Besaeva <BesSveta@gmail.com>
Because of trueagi-io/PeTTa#196 the only way of writing MeTTa plugins now is using a single MeTTa file.
Create workspace for workflows directory on load. Allow configuring instructions directory of the workflow plugin. Add list available workflows to the prompt.
Collaborator
Author
|
@besSveta please help to review and test plugin implementation |
vsbogd
commented
Jul 17, 2026
Comment on lines
+46
to
+49
| (pin (strings-concat ("ACTIVE: " $research-name | ||
| " FILE: " $filename | ||
| " STATUS: executing" | ||
| " NEXT: follow loaded instructions"))) |
Collaborator
Author
There was a problem hiding this comment.
Hi @patham9 , I would like to ensure my understanding of pin is correct. I see it is implemented as
(= (pin $x)
PIN-SUCCESS)
i.e. it doesn't do anything. My understanding when the LLMt calls it then call is written into the history.txt and it is the only purpose, isn't it?
@besSveta used pin in her implementation of loadable skills. But my understanding calling pin from the OmegaClaw-Core code is useless because in such case it is not written into the history.txt.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR supersedes #155 by implementing the same functionality via plugin API.
The PR introduces:
./src/plugin.metta./src/pluginapi.metta./testdirectory./plugins/workflow) which allows adding new skills via MarkDown files under./plugins/workflow/instructionsdirectory, please see [WIP] [OMEGA-76] Support adding skills using MarkDown descriptions #155 for the details of the "workflow" plugin behaviourHow Has This Been Tested?
MeTTa unit tests are written for the MeTTa plugin loader and API functions introduced.
To test the "workflow" plugin start the agent and ask "Start research. build a classifier for iris dataset using sklearn, compare logistic regression and random forest"
Checklist