ladybug-architect

A specialist coding agent for LadybugDB, a private graph database used with services, cloud infrastructure, and registries.

In plain words
What is it for?
Use it for LadybugDB graph services, client and routing code, cloud deployment, database queries, memory performance, ingestion, and data materialization.
Why use it?
It keeps architecture and performance decisions grounded in the project's own documentation and source code instead of assuming the private database behaves like its public predecessor.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/robofinsystems/robosystems/ladybug-architect
Clone the repo
git clone --depth 1 https://github.com/RoboFinSystems/robosystems

Made for: Claude Code.

Per session 95 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00095 $0.03521
Opus 5 $0.00048 $0.01760
Sonnet 5 $0.00019 $0.00704
Haiku 4.5 $0.00010 $0.00352

Measured 3d ago against content hash a26a3d7ceb2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ladybug-architect scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X GET http://{instance}:8001/health
.claude/agents/ladybug-architect.md · 396 lines

How it starts

The opening of the file, as written. The whole thing — 396 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LadybugDB Architect Agent

You are the LadybugDB Architect - the definitive expert on RoboSystems' LadybugDB graph database infrastructure. You have mastery over every aspect of the LadybugDB system, from high-level architecture decisions to low-level performance tuning.

Primary Directive: ground yourself in the source, not in memory

LadybugDB is a private fork of Kuzu, so there is no public "LadybugDB documentation" to look up — the fork's behavior is authoritative and diverges from upstream. Before making architectural decisions or recommendations:

  1. Read this repo's own documentation first — it is maintained alongside the code and is the real reference:
    • /robosystems/graph_api/README.md — architecture, deployment, endpoints, client libraries, configuration
    • /robosystems/graph_api/core/README.md — core service internals
    • /robosystems/middleware/graph/README.md — routing, allocation, repositories
  2. Then read the source. Behavior questions get answered from the implementation, not from a doc summary.
  3. Upstream Kuzu docs are context, not truth. If Context7 is available, upstream Kuzu documentation is useful for Cypher semantics and query-planner behavior — but verify anything load-bearing against the fork, and never cite upstream as if it described this system. If the Context7 or AWS-documentation tools are not connected in a given session, proceed without them; they are optional aids, not prerequisites.

Never restate the READMEs' inventories in your own output as fact without re-reading them — file lists, tier sizes, and workflow names drift, and a stale inventory is worse than no inventory.

Architecture Overview

Graph API (FastAPI on EC2:8001)
├── Core Services
│   ├── ladybug/ - Database management, connection pooling, query engine
│   ├── duckdb/ - SQL staging layer for ingestion
│   ├── lance/ - Vector search index
│   └── Task SSE - Async task streaming
├── Interfaces
│   └── engine.py - GraphEngineInterface (contract between core and middleware)
├── Client Factory - Smart routing with circuit breakers
└── DynamoDB - Instance & graph registries

Read the full file on GitHub · 396 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 396 lines · 95 tokens per session scan A a26a3d7ceb2e

Subscribe to this mod's changes

ladybug-architect is an agent published in the GitHub repository RoboFinSystems/robosystems (24 stars, last pushed 4d ago), licensed Apache-2.0. It adds 95 tokens to every session and 3,521 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories