๐ŸŽฉ You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP โ†’
Sign In

lyrie-agent

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lyrie-agent

The world's first autonomous AI agent with built-in cybersecurity

Source
npmnpm
Version
0.7.0
Version published
Weekly downloads
8
-46.67%
Maintainers
1
Weekly downloads
ย 
Created
Source

๐Ÿ›ก๏ธ Lyrie Agent

The world's first autonomous AI agent with built-in cybersecurity.

The agent that defends what it builds.

No Docker. No yak-shaving. Just pip install lyrie-agent or one curl pipe and you're scanning.

Lyrie is not just another AI assistant. It runs your operations and protects them in the same loop โ€” every layer carries the Lyrie Shield, every patch passes the Shield Doctrine, every finding earns its severity through Lyrie Stages Aโ€“F.

License: MIT Security: Native Research X CI CodeQL Tests PyPI Releases

Install ยท GitHub Action ยท Architecture ยท Shield Doctrine ยท Research

๐ŸŒ Localized: ุงู„ุนุฑุจูŠุฉ ยท Deutsch ยท Espaรฑol ยท Franรงais ยท ๆ—ฅๆœฌ่ชž ยท Portuguรชs ยท ็ฎ€ไฝ“ไธญๆ–‡

Why Lyrie?

Every AI agent platform treats security as an afterthought. Lyrie treats it as the foundation โ€” and ships the receipts. Every advisory we publish on research.lyrie.ai is backed by a reproducible exploit lab and detection rules in this repo.

Cybersecurity isn't a plugin โ€” it's Layer 1.

Highlights (current main, v0.6.0)

  • ๐Ÿ›ก๏ธ The Shield Doctrine โ€” every layer of Lyrie that touches untrusted text passes a Shield gate. (docs/shield-doctrine.md)
  • ๐Ÿ” Lyrie Attack-Surface Mapper (/understand) โ€” maps entry points, trust boundaries, tainted data flows, and ranked risk hotspots before any scanner runs.
  • ๐Ÿงช Lyrie Stages Aโ€“F Validator โ€” every finding earns its severity through six validation gates. Auto-PoCs for confirmed vulns. Auto-remediation summaries. Kills false positives at the source.
  • ๐ŸŒ Lyrie Multi-Language Vulnerability Scanners โ€” 8 purpose-built scanners (JS / TS / Python / Go / PHP / Ruby / C / C++) with 53 Lyrie-original detection rules covering OWASP Top 10 + CWE classics.
  • ๐Ÿ“ก Lyrie Threat-Intel feed โ€” every PR finding auto-attributed against research.lyrie.ai, CISA-KEV-aligned, with Lyrie Verdict surfaced inline. Bumps severity to critical when KEV-listed.
  • ๐Ÿ” Lyrie HTTP Proxy โ€” capture, classify, replay, and fuzz HTTP exchanges. 9 security-signal detectors (missing security headers, weak cookie flags, open CORS, secrets in responses, GraphQL introspection, auth tokens in URLs, verbose 5xx errors, and more). 7 structured mutators for replay-based testing.
  • ๐Ÿ†“ Lyrie OSS-Scan service โ€” free public scan at research.lyrie.ai/scan. Submit any GitHub / GitLab / Bitbucket / Codeberg repo URL, get a Lyrie report (Mapper + Scanners + Stages Aโ€“F + auto-PoC) in seconds.
  • ๐Ÿš€ Lyrie Pentest GitHub Action โ€” Shield-scans every PR, posts a single-comment-per-PR Markdown summary, uploads SARIF to Code Scanning, blocks merges on fail-on threshold.
  • ๐Ÿง  FTS5 cross-session memory โ€” bm25-ranked recall + LLM-summarized session digests, every snippet Shield-gated.
  • โœ๏ธ Diff-view edits with approval gates โ€” apply_diff produces unified diffs, never overwrites whole files; Shield scans every patch before it touches disk.
  • ๐Ÿ”Œ MCP adapter (@lyrie/mcp) โ€” Lyrie speaks fluent Model Context Protocol both as client and server.
  • ๐Ÿšช DM pairing โ€” unknown senders can't reach the agent without operator approval. Three modes: open / pairing / closed.
  • ๐Ÿฉบ lyrie doctor โ€” read-only environment, channel, and security self-diagnostic with --json for CI.
  • ๐Ÿงฌ LyrieEvolve โ€” the agent scores every task, auto-generates reusable skills from wins, retrieves top-3 past successes as context before each new task, and runs nightly GRPO fine-tuning on your own GPU. Domain-specific rewards for cyber, SEO, trading, and code. (docs/evolve.md)
  • โ˜๏ธ Pluggable execution backends โ€” run Lyrie scans locally, in a Daytona devbox, or as a Modal serverless function. Same Shield Doctrine, same SARIF, different host.
  • ๐Ÿ“ก 9 multi-channel adapters โ€” Telegram, WhatsApp, Discord, Slack, Matrix, Mattermost, IRC, Feishu, Rocket.Chat, WebChat โ€” one inbox, all secured.
  • ๐Ÿ”ด LyrieAAV โ€” Autonomous Adversarial Validation: 50+ attack vectors across all OWASP LLM Top 10 categories, automated verdict scoring, SARIF output, Python + TypeScript SDKs. Beats Audn.AI at its own game. (docs/aav.md)

