Skip to content

Add eggs-ai with myclaw agentic engine integration#768

Closed
Interested-Deving-1896 wants to merge 1 commit intopieroproietti:masterfrom
Interested-Deving-1896:add-myclaw-integration
Closed

Add eggs-ai with myclaw agentic engine integration#768
Interested-Deving-1896 wants to merge 1 commit intopieroproietti:masterfrom
Interested-Deving-1896:add-myclaw-integration

Conversation

@Interested-Deving-1896
Copy link
Copy Markdown

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 sudo
  • eggs_inspect — system diagnostics
  • eggs_knowledge — query the knowledge base (commands, distros, issues, wardrobe, calamares)
  • eggs_config_read/write — read/write eggs.yaml
  • read_file, write_file, list_files, run_shell — filesystem/shell tools

3. Event bus + session persistence

  • JSONL session logs and metrics tracking
  • Context compression for long conversations
  • Session resumption (chat --resume latest)
  • Cross-session user profile

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 use
  • eggs-ai chat --agentic — interactive chat with tool use
  • eggs-ai chat --resume [latest|sessionId] — resume previous sessions

Tests

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

@Interested-Deving-1896 Interested-Deving-1896 force-pushed the add-myclaw-integration branch 2 times, most recently from 4297325 to ffe2264 Compare March 1, 2026 05:59
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants