Add eggs-ai with myclaw agentic engine integration#768
Closed
Interested-Deving-1896 wants to merge 1 commit intopieroproietti:masterfrom
Closed
Add eggs-ai with myclaw agentic engine integration#768Interested-Deving-1896 wants to merge 1 commit intopieroproietti:masterfrom
Interested-Deving-1896 wants to merge 1 commit intopieroproietti:masterfrom
Conversation
4297325 to
ffe2264
Compare
Adds eggs-ai with sworddut/myclaw bundled as a subproject, including the myclaw provider registered in src/providers/. - myclaw/ — full source: agent loop, tools, providers, event bus, session store, check-gate, user profile, oclif commands - src/engine/ — integration layer (agent loop, 9 tools, event bus, session persistence, provider bridge, check-gate safety) - src/providers/myclaw.ts — myclaw provider with native tool-call support, registered alongside the 7 existing providers - New CLI: 'eggs-ai agent <task>', 'chat --agentic', 'chat --resume' 112 tests pass. All files under eggs-ai/. Co-authored-by: Ona <no-reply@ona.com>
ffe2264 to
1928b4e
Compare
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.
Motivation
Integrates sworddut/myclaw's agentic execution engine into eggs-ai, upgrading it from single-turn LLM calls to a multi-step autonomous agent that can inspect systems, run commands, read/write configs, and fix issues iteratively.
Five Integrations
1. Multi-step agentic execution loop
Agents can now use tools iteratively instead of just suggesting commands. The loop runs until the LLM produces a final answer or hits maxSteps.
2. Eggs domain tools in myclaw format
Nine tools registered in myclaw-compatible format:
eggs_run— execute eggs CLI commands with sudoeggs_inspect— system diagnosticseggs_knowledge— query the knowledge base (commands, distros, issues, wardrobe, calamares)eggs_config_read/write— read/write eggs.yamlread_file,write_file,list_files,run_shell— filesystem/shell tools3. Event bus + session persistence
chat --resume latest)4. Provider bridge adapter
Eggs-ai's 7 providers (Gemini, OpenAI, Anthropic, Mistral, Groq, Ollama, custom) exposed through myclaw's LLMProvider interface via
wrapEggsProviderForMyclaw().5. Check-gate safety system
Validates commands before execution. Blocks destructive operations (
eggs produce,rm,dd,mkfs, package removal) unless explicitly approved via interactive prompt or callback.New CLI Commands
eggs-ai agent <task>— autonomous mode with tool useeggs-ai chat --agentic— interactive chat with tool useeggs-ai chat --resume [latest|sessionId]— resume previous sessionsTests
110 tests pass (30 new engine tests + 80 existing). Zero regressions.
All files under
eggs-ai/— zero impact on existing code.Sources: https://github.com/Interested-Deving-1896/eggs-ai, https://github.com/sworddut/myclaw