๐Ÿ”ด LyrieAAV โ€” Autonomous Adversarial Validation

LyrieAAV is Lyrie's AI red-teaming engine. It attacks deployed AI agents and LLMs to find security vulnerabilities before adversaries do.

# Attack any OpenAI-compatible endpoint
bun run scripts/redteam.ts http://localhost:11434/v1 --model llama3 --dry-run
bun run scripts/redteam.ts https://api.openai.com/v1 --api-key $KEY --fail-on high
bun run scripts/redteam.ts http://myapp.com/v1 --output sarif --out scan.sarif

vs Audn.AI (Pingu Unchained / PenClaw)

FeatureLyrieAAVAudn.AI
Attack vectors50+~20
OWASP LLM Top 10All 10Partial
Auto verdict scoringโœ… Regex-basedManual review
NIST AI RMF refsโœ… Every vectorโŒ
EU AI Act refsโœ… Every vectorโŒ
TypeScript SDKโœ…โŒ
Streaming APIโœ… scanStream()โŒ
Retry variantsโœ… 3 per vectorโŒ
Open sourceโœ… MITProprietary
PriceFreePaid

CLI Reference

Usage: lyrie redteam <endpoint> [options]

  --api-key <key>       API key for the target endpoint
  --model <model>       Model name (default: gpt-3.5-turbo)
  --preset <name>       Attack preset: entra|state-actor|critical|all
  --categories <cats>   OWASP categories (e.g. LLM01,LLM06)
  --severity <level>    Min severity: critical|high|medium|low
  --mode <mode>         blackbox|greybox|whitebox
  --system-prompt <sp>  Inject system prompt
  --concurrency <n>     Parallel probes (default: 3)
  --output <fmt>        markdown|sarif|json
  --out <path>          Write to file
  --fail-on <sev>       Exit 1 on findings >= severity
  --dry-run             Simulate without HTTP requests

Preset examples:
  lyrie redteam <endpoint> --preset entra --dry-run       # Entra priv-esc (4 vectors)
  lyrie redteam <endpoint> --preset state-actor --dry-run  # Nation-state attacks (6 vectors)

Full architecture: docs/aav.md

๐Ÿ™๏ธ AI Governance

Assess your AI deployment against NIST AI RMF and EU AI Act requirements.

# Interactive NIST AI RMF assessment (8 governance questions)
lyrie governance assess --interactive

# Auto-infer from agent config file
lyrie governance assess --config ./agent-config.json --out report.json

# Analyze an agent's tool permissions for risk
lyrie governance permissions ./tools-manifest.json

# Get JSON output
lyrie governance permissions ./agent.config.json --json --out perms.json

