Skip to content

Guillermo1987/agentforge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

AgentForge — AI Agent Deployment Platform

SaaS · AI automation · React · Firebase · n8n · Claude Status: 🚧 MVP in active development — architecture fully defined, demo prototype built A platform that lets agencies deploy custom AI agents for their clients in under an hour: configure a system prompt, tools and memory, and hand the client a personalized chat URL. The agent learns from use and consolidates memory nightly.

🇬🇧 English version first. · 🇪🇸 La versión en español está más abajoir a Español.

Status Stack Domain License: MIT


The problem this solves

Companies increasingly want an "AI employee", but they don't know how to build or operate one. Agencies and consultancies have the know-how — yet they lack a product to deliver it repeatably and profitably. AgentForge is that missing layer: ready-made infrastructure where an agency configures an agent once (system prompt, tools, memory, brand) and ships it to a client as a personalized chat URL — no custom build each time.

The differentiator is a cognitive memory architecture: the agent doesn't just answer, it remembers — accumulating long-term facts about the client and consolidating them over time.


Architecture

flowchart LR
    U["Client end-user"] --> C["Chat UI<br/>React · Firestore realtime"]
    C -->|"write message"| F["Firestore<br/>agents · conversations · messages · memory"]
    F -->|"webhook"| N["n8n workflow<br/>(self-hosted)"]
    N -->|"system prompt + memory + history"| CL["Claude SDK"]
    CL -->|"reply"| N --> F --> C
    T["cloudflared tunnel"] -.exposes.-> N
Loading
Layer Technology
Frontend React · Vite · TailwindCSS → Firebase Hosting (Spark, free tier)
Database Firestore — agents, conversations, messages, memory, config
Orchestration n8n (self-hosted) — processes messages, calls Claude, updates memory
AI Claude SDK — per-agent configurable system prompt
Public exposure cloudflared tunnel → n8n reachable publicly

Agent engine flow: POST /webhook/message → read agent config → read last 10 messages → read long-term memory facts → build the full prompt (system prompt + memory + history) → call Claude → persist the reply to Firestore → the realtime listener renders it in the chat.


Cognitive memory

A two-tier model that mimics human cognition:

  • Short-term: the last N messages of the current conversation injected into context (N configurable per agent, default 10).
  • Long-term: when a session closes (or every X messages), n8n asks Claude to extract up to 5 key facts from the transcript and persists them in Firestore (memory/{agentId}/facts/), to be re-injected in future conversations.
  • Knowledge base: per-client markdown documents.

Roadmap

Tracked as 5 epics (see project board):

Epic Scope Status
1 · Infrastructure Firebase project, Firestore schema, Vite+React+TS scaffold, firestore.rules, cloudflared→n8n 🔲 Planned
2 · Chat UI AgentChat / Chat / MessageBubble / TypingIndicator / MessageInput, Firestore realtime, route /chat/{agentId} 🔲 Planned
3 · Agent Engine n8n workflow + Claude integration (the flow above) 🔲 Planned
4 · Cognitive Memory short-term + long-term fact extraction 🔲 Planned
5 · Admin Dashboard create/manage agents, view conversations, edit memory, copy public URL 🔲 Planned

MVP Demo milestone: one functional agent with realtime chat, session memory, deployed on Firebase, demo-able for clients.


Tech stack

Layer Technology
Frontend React · Vite · TailwindCSS
Backend / data Firebase (Hosting + Firestore)
Orchestration n8n (self-hosted)
AI Claude (Anthropic SDK)
Networking cloudflared tunnel

Business model

Setup fee per agent (~€500) + monthly retainer (~€150/agent). Built entirely on free/self-hosted tiers (Firebase Spark, self-hosted n8n) to keep operating cost near zero.


Project status

ℹ️ Honest status: the full architecture and MVP plan are defined (5 epics) and an early demo prototype was built (chat at /chat/{agentId}). The production codebase is being consolidated — this repository will hold it as the MVP lands.


License & contact

Released under the MIT License.


🇪🇸 Español

AgentForge — Plataforma de despliegue de agentes IA

SaaS · automatización con IA · React · Firebase · n8n · Claude Estado: 🚧 MVP en desarrollo activo — arquitectura definida, prototipo demo construido Una plataforma que permite a agencias desplegar agentes IA personalizados para sus clientes en menos de una hora: configura un system prompt, herramientas y memoria, y entrega al cliente una URL de chat personalizada. El agente aprende con el uso y consolida memoria por la noche.

🇪🇸 Traducción al español. La versión en inglés está al inicio → ir a English.


El problema que resuelve

Las empresas quieren cada vez más un "empleado IA", pero no saben cómo construirlo ni operarlo. Las agencias y consultoras tienen el conocimiento — pero les falta un producto para entregarlo de forma repetible y rentable. AgentForge es esa capa que falta: infraestructura lista donde una agencia configura un agente una vez (system prompt, herramientas, memoria, marca) y lo entrega al cliente como una URL de chat personalizada — sin desarrollo a medida cada vez.

El diferenciador es una arquitectura de memoria cognitiva: el agente no solo responde, recuerda — acumulando hechos a largo plazo sobre el cliente y consolidándolos con el tiempo.


Arquitectura

flowchart LR
    U["Cliente final"] --> C["Chat UI<br/>React · Firestore realtime"]
    C -->|"escribe mensaje"| F["Firestore<br/>agents · conversations · messages · memory"]
    F -->|"webhook"| N["workflow n8n<br/>(self-hosted)"]
    N -->|"system prompt + memoria + historial"| CL["Claude SDK"]
    CL -->|"respuesta"| N --> F --> C
    T["cloudflared tunnel"] -.expone.-> N
Loading
Capa Tecnología
Frontend React · Vite · TailwindCSS → Firebase Hosting (Spark, gratis)
Base de datos Firestore — agentes, conversaciones, mensajes, memoria, config
Orquestación n8n (self-hosted) — procesa mensajes, llama a Claude, actualiza memoria
IA Claude SDK — system prompt configurable por agente
Exposición pública cloudflared tunnel → n8n accesible públicamente

Flujo del agent engine: POST /webhook/message → leer config del agente → leer últimos 10 mensajes → leer facts de memoria a largo plazo → construir el prompt completo (system prompt + memoria + historial) → llamar a Claude → persistir la respuesta en Firestore → el listener en tiempo real la renderiza en el chat.


Memoria cognitiva

Un modelo de dos niveles que imita la cognición humana:

  • Corto plazo: los últimos N mensajes de la conversación actual inyectados en el contexto (N configurable por agente, default 10).
  • Largo plazo: al cerrar una sesión (o cada X mensajes), n8n pide a Claude extraer hasta 5 hechos clave del transcript y los persiste en Firestore (memory/{agentId}/facts/), para reinyectarlos en conversaciones futuras.
  • Base de conocimiento: documentos markdown por cliente.

Roadmap

Organizado en 5 épicas (ver tablero del proyecto):

Épica Alcance Estado
1 · Infraestructura Proyecto Firebase, schema Firestore, scaffold Vite+React+TS, firestore.rules, cloudflared→n8n 🔲 Planificada
2 · Chat UI AgentChat / Chat / MessageBubble / TypingIndicator / MessageInput, Firestore realtime, ruta /chat/{agentId} 🔲 Planificada
3 · Agent Engine workflow n8n + integración Claude (el flujo de arriba) 🔲 Planificada
4 · Memoria cognitiva corto plazo + extracción de facts a largo plazo 🔲 Planificada
5 · Admin Dashboard crear/gestionar agentes, ver conversaciones, editar memoria, copiar URL pública 🔲 Planificada

Milestone MVP Demo: un agente funcional con chat en tiempo real, memoria de sesión, desplegado en Firebase, demo-able para clientes.


Stack técnico

Capa Tecnología
Frontend React · Vite · TailwindCSS
Backend / datos Firebase (Hosting + Firestore)
Orquestación n8n (self-hosted)
IA Claude (Anthropic SDK)
Red cloudflared tunnel

Modelo de negocio

Setup fee por agente (~500€) + retainer mensual (~150€/agente). Construido íntegramente sobre tiers gratuitos/self-hosted (Firebase Spark, n8n self-hosted) para mantener el coste operativo cercano a cero.


Estado del proyecto

ℹ️ Estado honesto: la arquitectura completa y el plan del MVP están definidos (5 épicas) y se construyó un prototipo demo temprano (chat en /chat/{agentId}). El código de producción se está consolidando — este repositorio lo albergará cuando aterrice el MVP.


Licencia y contacto

Publicado bajo la Licencia MIT.


Built by Guillermo Ubeda · Data & BI Analyst · MBA · ISC2 CC

About

Plataforma SaaS para desplegar agentes IA personalizados. Stack: React + Firebase + n8n + Claude.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors