Skip to main content

llmggfu — Autonomous Product Foundry

PyPI version Python 3.10+ License: MIT Tests

Transform incomplete ideas into production-ready applications — autonomously.

llmggfu implements a 25-step pipeline that takes a problem statement and produces a launched product, complete with research, compliance review, marketing materials, and performance tracking.

Architecture

┌─────────────────────────────────────────────────────────────┐
│                    Foundry (main)                           │
├─────────────────────────────────────────────────────────────┤
│  SDK · ADK · MCP Server · REST API · Hooks · Plugins       │
├─────────────────────────────────────────────────────────────┤
│  Research    Prompt     Ambient    User      Identity      │
│  Engine      Genome     Intent     Account   Wallet        │
│  Credential  Registra-  Opportu-  Product   Compliance     │
│  Store       tion       nity      Generator  Engine        │
│  Marketing   Witness    Evolution  Pipeline                 │
│  System      Network    Engine     Orchestrator             │
├─────────────────────────────────────────────────────────────┤
│  Crypto (AES-256-GCM) · Logger · DB (JSON / SQLite)       │
├─────────────────────────────────────────────────────────────┤
│  LLM: OpenAI · Anthropic · Gemini · Mock                   │
└─────────────────────────────────────────────────────────────┘

Installation

pip install llmggfu

# With REST API
pip install "llmggfu[api]"

# With LLM providers
pip install "llmggfu[llm]"

# Everything
pip install "llmggfu[all]"

# Development
pip install "llmggfu[dev]"

Quick Start

from llmggfu.sdk import FoundrySDK

sdk = FoundrySDK()

result = (
    sdk.create_opportunity(
        problem="Developers need API monitoring",
        target_user="Indie developers",
        market_need="Affordable monitoring",
        competitive_gap="No affordable option",
        proposed_product="API Monitor",
        technical_approach="FastAPI + SQLite",
        estimated_complexity="low",
        distribution_plan="Product Hunt",
        monetization_model="Freemium $9/mo",
        risk_assessment="Low",
        prototype_path="FastAPI",
        launch_path="PH + HN",
    )
    .generate_variants(tech_stack=["Python", "FastAPI"])
    .select_recommended()
    .run_pipeline()
    .result()
)

print(f"Status: {result['status']}")
print(f"Project: {result['project'].name}")

SDK — High-Level API

# Users
user = sdk.create_user(name="Alice", email="alice@example.com")

# Opportunities
opps = sdk.list_opportunities(status="prepared")
ranked = sdk.rank_opportunities(limit=5)

# Pipeline
run = sdk.start_pipeline("opp_abc123")
run = sdk.run_pipeline(run.id)
sdk.pause_pipeline(run.id)
sdk.resume_pipeline(run.id)

# Projects
projects = sdk.list_projects(status="launched")
sdk.launch_project("proj_xyz")

# Compliance
review = sdk.review_compliance("proj_xyz")

# Research
prior_art = sdk.assess_prior_art("API monitoring")

# Prompt Genome
entry = sdk.create_prompt("Research", "Market research", "internal", "Research {{topic}}")
ranked = sdk.rank_prompts(metric="reliability")

# Identity & Credentials
sdk.init_wallet("user_123")
sdk.add_identity("user_123", "contact", "email", {"value": "alice@example.com"})
sdk.store_credential("stripe", "api_key", "sk_test_...", "secret")

# Witnesses & Metrics
sdk.register_witness("proj_xyz", "Bob", "bob@example.com", "v0.1.0")
sdk.record_metrics("proj_xyz", activation=0.3, retention=0.8, revenue=1200)

ADK — Agent Development Kit

from llmggfu.adk import AgentSwarm, ResearchAgent, OpportunityAgent, PipelineAgent, ComplianceAgent

swarm = AgentSwarm(sdk)
swarm.add(ResearchAgent(sdk))
swarm.add(OpportunityAgent(sdk))
swarm.add(PipelineAgent(sdk))
swarm.add(ComplianceAgent(sdk))

results = swarm.run_pipeline_flow("API monitoring", target_user="Indie devs", ...)

# Custom agent
from llmggfu.adk import Agent, AgentRole

class MyAgent(Agent):
    role = AgentRole.CUSTOM
    def _execute_impl(self, task, **ctx):
        return f"Handled: {task}"

MCP Server

llmggfu-mcp          # CLI
python -m llmggfu.mcp_server  # Python

15 tools: list_opportunities, create_opportunity, start_pipeline, run_pipeline, review_compliance, assess_prior_art, create_prompt, launch_project, register_witness, record_metrics, analyze_performance, etc.

REST API

pip install "llmggfu[api]"
llmggfu-api --port 8000

Endpoints: GET/POST /api/opportunities, POST /api/pipeline/start, POST /api/pipeline/run, GET /api/projects, POST /api/compliance/review, GET /api/research/{topic}, etc.

Hooks — Event System

from llmggfu.hooks import HookSystem, HookEvent

hooks = HookSystem()

@hooks.on(HookEvent.PIPELINE_COMPLETED, webhook="https://example.com/hook")
def on_complete(run_id, **ctx):
    print(f"Pipeline {run_id} done!")

20 events: pipeline.started/completed/failed/paused/resumed, step.completed/failed, opportunity.created/selected, project.launched, compliance.reviewed, witness.registered, metrics.recorded, etc.

LLM Providers