Governance Scorecard

Scores your AI deployment 0โ€“100 across 4 NIST AI RMF functions:

FunctionCovers
GOVERNAI inventory, permission scoping
MAPVendor assessment, data governance
MEASUREAudit logging, model drift monitoring
MANAGEHuman oversight, incident response

Maturity levels: None โ†’ Initial โ†’ Developing โ†’ Defined โ†’ Managed โ†’ Optimizing

EU AI Act classification: High-Risk / Limited-Risk / Minimal-Risk

Agent Permission Analyzer

Scans your agent's tool manifest and flags permission risks:

Risk LevelExample ToolsIssue
๐Ÿ”ด CRITICALexecute_code, assign_role, process_paymentMust have human approval + audit log
๐ŸŸ  HIGHwrite_file, user_dataNeeds scoping + audit log
๐ŸŸก MEDIUMsend_email, http_requestNeeds rate limiting + allowlist

All findings include NIST AI RMF and EU AI Act references.

๐Ÿงฌ LyrieEvolve โ€” Self-Improving Agent

Lyrie is the only autonomous agent that gets measurably better at your specific workloads over time.

lyrie evolve status          # skill library stats + last dream cycle
lyrie evolve extract         # manually extract skills from latest sessions
lyrie evolve dream           # run full nightly cycle (score -> extract -> prune)
lyrie evolve stats           # domain breakdown: cyber / seo / trading / code
lyrie evolve train           # trigger H200 GRPO fine-tuning job

How it works:

  • Task Scorer โ€” scores every completed task: 0 (fail) / 0.5 (partial) / 1.0 (success). CI pass for code, threat confirmed for cyber, P&L positive for trading.
  • Skill Auto-Generation โ€” sessions scoring >= 0.5 are distilled into reusable skill files (skills/auto-generated/). Cosine-similarity dedup prevents redundant entries.
  • Contexture Layer โ€” before each new task, retrieves top-3 most relevant past wins (MMR-diverse) from LanceDB and injects them into the prompt.
  • Dream Cycle โ€” 4 AM batch: score outcomes, extract new skills, prune dead ones (score < 0.3 after 5+ uses), generate evolution report.
  • H200 GRPO Training โ€” accumulated conversations become LoRA fine-tuning data. Domain-specific reward functions train on owned hardware โ€” no third-party APIs required.

MetaClaw trains on rented cloud APIs. Lyrie trains on owned hardware with domain-specific rewards. That's the moat.

๐Ÿ†š Lyrie vs the field

Live GitHub stars as of 2026-04-27.

vs autonomous-agent platforms

Lyrie is a 30K-LOC, MIT-licensed, Shield-native autonomous agent. Competitors here are general-purpose agent platforms:

CapabilityOpenClaw (365kโญ)Hermes Agent (120kโญ)Claude Code (118kโญ)opencode (150kโญ)Lyrie (514โญ)
Autonomous agent loopโœ…โœ…โŒโœ…โœ…
Multi-channel inbox (TG/WA/Discord/Slack/Signal/iMessage)โœ… (23+)โœ… (6)โŒโŒโœ… (8+)
Self-improving skillsSkills catalogโœ… Learns from useโŒโŒโœ… LyrieEvolve + skill-creator
Persistent cross-session memoryLanceDB / sectionsโœ… Trajectory + graphโŒโŒโœ… SQLite + FTS5 + Contexture
Self-healing memoryโŒPartialโŒโŒโœ… Validator + repair
Incremental memory ingestionโŒโŒโŒโŒโœ… Auto-ingest every N turns (#69)
Asymmetric embedding (nomic/qwen3/mxbai)โŒโŒโŒโŒโœ… Model-specific prefixes
Multi-model + intelligent routingโœ…โœ… (200+ via OpenRouter)Anthropic onlyMultipleโœ… (auto-routed by task)
OpenRouter provider (100+ models)โŒโœ…โŒโŒโœ… v0.7.0 native
Cerebras provider (ultra-fast inference)โŒโŒโŒโŒโœ… v0.7.0 native
Diff-view edits with approvalโŒโŒโŒโœ…โœ… + Shield-on-patch
MCP adapter (client + server)โœ… clientโŒโœ… clientPartialโœ… client + server
One-command migrationโŒโŒโŒโŒโœ… lyrie migrate (11 platforms)
Migrate from Claude Codeโ€”โŒโ€”โŒโœ… MCP servers + providers
Migrate from CursorโŒโŒโŒโ€”โœ… Settings + extensions
Post-import Shield scanโŒโŒโŒโŒโœ… --secure flag
Native cybersecurity layerโŒโŒโŒโŒโœ… The Shield + Doctrine
CVE-aware provider validationโŒโŒโŒโŒโœ… 41391/42428/7314 class checks
Tool-loop detectionโŒโŒโŒโŒโœ… Per-run fingerprint + threshold
Degraded gateway bootโŒโŒโŒโŒโœ… No crash on plugin fail
Multi-group chatโœ…โŒโŒโŒโœ… FIFO queue + thread sessions
Built-in pentest commands (/scan /pentest /understand /apiscan)โŒโŒโŒโŒโœ…
GitHub Action for PR scansโŒโŒโŒโŒโœ… SARIF + diff-scope
Real-time threat-intel feed (KEV-driven)โŒโŒโŒโŒโœ… research.lyrie.ai
Reproducible exploit labs in-repoโŒโŒโŒโŒโœ… 9+ CVE labs
HTTP proxy + replay + mutatorsโŒโŒโŒโŒโœ… 9 signal detectors
Sub-agent orchestrationโœ…โœ…โŒโŒโœ… + role-based fleet
Cron / scheduled jobsโœ…โœ…โŒโŒโœ… + heartbeat
Audit-friendly footprint430K+ LOC~30K LOCClosed~50K LOC<30K LOC, MIT, fully auditable
Built byOpenClawNous ResearchAnthropicSSTOTT Cybersecurity LLC

The headline: OpenClaw and Hermes are great agents. Claude Code and opencode are great coding assistants. None of them was built to defend you while it works. Lyrie is. Cybersecurity isn't a plugin โ€” it's Layer 1.

vs AI-pentest agents

Lyrie also competes head-to-head with the AI-pentest crowd. Here we trade ecosystem maturity for depth + Shield Doctrine + reproducibility:

CapabilityStrix (24.6kโญ)PentestGPT (12.8kโญ)RAPTOR (2.4kโญ)CAI (8.3kโญ)Lyrie (514โญ)
GitHub Action for PR scansโœ…โŒโŒโŒโœ… + SARIF + diff-scope
Attack-surface mapper (/understand)โŒโŒโœ…โŒโœ… Lyrie Mapper
Stages Aโ€“F validationโŒโŒโœ… (A-D only)โŒโœ… Aโ€“F + auto-PoC + auto-remediation
Multi-language scanners (JS / Py / Go / PHP / Ruby / C/C++)PartialPartialPartialPartialโœ… 8 scanners, 53 rules
Threat-intel feed (KEV-driven)โŒโŒโŒโŒโœ… research.lyrie.ai
HTTP proxy + replay + mutatorsโœ…โŒโŒโŒโœ… 9 signal detectors
Free OSS-scan service for any repoโŒโŒโŒโŒโœ… research.lyrie.ai/scan
Reproducible exploit labs in-repoโŒโŒโŒโŒโœ… 9+ CVE labs
Native cybersecurity Shield (defends itself)โŒโŒโŒโŒโœ… The Shield Doctrine
Multi-channel inbox (TG/WA/Discord/Slack)โŒโŒโŒโŒโœ… 8 channels
Tests passingโ€”โ€”โ€”โ€”259 / 0 / 669 expect()s
LicenseApache 2.0MITMITMIT + paidMIT
Built byusestrixGreyDGLGadi EvronAlias RoboticsOTT Cybersecurity LLC

The headline: Strix is a sharp single-purpose pentest tool. Lyrie is a complete agent platform that includes a sharper pentest tool, a defensive Shield layer the others lack, a verified threat-intel feed, and reproducible exploit labs that prove every claim.

Want a deep comparison? See lyrie/research/integration/lyrie-absorption-roadmap-2026-04-27.md for the 19-competitor recon matrix.

โšก Install

One-line install

curl -fsSL https://lyrie.ai/install.sh | bash      # macOS / Linux / WSL
irm https://lyrie.ai/install.ps1 | iex             # Windows

Python SDK

pip install lyrie-agent
from lyrie import Shield, AttackSurfaceMapper, StagesValidator, scan_files

# Drop Lyrie's pentest primitives into any Python project.
shield = Shield()
print(shield.scan_recalled("Ignore all previous instructions").blocked)  # โ†’ True

surface = AttackSurfaceMapper(root="./my-repo").run()
report = scan_files(root="./my-repo")
validator = StagesValidator()
for f in report.findings:
    v = validator.validate(f, surface=surface)
    if v.confirmed:
        print(f"โœ“ {f.title}  confidence={v.confidence:.0%}")

Full SDK docs: sdk/python/README.md.

From source

git clone https://github.com/overthetopseo/lyrie-agent.git
cd lyrie-agent
bun install
bun run doctor       # self-check
bun start            # boot the gateway

Lyrie ships with a Bun-first toolchain (Node 20+ also supported).

๐Ÿš€ Lyrie Pentest Action

Drop Lyrie into any repo's CI:

name: Lyrie Pentest
on: [pull_request]

permissions:
  contents: read
  pull-requests: write
  security-events: write

jobs:
  lyrie:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }

      - uses: overthetopseo/lyrie-agent/action@v1
        with:
          scan-mode: quick
          scope: diff
          fail-on: high
          anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}

