Skip to main content

Drop-in AI agent team framework for Claude Code projects

Project description

2real-team-framework

CI PyPI npm License

A drop-in AI agent team framework for Claude Code projects. Bootstrap a simulated team of specialized agents with persistent identities, trust matrices, feedback loops, and structured workflows — all driven by Claude Code's agent tooling.

What is this?

When working with Claude Code on complex software projects, a single AI agent can struggle with coordination, context management, and quality control. 2real-team-framework solves this by scaffolding a complete simulated team structure:

  • Manager who decomposes work, creates GitHub Issues, and coordinates
  • Architects who design systems and review for compliance
  • Engineers who implement in isolated worktrees
  • QA, Security, and Data specialists for quality gates

Each team member has a persistent name, personality, git identity, communication style, and trust relationships with other members. They commit under their own names, review each other's work, give feedback, and can be "fired and replaced" when performance drops.

Installation

Python (pip)

pip install 2real-team-framework

# With AI persona generation support
pip install '2real-team-framework[ai]'

Node.js (npm)

npm install -g 2real-team-framework

# Or use without installing
npx 2real-team-framework init --preset library

Quick Start

# 1. Bootstrap a new project with interactive prompts
2real-team init

# 2. Review the generated team structure
2real-team status

# 3. Validate everything is in place
2real-team validate

Or specify everything up front:

2real-team init --preset fullstack-monorepo --team-size 10 --project-name my-app

This creates the following in your project:

.claude/
  team/
    charter.md           # Team rules, org chart, workflows
    trust_matrix.md      # Directional trust scores between members
    feedback_log.md      # Feedback history
    roster/
      manager_*.md       # One card per team member
      tech_lead_*.md
      ...
  skills/
    retro.md             # Wave retrospective skill
    wave-start.md        # Initialize a new wave
    wave-end.md          # Finalize a wave
    review-pr.md         # PR review using charter format
    plan-phase.md        # Phase planning skill
    close-stale-issues.md
  CLAUDE.md              # Team section for your project's CLAUDE.md

Commands

Command Description
2real-team init Bootstrap team framework in a project
2real-team add-member Add a new team member to the roster
2real-team remove-member <name> Archive a team member (prefix with _departed_)
2real-team update-member <name> Update role, level, or other fields
2real-team randomize-member <name> Fire and replace with a new random identity
2real-team validate Check charter, roster, and skills consistency
2real-team status Show team composition and project status

init options

Option Description
--preset <name> Project preset: fullstack-monorepo, data-pipeline, library
--team-size <n> Override the preset's default team size
--project-name <name> Project name (defaults to directory name)
--config <path> Path to a YAML config file (see below)
--target <dir> Target directory (defaults to .)
--no-interactive Disable interactive prompts
--git-email-prefix <prefix> Email prefix (e.g., myorg produces myorg+First.Last@gmail.com)
--ai-personas Use Claude API to generate rich, diverse personas
--seed <n> Seed for reproducible AI persona generation

Configuration File

Instead of command-line flags, you can use a YAML config file for repeatable, automated bootstrapping:

# config.yaml
preset: library
project_name: my-library
team_size: 4
git_email_prefix: myorg
skills:
  - retro
  - wave-start
  - wave-end
members:
  - name: Alice Chen
    role: Tech Lead
    level: Staff
  - name: Bob Garcia
    role: Software Engineer
    level: Senior
2real-team init --config config.yaml

Config file fields:

Field Type Description
preset string Required. Preset name
project_name string Project name
team_size integer Team size override
git_email_prefix string Email prefix
target string Target directory
skills list Override preset's default skills list
members list Per-member overrides (name, role, level, personality)

See examples/ for sample configs for each preset.

AI Persona Generation

Generate culturally diverse, role-appropriate personas using Claude:

# Requires ANTHROPIC_API_KEY in environment
export ANTHROPIC_API_KEY=sk-ant-...

# Generate AI personas
2real-team init --preset library --ai-personas

# Reproducible results with a seed
2real-team init --preset library --ai-personas --seed 42

Install the optional AI dependency:

# Python
pip install '2real-team-framework[ai]'

# Node
npm install @anthropic-ai/sdk

If the API key is missing or the SDK isn't installed, the CLI falls back to the built-in name pool with a warning.