from llmggfu.llm import LLMManager, OpenAIProvider, AnthropicProvider, GeminiProvider

manager = LLMManager.from_config(sdk.foundry.config)
response = manager.complete("Research API monitoring", system="You are a research assistant.")

Supports OpenAI, Anthropic, Gemini, and Mock providers. Auto-detected from config.

Plugins

from llmggfu.plugins import PluginManager

plugins = PluginManager(sdk)

@plugins.step("custom_analysis")
def custom_step(run, opp):
    return "Custom analysis complete"

@plugins.hook(HookEvent.PIPELINE_COMPLETED)
def on_complete(run_id, **ctx):
    send_notification(run_id)

Configuration

# foundry.yaml
db:
  path: ./data/foundry.db
  backend: sqlite          # sqlite or json
llm:
  provider: openai
  api_key: ${LLM_API_KEY}
  model: gpt-4o-mini
wallet:
  encryption_key: ${WALLET_ENCRYPTION_KEY}
log:
  level: info
from llmggfu.config import load_config
config = load_config("foundry.yaml")
sdk = FoundrySDK(config)

Environment variables: FOUNDRY_DB_PATH, FOUNDRY_DB_BACKEND, FOUNDRY_LLM_PROVIDER, FOUNDRY_LLM_API_KEY, FOUNDRY_LLM_MODEL, FOUNDRY_WALLET_ENCRYPTION_KEY, FOUNDRY_LOG_LEVEL.

Storage Backends

# JSON files (default)
from llmggfu.db import FoundryDB
db = FoundryDB("./data/foundry.db")

# SQLite
from llmggfu.sqlite_db import SQLiteDB
db = SQLiteDB("./data/foundry.db")

# In-memory
db = FoundryDB(":memory:")
db = SQLiteDB(":memory:")

Async Pipeline

import asyncio
run = sdk.start_pipeline("opp_abc123")
result = asyncio.run(sdk.run_pipeline_async(run.id))

Docker

docker build -t llmggfu .
docker run -p 8000:8000 llmggfu

Web Dashboard

llmggfu-dashboard --port 3000

Real-time pipeline visualization.

25-Step Pipeline

# Step Description
1 research_prior_art Assess existing solutions
2 identify_unmet_need Define the gap
3 define_target_user Profile target audience
4 assess_market_value Score the opportunity
5 generate_product_variations Create product variants
6 select_strongest_direction Pick best variant
7 define_technical_architecture Design the system
8 identify_required_services List external services
9 create_or_connect_accounts Prepare registrations
10 generate_prototype Build the prototype
11 test_functionality Run smoke tests
12 review_security Security audit
13 review_privacy Privacy check
14 review_licensing License compliance
15 review_platform_compliance Platform ToS
16 generate_documentation Write docs
17 capture_demonstrations Record demos
18 create_landing_page Build landing page
19 create_marketing_assets Marketing materials
20 prepare_launch_materials Launch prep
21 publish_through_channels Go live
22 measure_performance Track metrics
23 improve_product Analyze & improve
24 reuse_successful_components Extract reusable parts
25 add_learnings_to_prompt_genome Update prompt library

Security

  • AES-256-GCM encryption for sensitive data at rest
  • PBKDF2 key derivation (100k iterations)
  • Granular sharing with field-level permission scopes
  • Audit logging for every read, write, share, revoke
  • Sensitive data filtering — emails, phones, cards, SSNs redacted
  • Human verification — pauses for CAPTCHA, biometrics, legal terms

Tests

pip install "llmggfu[test]"
python -m pytest -v

Subsystems

Subsystem Description
Research Engine Prior-art research and market intelligence
Prompt Genome Reusable prompt library with natural selection
Ambient Intent Capture Intent extraction from user-approved input
User Account Manager Persistent profiles, memory, permissions
Identity Wallet Encrypted identity storage with granular sharing
Credential Store Secure credential management with audit logging
Registration Agent Autonomous account registration
Opportunity Pipeline Prepared opportunities with variant generation
Product Generator Autonomous product creation
Compliance Engine 10-point compliance review
Marketing System Pre-launch and launch materials
Witness Network Early observer participation tracking
Evolution Engine Performance tracking and improvement
Pipeline Orchestrator 25-step autonomous pipeline

License

MIT

Metadata

Release files for llmggfu 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llmggfu 0.3.0
File Size Uploaded Provenance
llmggfu-0.3.0.tar.gz 69.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llmggfu 0.3.0
File Interpreter ABI Platform
llmggfu-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 138.6 kB

Release files / llmggfu-0.3.0.tar.gz

Download URL llmggfu-0.3.0.tar.gz
Size 69.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3fb436ff9bb5aa7f78165c09e6058f1da8e00eceeb85aef29e4a8a8ca0d1767e
BLAKE2b-256 checksum
How to use checksums
2426e455b3f4e15e8dab17eb2ec2bf8620f989dc4f04907d3b148ca4027f0211
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / llmggfu-0.3.0-py3-none-any.whl

Download URL llmggfu-0.3.0-py3-none-any.whl
Size 68.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e1d36e9032fc7aec9977823b37938d8b052078873711fbd8c3c6f9fe905a9f2
BLAKE2b-256 checksum
How to use checksums
b23363332dd357721d0db56f4392d398b3dcb59b3671fc7d3d5c0d1e6e09cf8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for llmggfu 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page