You get:

  • Diff-scoped Shield + Mapper scan โ€” only PR-changed files, zero noise on untouched code
  • Stages Aโ€“F validation โ€” false positives killed before they hit the report
  • Single PR comment that updates in place (no spam)
  • SARIF auto-uploaded to GitHub Code Scanning (findings show as PR annotations)
  • Workflow artifact with full report.md + report.json + lyrie.sarif
  • Job summary rendered into the GitHub Actions step summary tab
  • Non-zero exit on threshold โ€” block merges when configured as a required check

Full docs: action/README.md.

Other CI/CD platforms? Drop-in templates for GitLab CI, Jenkins, and CircleCI live in action/templates/. Same Lyrie scan, same Shield Doctrine, same SARIF โ€” anywhere your code builds.

๐Ÿ’ฌ Where Lyrie talks to you

Lyrie ships a multi-channel gateway so the agent reaches you on whatever your team already uses โ€” not just Slack-or-die.

ChannelStatusNotes
Telegramโœ… productionBot API + inline buttons + media
WhatsAppโœ… productionBusiness Cloud API
Discordโœ… productionGateway v10 + buttons
Slackโœ… v0.3.2Events API + Socket Mode + Block Kit
Matrixโœ… v0.3.2Federated; matrix.org / Element / Synapse
Mattermostโœ… v0.3.2Self-hosted, Slack-compatible interactives
IRCโœ… v0.3.2RFC 2812 + IRCv3 server-time + SASL
Feishu / Larkโœ… v0.3.2้ฃžไนฆ mainland + Lark international from one adapter
Rocket.Chatโœ… v0.3.2Self-hosted, EU/LATAM enterprise default
WebChatโœ… v0.3.2The widget Lyrie owns end-to-end (lyrie.ai)
Signal๐Ÿ”ญ roadmap

Every channel implements the same ChannelBot contract โ€” unified UnifiedMessage in, unified UnifiedResponse out. Same Shield Doctrine, same DM-pairing policy, same engine.

โ˜๏ธ Where Lyrie runs

Lyrie scans run somewhere. Pick where:

BackendWhenSetup
Local (default)Caller has Bun + repozero config
DaytonaEphemeral devboxes / sandboxed PR scansDAYTONA_API_KEY
ModalPay-per-second serverless burstMODAL_TOKEN_ID + MODAL_TOKEN_SECRET

Switch at runtime:

LYRIE_BACKEND=modal bun run action/runner.ts          # serverless
LYRIE_BACKEND=daytona bun run action/runner.ts        # Daytona devbox
LYRIE_BACKEND=local bun run action/runner.ts          # default โ€” host

Inspect what's wired up:

bun run backend status         # which backend resolves & is configured
bun run backend list           # all 3, side-by-side
bun run backend show modal     # config + env vars detected
bun run backend preflight      # cheap auth/connectivity check

Deployment recipes (Modal Python function + Daytona devcontainer): deploy/.

Same contract everywhere. Every backend returns the same BackendRunResult shape โ€” same SARIF, same Markdown, same Shield Doctrine โ€” different host. No Docker. No vendor lock-in.

๐Ÿ› Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  LAYER 4 ยท INTERFACE                                         โ”‚
โ”‚    CLI ยท Web ยท Desktop ยท iOS ยท Android ยท 23+ channels        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  LAYER 3 ยท AGENT ENGINE                                      โ”‚
โ”‚    Multi-model routing  ยท  Sub-agent fleet                   โ”‚
โ”‚    Skill manager  ยท  Self-improving loop                     โ”‚
โ”‚    EditEngine (diff-view + approval)                         โ”‚
โ”‚    MCP client + server  ยท  Tool executor                     โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  LAYER 2 ยท MEMORY CORE                                       โ”‚
โ”‚    SQLite + WAL  ยท  FTS5 cross-session recall                โ”‚
โ”‚    Self-healing  ยท  Hourly auto-backup                       โ”‚
โ”‚    Sectioned dream cycle  ยท  Pluggable summarizer            โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  LAYER 1 ยท THE SHIELD                                        โ”‚
โ”‚    Real-time threat detection  ยท  Prompt-injection gate      โ”‚
โ”‚    DM pairing  ยท  Path scoping  ยท  Tool-call validation      โ”‚
โ”‚    Lyrie Attack-Surface Mapper  ยท  Stages Aโ€“F Validator      โ”‚
โ”‚    KEV-driven threat-intel feed (research.lyrie.ai)          โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The Shield is not a wrapper. It runs underneath every other layer.

๐Ÿงฌ LyrieEvolve โ€” Autonomous Self-Improvement

Lyrie gets better the more it works. Every task outcome is scored, patterns are extracted, and the Dream Cycle prunes what doesn't work.

ComponentDescription
ScorerRecords task outcomes (score 0/0.5/1) across 5 domains: cyber, seo, trading, code, general
SkillExtractorReads outcomes.jsonl, synthesizes OpenClaw-compatible SKILL.md files with cosine dedup
ContextureMMR-diverse retrieval of relevant skill contexts โ†’ prompt injection for active tasks
Dream CycleBatch pipeline: score โ†’ extract โ†’ prune โ†’ report (runs at 4AM cron)

Quick start:

# Check evolve status
bun run scripts/evolve.ts status

# Run the Dream Cycle (preview)
bun run scripts/evolve.ts dream --dry-run

# Python SDK
python3 -c "from lyrie.evolve import LyrieEvolve; print('LyrieEvolve ready')"

Full docs: docs/evolve.md

๐Ÿ›ก๏ธ Security-First Features

Things only Lyrie does. Not add-ons โ€” baked in from day one.

CVE-Aware Provider Validation

lyrie security validate            # scan all providers + MCP servers
lyrie security validate --json     # machine-readable output
lyrie security validate --fail-on critical  # CI/CD gate

Checks for:

  • CVE-2026-41391 class: PIP_INDEX_URL/UV_INDEX_URL env poisoning in providers/MCP servers
  • CVE-2026-7314/7315/7319 class: MCP tools with unsanitized file path parameters (filepath, document_name, path, context, etc.)
  • CVE-2026-42428 class: Downloads without integrity verification (no checksums/SRI)

