Skip to content
@LuciferForge

LuciferForge

LuciferForge

Security and safety infrastructure for AI agents. MIT licensed. Pure Python.

When you run AI agents autonomously — trading bots, code assistants, document processors — three things break silently: costs explode from retry loops, inputs get poisoned by adversarial prompts, and decisions become untraceable when something fails at 3AM.

We built the fix. Five packages. All MIT. All offline-capable.


The Stack

Library What it does Install
ai-cost-guard Hard budget cap — blocks LLM calls before they exceed your limit pip install ai-cost-guard
ai-injection-guard Prompt injection scanner — 22 patterns, 5 categories, entirely offline pip install ai-injection-guard
ai-decision-tracer Decision logger — JSONL auto-save, Markdown reports, built-in CLI pip install ai-decision-tracer
agent-safety-mcp MCP server — gives any AI assistant access to all three tools above pip install agent-safety-mcp
mcp-security-audit Security auditor — scan any MCP server for injection patterns, risky tools, misconfigs pip install mcp-security-audit

Use all three together

from ai_cost_guard import CostGuard
from prompt_shield import PromptScanner
from ai_trace import Tracer

guard   = CostGuard(weekly_budget_usd=5.00)
scanner = PromptScanner(threshold="MEDIUM")
tracer  = Tracer("my-agent", meta={"model": "claude-haiku-4-5"})

@guard.protect(model="anthropic/claude-haiku-4-5-20251001")
@scanner.protect(arg_name="prompt")
def call_llm(prompt):
    with tracer.step("llm_call", prompt_len=len(prompt)) as step:
        response = client.messages.create(...)
        step.log(tokens=response.usage.input_tokens)
    return response

Built from running autonomous AI trading agents in live financial markets. Every package exists because something broke in production.

Popular repositories Loading

  1. ai-cost-guard ai-cost-guard Public

    Budget enforcement for LLM applications. Hard spending limits, per-model caps, automatic cutoffs.

    Python

  2. prompt-shield prompt-shield Public

    Lightweight prompt injection detector. 22 attack patterns. Blocks jailbreaks before they reach your model.

    Python

  3. ai-trace ai-trace Public

    Zero-dependency AI agent decision tracer. Records every step — what it saw, decided, and why. JSON + Markdown output.

    Python

  4. lucifer-skills lucifer-skills Public

    Claude Code skill — adds production safety to any AI agent: budget enforcement, prompt injection detection, decision tracing

  5. .github .github Public

  6. agent-safety-mcp agent-safety-mcp Public

    MCP server wrapping ai-cost-guard, ai-injection-guard, and ai-decision-tracer into a single safety layer.

    Python

Repositories

Showing 10 of 14 repositories

Top languages

Loading…

Most used topics

Loading…