Presets

Preset Default Size Required Roles Description
fullstack-monorepo 10 Manager, System Architect, DevOps Engineer, Tech Lead, Principal Engineer Full-stack application with frontend, backend, and infrastructure
data-pipeline 12 Manager, System Architect, DevOps Architect, DevOps Engineer, Tech Lead, Data Engineer Data engineering with ETL, databases, and analytics
library 5 Manager, Tech Lead, Principal Engineer Lean team for open-source libraries or SDKs

All presets include 6 skills: retro, wave-start, wave-end, review-pr, plan-phase, close-stale-issues.

Skills

Skills are Claude Code slash commands installed in .claude/skills/. After bootstrapping:

  • /retro — Run a wave retrospective (collect PRs, issues, CI failures, write report)
  • /wave-start — Initialize a new deployments branch and clean worktrees
  • /wave-end — Review, merge, and finalize all PRs for a wave
  • /review-pr <number> — Review a PR using the charter's structured format
  • /plan-phase <number> — Decompose a phase into issues with acceptance criteria
  • /close-stale-issues — Audit and close issues resolved by merged PRs

How it works with Claude Code

  1. Bootstrap: Run 2real-team init in your project
  2. Start a session: Claude Code reads .claude/team/charter.md and roster files
  3. Manager spawns team: The Manager agent decomposes work and spawns specialists
  4. Isolated work: Each engineer works in a git worktree via isolation: "worktree"
  5. Coordination: Team members communicate via SendMessage tool
  6. Quality gates: Peer review, tech debt tracking, trust scoring
  7. Feedback loops: Retrospectives after each wave, firing underperformers

Dual CLI Architecture

The framework provides identical CLIs in both Python and Node.js. They share the same:

  • Templates — Mustache templates in templates/ (logic-less, works in both ecosystems)
  • Presets — JSON preset definitions in presets/
  • Skills — Skill templates in skills/

Neither implementation depends on the other. Use whichever fits your toolchain.

Case Study: isnad-graph

The framework was developed and battle-tested on isnad-graph, a computational hadith analysis platform:

  • 8 phases of development (scaffolding through security/ops)
  • 240+ pull requests across the project lifecycle
  • 14-member simulated team with Manager, Architects, Engineers, QA, Security, and Data specialists
  • Team members were fired and replaced based on performance feedback
  • Trust matrix evolved organically based on actual delivery quality
  • Wave-based deployment branches with structured peer review

The patterns, templates, and presets in this framework are directly extracted from that project's operational experience.

Contributing

See CONTRIBUTING.md for development setup, testing, and PR guidelines.

License

Apache 2.0 — see LICENSE for details.

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

2real_team_framework-0.3.1.tar.gz (179.7 kB view details)

Uploaded Source

Built Distribution

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

2real_team_framework-0.3.1-py3-none-any.whl (235.7 kB view details)

Uploaded Python 3

File details

Details for the file 2real_team_framework-0.3.1.tar.gz.

File metadata

  • Download URL: 2real_team_framework-0.3.1.tar.gz
  • Upload date:
  • Size: 179.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for 2real_team_framework-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d2e95e6ebcd321845e39737f96a2a08b1e96c356588766010ad0e46f56990344
MD5 c981c1fdcea02dd1556166a941b798d5
BLAKE2b-256 2151f3a6facc7924ac115d76773e71468b278b9ea4152ee0f4abdf18fc0c0cde

See more details on using hashes here.

Provenance

The following attestation bundles were made for 2real_team_framework-0.3.1.tar.gz:

Publisher: publish-pypi.yml on parametrization/2real-team-framework

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

File details

Details for the file 2real_team_framework-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for 2real_team_framework-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4478d7a3f47839c94405de982fbac6358e5e7252cb4e725db9f0ae79cf1f628
MD5 44239def0bfd5e85bf3ee672ebbc07c1
BLAKE2b-256 0b82dcdb8428a32867573446507ab3a8c02d96161f956e516fd0fe01162d4567

See more details on using hashes here.

Provenance

The following attestation bundles were made for 2real_team_framework-0.3.1-py3-none-any.whl:

Publisher: publish-pypi.yml on parametrization/2real-team-framework

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