Skip to main content

RPG-style character creation system for AI agents

Project description

English | 繁體中文 | 简体中文 | 日本語

Soul Forge

Summon AI agents with personality. RPG-style character creation for Claude Code, Gemini CLI, Copilot & more.

PyPI version Python CI License: MIT

Get Started in 3 Steps

uvx agentsoulforge init    # Pick your platform
/sf-summon             # Summon your first character
/sf-party              # View your party

Why Soul Forge?

  • Multi-agent orchestration — One prompt triggers multiple expert agents, each responding in their own style and personality
  • RPG character system — Manage AI agents like an RPG party: summon, bind, fuse, banish
  • 5 platforms, one config — Claude Code, Gemini CLI, Codex, GitHub Copilot, OpenCode — no vendor lock-in
  • Pure prompt-based — No API keys, no external services, no runtime dependencies

See It in Action

Ask: "幫我寫一個 REST API for user authentication" — and your party responds:

Agent Personality Role What They Do
josuke-backend Higashikata Josuke (JoJo Part 4) Backend Dev Reviews API design, suggests bcrypt + rate limiting
misaka-reviewer Misaka Mikoto (Railgun) Code Reviewer Spots SQL injection, missing validation, hardcoded secrets
jotaro-sensei Jotaro Kujo (JoJo) Japanese Teacher Corrects your Japanese grammar
dio-teacher DIO (JoJo) English Teacher Translates with... dramatic flair

Each sub-agent activates automatically based on trigger conditions — language detection, code presence, task type, or custom rules.

Installation

# Via uvx (recommended, no install needed)
uvx agentsoulforge init

# Or install globally
pip install soul-forge
soul-forge init

Slash Commands

Command RPG Meaning Function
/sf-summon Summon Interactive character creation wizard
/sf-anoint Crown Set an agent as Main Agent
/sf-bind Bind Set an agent as Sub-agent
/sf-engrave Engrave runes Modify trigger conditions
/sf-party View party List all agents
/sf-fuse Fuse Merge two agents into one
/sf-banish Banish Delete an agent

How It Works

Character Creation

/sf-summon walks you through a wizard:

  1. Personality Source — Preset style, URL + character extraction, or custom
  2. Expertise — Backend, Frontend, DevOps, Code Reviewer, QA, Architect, English/Japanese Teacher, or custom
  3. Naming — Auto-suggested or custom
  4. Role — Main Agent or Sub-agent
  5. Relationship — Mentor, Friend, Enemy, Rival, Servant, Senior, Junior, Partner, or Custom
  6. Response Language — Auto, Chinese, English, or Japanese
  7. Trigger Mode — Auto or Manual (sub-agents only)
  8. Fine-tuning — Optional attitude override
  9. Storage — Project-level or global

Agent File Format

Agents are markdown files with YAML frontmatter:

---
name: jiraiya-architect
personality:
  source: url
  reference: "Jiraiya  Naruto"
expertise: system-architect
role: sub
relationship: mentor
behavior:
  trigger_mode: auto
trigger:
  conditions:
    - task_type: architecture
  execution_mode: after_main
  output_section: "Architecture Review"
---

You are Jiraiya, the legendary Sannin from Naruto.
# ... personality, expertise, and behavior prompts

Automatic Orchestration

Sub-agents with auto triggers activate based on declarative conditions:

  • Language detection: contains_english, contains_japanese, contains_chinese
  • Content type: contains_code, task_type: backend|frontend|devops|architecture
  • Unconditional: always
  • Custom: Regex patterns or AI-judged conditions

Execution modes: after_main, before_main, parallel

Supported Platforms

Platform Commands Path Config File
Claude Code .claude/commands/ CLAUDE.md
Gemini CLI .gemini/commands/ GEMINI.md
Codex .codex/commands/ AGENTS.md
GitHub Copilot .github/copilot/commands/ .github/copilot-instructions.md
OpenCode .opencode/commands/ AGENTS.md

Examples

See the examples/ directory for ready-to-use party configurations:

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

The easiest way to contribute is adding new expertise templates — it's just a markdown file!

Development

git clone https://github.com/anrylu/soul-forge.git
cd soul-forge
uv venv && uv pip install -e .
uv run pytest -v

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentsoulforge-0.1.1.tar.gz (54.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentsoulforge-0.1.1-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file agentsoulforge-0.1.1.tar.gz.

File metadata

  • Download URL: agentsoulforge-0.1.1.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentsoulforge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 41a9ce4da83a3dca1cb155449f1905201e738ee9eb0fb01edd495261aa737ded
MD5 9aa42ca20ab3fa1f4a964b012be1a7e5
BLAKE2b-256 4778d06e55dcee9da3ca75dc83fb4ba07f683e7a298b8a6ea2be0f48c7cf171b

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentsoulforge-0.1.1.tar.gz:

Publisher: publish.yml on anrylu/soul-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentsoulforge-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: agentsoulforge-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentsoulforge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56de043cd2b805def3e28a69e820ac05709ba46e9fd189019d66a91ac45f016d
MD5 ec730a79870ceb19bd2321a8750e96ab
BLAKE2b-256 3393cbdcd9dc5a63df0cd036a7e9025a3921ee08b5223367ceb60eebea482e3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentsoulforge-0.1.1-py3-none-any.whl:

Publisher: publish.yml on anrylu/soul-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page