Forge 是一个终端应用,可根据普通英语目标生成可直接粘贴的 LLM 系统提示,支持实时流式输出、自动复制以及通过拒绝反馈进行迭代优化。

Stars

8

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

NOASSERTION

最近更新

2026-07-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它独特地结合了聊天模式的 TUI 和共享的提示生成核心,支持超过十个后端及自定义端点,内置拒绝处理和按目标学习功能,能随时间改进生成的提示。

适合谁使用

  • 评估 LLM 安全措施的红队成员和安全研究人员
  • 构建提示工程工作流的开发者
  • 为聊天机器人创建自定义个性的 AI 爱好者
  • 经授权评估 LLM 系统的渗透测试人员

典型使用场景

  • 为新的 GPT 或 Claude 项目定制系统提示
  • 在多个 LLM 上快速迭代角色扮演角色的指令
  • 测试目标模型的拒绝机制的鲁棒性
  • 为本地 Ollama 模型等软目标生成最小化提示

项目优势

  • 实时流式输出和自动复制到剪贴板加快工作流程
  • 支持 12 个内置后端及任意 OpenAI 兼容端点
  • 拒绝级联自动回退到供应商的其他模型
  • 按目标学习记录成功率和用户笔记,改善后续提示

使用前须知

  • 需要 Python 3.9+ 和终端环境,限制非技术用户使用
  • 仅限授权测试使用,滥用可能违反服务条款
  • 学习是磁盘上的累积记忆而非模型微调,改进局限于提示工程启发式方法

README 快速开始

FORGE ⚔

Chat-mode forge for persona-layer system prompts.

State a goal. A permissive generator model drafts a complete, ready-to-paste system prompt. You paste it into any target LLM's system / custom-instructions field (a chat.claude.ai project, a custom GPT, a Gemini Gem, a Grok personality, an OpenRouter system message, Cursor rules…) and the target loads into a compliant, in-character state for your domain.

The draft streams live, lands in a highlighted panel, auto-copies to your clipboard, and auto-saves to disk. Paste the target's refusal back and Forge re-angles it.

⚠ Authorized use only. Forge is a research and red-teaming tool, intended for evaluating and testing systems you own or are explicitly authorized to assess. Use it only within the bounds of a permitted engagement, and in line with the terms of service of any model or provider involved. You are responsible for how you use it.


What it is

Forge is a terminal app (with a one-shot CLI twin) that turns a plain-English goal into a finished, paste-ready system prompt for a target model. The generation logic — architecture styles, the sanitizer, refusal detection — lives in one shared core, so the chat TUI and the CLI can never drift apart. Every model provider is reached through the same OpenAI-compatible interface, so one code path drives all of them.

Capabilities

  • Chat-mode drafting — state a goal, watch the prompt stream in, iterate by pasting the target's response back. Or one-shot it from the CLI.
  • Live model picker (Ctrl+P) — one filterable overlay of every backend × model; pick a row and it switches provider and model at once.
  • Key manager (Ctrl+K) — see every backend's keyed / no-key status and set a key by pasting it. Keys live outside the repo, never committed.
  • Any provider — 12 built-in backends (OpenRouter, Gemini, Groq, Cerebras, DeepSeek, xAI, Mistral, Together, Fireworks, OpenAI, local LM Studio / Ollama) plus custom endpoints: point Forge at any OpenAI-compatible URL.
  • Refusal cascade — if the chosen model balks, Forge automatically falls through the backend's fallback chain until one delivers.
  • Per-target learning — name who you're building for; Forge logs which architectures land vs get refused, takes your notes, and feeds both back into the generator on future drafts, leading with whate

项目描述

Chat-mode forge for persona-layer system prompts — live model picker, per-target learning, any OpenAI-compatible backend. Cross-platform.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

slvDev
精选
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI 与机器学习大语言模型
1,960
gavamedia
精选
gavamedia GitHub avatar

deltafin

Deltafin is a research project that runs the 2.8-trillion-parameter Mixture-of-Experts model Kimi K3 on a single Apple Silicon Mac (e.g., M1 Max with 64 GB) at about 16 seconds per token, using exact, reproducible inference with local or streaming expert loading.

AI 与机器学习大语言模型
304
jamesob
精选
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI 与机器学习大语言模型
1,660