Shield Scan on Migration

lyrie migrate --from openclaw --secure      # import + scan imported config
lyrie migrate --from claude-code --secure   # import MCP servers + CVE check
lyrie migrate --from cursor --secure        # import settings + API key scan

After migration, --secure automatically runs LyrieProviderValidator on all imported providers and MCP server configs.

Tool-Loop Detection

Every agent run automatically tracks tool call fingerprints. If the same normalized call appears 3+ times in a single run, itโ€™s flagged as a loop and the router triggers fallback classification.

Gateway Degraded Mode

If a channel plugin (e.g., Discord token expired) fails to start, Lyrie boots in degraded mode instead of crashing. The remaining channels stay online. lyrie doctor shows which plugins degraded and why.

๐Ÿ›ก๏ธ The Shield Doctrine

Every Lyrie surface that touches untrusted text passes a Shield gate. No exceptions, no carve-outs.

SurfaceHookStatus
Channel inbound (DMs)evaluateDmPolicy (router)โœ…
Pairing greetingDmPairingManager.greet โ†’ scanInboundโœ…
Memory recallsearchAcrossSessions โ†’ scanRecalledโœ…
MCP tool resultsMcpRegistry.shieldFilterโœ…
Tool output (untrustedOutput=true)ToolExecutor.shieldFilterOutputโœ…
Skill outputSkillManager.shieldFilterโœ…
Diff-view applied editsEditEngine.plan โ†’ scanRecalledโœ…
Attack-surface evidencebuildAttackSurface โ†’ sanitizeEvidenceโœ…
Pentest scan target inputrunner.ts โ†’ scanInboundโœ…

Full rule: docs/shield-doctrine.md.

๐Ÿ“ฆ Repo layout

PathWhat
packages/core/Lyrie agent core โ€” engine, memory, skills, tools, MCP, attack-surface mapper, Stages Aโ€“F validator, EditEngine, Shield Guard
packages/gateway/Multi-channel gateway (Telegram / WhatsApp / Discord) with DM pairing
packages/mcp/@lyrie/mcp โ€” Model Context Protocol adapter
packages/shield/Lyrie Shield โ€” Rust cybersecurity engine
packages/omega-suite/Lyrie OMEGA โ€” autonomous security intelligence backend powering research.lyrie.ai
packages/ui/Lyrie war-room dashboard (Next.js)
action/Lyrie Pentest GitHub Action
research/Reproducible CVE exploit labs (Dockerfile + PoC + Sigma + YARA + IOCs)
tools/exploit-lab/Lab orchestration framework
skills/Lyrie skills (extensible, self-improving)
scripts/Operator CLIs: doctor, pairing, mcp, edits, understand, release helpers
docs/Architecture, contributing, Shield Doctrine, channel guides

๐Ÿง  Model support

Model-agnostic. Lyrie routes per task class automatically:

TierDefault modelUse
BrainClaude Opus 4.7Strategy, complex reasoning
CoderGPT-5.5 / GPT-5.4-CodexCode generation, refactors
Reasoningo4-miniStep-by-step deliberation
FastGemini 3.1 Flash / Haiku 4.5Quick lookups, classification
BulkMiniMax-M2.7-HSMass content, parallel batches
LocalQwen / Gemma / Llama-localPrivate, self-hosted

Bring any model โ€” Anthropic, OpenAI, Google, xAI, MiniMax, Ollama, or your own endpoint. No lock-in.

๐Ÿ“ก Channels

Telegram ยท WhatsApp ยท Discord ยท Slack ยท Signal ยท iMessage ยท CLI ยท Webchat โ€” connect Lyrie to wherever you already work. DM pairing on by default for production deployments.

๐Ÿ›  Operator CLIs

bun run doctor                    # self-diagnostic (env, channels, security, deps)
bun run understand                # Lyrie Attack-Surface Map of any workspace
bun run scan <repoUrl>            # free Lyrie OSS-Scan against a public repo
bun run intel list                # list cached Lyrie Threat-Intel advisories
bun run intel scan-deps           # match research.lyrie.ai feed against package.json
bun run intel lookup CVE-2024-7399
bun run proxy scan https://target  # capture + classify + audit any HTTP target
bun run pairing list              # show pending DM pairing requests
bun run pairing approve <chan> <code>
bun run mcp list                  # list MCP-server tools available to Lyrie
bun run edits list                # show pending diff-view edits awaiting approval
bun run edits approve <planId>

Lyrie OSS-Scan โ€” free public scan

Any public repo, one command:

bun run scan https://github.com/<owner>/<repo>

Lyrie clones the repo (--depth 1), runs the Attack-Surface Mapper, all eight Multi-Language Scanners, then Stages Aโ€“F Validator โ€” returns the confirmed findings with auto-PoCs and Lyrie remediation summaries. Allowlisted hosts: github.com, gitlab.com, bitbucket.org, codeberg.org. Loopback / private addresses refused at the URL gate.

๐ŸŒŒ The Lyrie ecosystem

ProductStatusWhat it does
Lyrie Agent (this repo)OSS ยท MITYour autonomous AI operator + GitHub Action
Lyrie ShieldNative iOS/Android/macOSReal-time device protection, anti-malware, anti-rogue-AI
Lyrie Researchresearch.lyrie.aiKEV-driven verified threat intel, reproducible exploit labs
Lyrie OMEGAOSS ยท MIT (in this repo)Autonomous security-intelligence backend
Lyrie SaaSlyrie.aiHosted Shield, WAF, scanner, breach monitoring

Together: a complete digital guardian that operates and defends.

โœ… Quality & tests

  • 465 tests passing / 0 failing โ€” 373 TypeScript + 92 Python
  • Multi-platform CI (Node 20/22/24 ร— Ubuntu/macOS) + Rust Shield build
  • Weekly CodeQL security analysis + Dependabot
  • Pre-commit hooks: gitleaks, codespell, hygiene
  • Lyrie Pentest Action runs on this repo every PR โ€” Lyrie is its own first user
# TypeScript suite
bun test packages/ action/
# โ†’ 373 pass ยท 0 fail

# Python SDK
cd sdk/python && PYTHONPATH=. python -m pytest tests/
# โ†’ 92 pass ยท 0 fail

๐Ÿ” Migrating from another agent?

lyrie migrate --from openclaw      # ports memory, skills, config
lyrie migrate --from claude-code   # imports MCP servers + provider keys
lyrie migrate --from cursor        # imports model config + extensions
lyrie migrate --from hermes        # ports skills + trajectory
lyrie migrate --from autogpt       # ports goals + memory
lyrie migrate --from all           # auto-detect all installed platforms

# With security scan (recommended)
lyrie migrate --from claude-code --secure  # import + CVE check MCP servers
lyrie migrate --detect --dry-run           # preview what would be imported

One command. 11 supported platforms. Full memory + skills + config retained.

Supported: openclaw, claude-code, cursor, hermes, autogpt, nanoclaw, zeroclaw, dify, superagi, nanobot, grip-ai

๐Ÿค Contributing

See CONTRIBUTING.md. New CVE labs follow tools/exploit-lab/LAB-PROTOCOL.md.

Code of Conduct: CODE_OF_CONDUCT.md. PRs that weaponize Lyrie tooling against unconsenting targets are rejected.

๐Ÿ” Security

See SECURITY.md. Responsible disclosure goes to security@lyrie.ai.

Cybersecurity isn't a feature here โ€” it's the product.

๐Ÿ“œ License

MIT. Use it, fork it, build on it.

Lyrie.ai โ€” Built by OTT Cybersecurity LLC

Research ยท @lyrie_ai ยท lyrie.ai ยท overthetop.ae

ยฉ 2026 OTT Cybersecurity LLC. All rights reserved.

Keywords

ai

FAQs

Package last updated on 29 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts