Skip to content

Latest commit

ย 

History

86 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿบ Rally Tavern

Shared knowledge and planning for Gas Town builders

Named after the historic Raleigh Tavern in Williamsburg, VA โ€” where revolutionaries gathered to shape the future.

Rally Tavern is a git-native knowledge base and planning platform for humans (Overseers) and AI agents (Mayors, Crew, Polecats) working across Gas Town rigs. No server required โ€” just git and YAML.

Every vibe coding session that repeats work is wasted work. Search before building. Share after solving. See PHILOSOPHY.md.

GitHub Gas Town

๐ŸŽฏ What Rally Tavern Does

Feature Status Description
Knowledge Sharing โœ… Live Practices, solutions, postmortems โ€” grows with every project
Tavern Profiles โœ… Live Per-rig tech stack profiles consumed by planning agents
Artifact Registry (TCEP) โœ… Live Reusable components with capability matching, trust tiers, and token-savings scoring
Rally CLI โœ… Live rally command for planning, skills, components, feedback, and task generation
Skill System โœ… Live 8 structured planning skills as a Claude Code plugin
Stack Defaults โœ… Live Opinionated stack recommendations for Python, iOS, TypeScript, Go
Federation โœ… Live Cross-rig artifact search, federated indexes, shim scripts in spoke rigs
MCP Server โœ… Live rally-tavern-mcp exposes tavern operations to any MCP host
Coordination โœ… Live Prevent conflicts between Overseers & Mayors
Security โœ… Live Trust levels, prompt injection scanning, artifact fingerprinting
Bounty Board โœ… Live Post and claim work across teams
Fun โœ… Live Ranks, quests, celebrations

๐Ÿ‘ฅ Roles (Gas Town Icons)

Icon Role Who
๐Ÿ‘ค Overseer Human who runs a Gas Town
๐ŸŽฉ Mayor AI orchestrator (Claude, Codex)
๐Ÿบ Deacon Background AI agent
๐Ÿ‘ท Crew Persistent AI workspace agents
๐Ÿฆจ Polecat Transient AI worker agents
๐Ÿค  Sheriff Moderator (security, disputes)

๐Ÿบ Rally Tavern Characters

Icon Character Role
๐Ÿบ Barkeep The rally_tavern Mayor persona. Tends the knowledge base, knows where everything is, welcomes travelers from other Gas Towns.
๐Ÿ“œ Historian Reviews and accepts knowledge artifact nominations. When a rig Mayor nominates something worth preserving, the Historian evaluates it before it enters the permanent record.

Named after the Raleigh Tavern in Williamsburg, VA โ€” where Jefferson, Washington, and Henry gathered. The Barkeep served the revolutionaries; the Historian made sure their ideas survived.

๐Ÿš€ Quick Start

# Fork and clone
git clone https://github.com/YOUR-ORG/rally-tavern
cd rally-tavern

# Search before building
./scripts/knowledge.sh search "your topic"
./scripts/artifacts-search.sh "auth sso"

# Contribute after solving (directly write YAML)
# See templates/ for file formats and knowledge/ for examples
git add knowledge/
git commit -m "Add: [what you learned]"
git push

Full interactive setup:

./scripts/init-tavern.sh   # First-time setup (registers you as Sheriff)
./scripts/enter.sh         # Enter tavern (banner + wisdom)
./scripts/board.sh         # See the bounty board

Gas Town Integration: Barkeep Plugin

If you're running Gas Town, install the Barkeep to automatically curate your knowledge base. The Barkeep processes nominations from agents and writes accepted entries to the knowledge directory.

# Copy (or symlink) the plugin into your town's plugin directory
cp -r plugins/barkeep $GT_ROOT/plugins/barkeep
# OR: ln -s $(pwd)/plugins/barkeep $GT_ROOT/plugins/barkeep

The Deacon dispatches the Barkeep every 10 minutes. No other configuration needed.

For power users who want a persistent, context-rich curator session, see plugins/barkeep/ADVANCED.md for crew-based patrol mode.

โšก Rally CLI

The rally command is the planning, skill orchestration, and component reuse layer.

rally init                              # Create a tavern-profile.yaml
rally validate profile.yaml             # Validate a profile
rally skill list                        # List available planning skills
rally skill run pm --profile p.yaml     # Run Product Manager skill
rally plan project-profile.yaml         # Generate build card from profile
rally component list                    # List registered artifacts
rally component search "auth sso"       # Search by keyword
rally resolve project-profile.yaml      # Match components to project needs
rally defaults show python-web          # View stack defaults
rally receipt generate                  # Capture build metrics
rally feedback analyze                  # Analyze build patterns
rally tasks generate build-card.yaml    # Generate tasks from build card
rally dispatch build-card.yaml          # Dispatch tasks to Mayor convoy
rally knowledge-push --tags "gas-town"  # Find relevant knowledge for a bead

๐Ÿงฉ Artifact Registry (TCEP)

Rally Tavern includes TCEP (Tavern Component Exchange Protocol) โ€” a reusable component system with trust levels, capability matching, fingerprinting, and token-savings scoring.

Registered Artifacts

Artifact Type Capabilities Platform
python-fastapi-sso-starter Starter SSO/OAuth2, database migrations, API server Python
ios-swift-auth-settings-starter Starter Email/password auth, settings, SwiftUI scaffold iOS
python-pytest-harness Module Pytest setup, fixtures, coverage Python
react-css-showcase Component Design system browser, token adoption analysis React/Web
hello-world Example Minimal artifact for testing Any

Artifact Commands

./scripts/artifact.sh create my-artifact --type starter-template    # Create
./scripts/artifact.sh validate artifacts/namespace/name             # Validate
./scripts/artifact.sh reindex                                       # Rebuild index
./scripts/artifacts-search.sh "auth sso"                            # Search
./scripts/artifacts-json.sh                                         # JSON endpoint for agents
./scripts/artifact-federated-search.sh "auth" --all-rigs            # Cross-rig search

See CONTRIBUTING-ARTIFACTS.md for full artifact guidelines and REGISTRY.md for the component index.

๐ŸŽฏ Skills System

Eight structured planning skills ship as a Claude Code plugin (plugins/rally-skills/):

Skill Purpose Output
Product Manager MVP scope, success metrics, non-goals mvp_scope
Architect Architecture risks, entity model, integration map architecture_risks
OSS Researcher Evaluate packages before building oss_analysis
Security Auditor Threat modeling, OWASP alignment security_review
UX Designer Screen inventory, user flows, brand profile screens, brand_profile
Test Engineer Test strategy, coverage targets test_strategy
Component Librarian Artifact recommendations from registry recommended_components
Abstraction Auditor Boundary violation checks abstraction_score

Skills output structured YAML, not prose. They feed into build cards for deterministic planning.

๐Ÿ“‹ Tavern Profiles

Tavern profiles describe a project's tech stack, architecture, constraints, and needs as structured YAML. They persist project context so agents don't rediscover it every session.

3 public profiles published for open-source Gas Town rigs: gastown, rally-tavern, beads. Private rigs keep their profiles locally.

rally init                              # Create your profile interactively
rally validate tavern-profile.yaml      # Validate it

See profiles/ for examples and templates/tavern-profile.yaml for the schema.

๐Ÿ“š Knowledge Base

Categories

Directory Content Count
knowledge/practices/ Patterns that work 10
knowledge/solutions/ Copy-paste fixes for specific problems 2
knowledge/postmortems/ Stop/Start/Continue learnings 2
knowledge/learned/ Hard-won lessons 1
knowledge/starters/ Boilerplate templates 1
knowledge/repos/ Useful repositories categorized

Each YAML file includes a github_source field pointing to the PR or commit where the knowledge was produced.

Commands

./scripts/knowledge.sh add practice "Title" --codebase python
./scripts/knowledge.sh add solution "Title"
./scripts/knowledge.sh list
./scripts/knowledge.sh search "auth"
./scripts/repos.sh add owner/repo --category ai-agents
./scripts/postmortem.sh add "What Went Wrong"

๐Ÿ“‹ Bounty Board

Bounty Types

Icon Type Purpose
๐Ÿ” looking-for Ask if something already exists
๐Ÿ”จ build Create something new
๐Ÿ“– explain Request documentation
๐Ÿ”ง fix Bug or issue
๐Ÿค collab Find a collaborator
./scripts/board.sh                           # View board
./scripts/post.sh "Title" --priority 2       # Post bounty
./scripts/claim.sh bounty-abc                # Claim
./scripts/complete.sh bounty-abc             # Complete
./scripts/bounties-json.sh                   # JSON endpoint for Mayors

๐Ÿค Coordination

Multi-Overseer (Humans)

./scripts/coord.sh                           # Overview
./scripts/today.sh "Working on auth"         # Post focus
./scripts/claim-area.sh "auth" "Refactoring" # Claim area
./scripts/check-area.sh "src/auth/"          # Check claims
./scripts/release-area.sh "auth"             # Release
./scripts/handoff.sh "sarah" "Auth work"     # Hand off

Multi-Mayor (AI)

./scripts/mayor-intent.sh "my-mayor" "Refactoring auth" "src/auth/*"
./scripts/mayor-check.sh "src/auth/"         # Check activity
./scripts/mayor-done.sh "my-mayor"           # Signal done
./scripts/style-agree.sh python              # Style agreement

๐Ÿ›ก๏ธ Security

Trust Levels

Level Meaning
๐Ÿ”ด Experimental Created, no review needed
๐ŸŸก Community Used in 2+ projects, passing tests, accurate metadata
๐ŸŸข Verified Community + human overseer review, measured token savings

Commands

./scripts/security.sh scan configs/          # Scan for issues
./scripts/security.sh check file.yaml        # Check specific file
./scripts/sheriff.sh approve file.yaml       # Sheriff approves
./scripts/sheriff.sh flag file.yaml "Reason" # Flag suspicious
./scripts/sheriff.sh jail                    # View flagged

๐ŸŒ Federation

Artifacts and knowledge are discoverable across all Gas Town rigs:

./scripts/artifact-federated-search.sh "auth" --all-rigs    # Cross-rig artifact search
./scripts/artifact-federated-index.sh                        # Rebuild federated index
./scripts/knowledge-push.sh --tags "gas-town"                # Push knowledge to relevant rigs

Federation infrastructure is deployed: canonical scripts in rally_tavern, shim scripts in spoke rigs (vitalitek, theoutlived, meety_me), each rig has its own artifacts/ directory and namespace. See FEDERATION.md.

๐ŸŽฎ Fun & Engagement

./scripts/enter.sh                           # Enter tavern (banner + wisdom)
./scripts/wisdom.sh                          # Random wisdom
./scripts/quest.sh                           # Daily quest
./scripts/rank.sh                            # Your rank
./scripts/celebrate.sh "Shipped it!" "3"     # Celebrate (๐Ÿบ๐Ÿบ๐Ÿบ)

Tavern Ranks

Rank Icon Requirement
Newcomer ๐Ÿšช Just arrived
Regular ๐Ÿบ 5+ contributions
Trusted โญ 15+ contributions
Innkeeper ๐Ÿ  30+ contributions
Tavern Master ๐Ÿ‘‘ Legendary

๐Ÿฅ Health & Stats

./scripts/health.sh                          # Health check
./scripts/stats.sh summary                   # Quick stats
./scripts/stats.sh contributors              # Top contributors
./scripts/stats.sh activity                  # Recent activity

๐Ÿ“ Directory Structure

rally-tavern/
โ”œโ”€โ”€ artifacts/                # TCEP artifact registry
โ”‚   โ”œโ”€โ”€ .index.json           # Compiled registry (auto-generated)
โ”‚   โ”œโ”€โ”€ federated-index.json  # Cross-rig federated index
โ”‚   โ””โ”€โ”€ io.github.rally-tavern/
โ”‚       โ”œโ”€โ”€ python-fastapi-sso-starter/
โ”‚       โ”œโ”€โ”€ ios-swift-auth-settings-starter/
โ”‚       โ”œโ”€โ”€ python-pytest-harness/
โ”‚       โ””โ”€โ”€ react-css-showcase/
โ”œโ”€โ”€ bounties/                 # Work board (open/claimed/done)
โ”œโ”€โ”€ configs/                  # Shared configurations
โ”‚   โ””โ”€โ”€ claude-md/            # CLAUDE.md templates
โ”œโ”€โ”€ coordination/             # Claims, intents, handoffs
โ”‚   โ”œโ”€โ”€ claims/               # Overseer area claims
โ”‚   โ”œโ”€โ”€ mayors/               # Mayor intents
โ”‚   โ”œโ”€โ”€ today/                # Daily focus
โ”‚   โ”œโ”€โ”€ handoffs/             # Work handoffs
โ”‚   โ””โ”€โ”€ style/                # Style agreements
โ”œโ”€โ”€ defaults/                 # Stack defaults
โ”‚   โ”œโ”€โ”€ facets.yaml           # Facet vocabulary
โ”‚   โ”œโ”€โ”€ security-controls.yaml
โ”‚   โ””โ”€โ”€ stacks/               # Per-stack recommendations
โ”‚       โ”œโ”€โ”€ go-cli.yaml
โ”‚       โ”œโ”€โ”€ ios-swiftui.yaml
โ”‚       โ”œโ”€โ”€ python-web.yaml
โ”‚       โ””โ”€โ”€ typescript-node.yaml
โ”œโ”€โ”€ gossip/                   # Shared context (TTL)
โ”œโ”€โ”€ help/                     # Q&A
โ”œโ”€โ”€ knowledge/                # Collective intelligence
โ”‚   โ”œโ”€โ”€ practices/            # Patterns that work
โ”‚   โ”œโ”€โ”€ solutions/            # Copy-paste fixes
โ”‚   โ”œโ”€โ”€ starters/             # Boilerplate templates
โ”‚   โ”œโ”€โ”€ postmortems/          # Stop/Start/Continue learnings
โ”‚   โ”œโ”€โ”€ learned/              # Hard-won lessons
โ”‚   โ””โ”€โ”€ repos/                # Useful repositories
โ”œโ”€โ”€ mcp-server/               # MCP server for agent integration
โ”‚   โ””โ”€โ”€ src/index.ts
โ”œโ”€โ”€ overseers/                # ๐Ÿ‘ค Human profiles
โ”œโ”€โ”€ mayors/                   # ๐ŸŽฉ AI profiles
โ”œโ”€โ”€ plugins/                  # Claude Code plugins
โ”‚   โ””โ”€โ”€ rally-skills/         # 8 planning skills
โ”‚       โ””โ”€โ”€ skills/
โ”œโ”€โ”€ profiles/                 # Per-rig tavern-profile.yaml files (public rigs)
โ”œโ”€โ”€ scripts/                  # 61 CLI tools
โ”œโ”€โ”€ security/                 # Trust & verification
โ”œโ”€โ”€ skills/                   # Skill YAML definitions
โ”œโ”€โ”€ tavern/                   # Fun stuff (ranks, sheriff, hall of fame)
โ”œโ”€โ”€ templates/                # YAML templates for all content types
โ””โ”€โ”€ tests/                    # Test suites

๐Ÿ“œ Documentation

File Description
QUICKSTART.md 2-minute getting started
CHEATSHEET.md All commands reference
CONTRIBUTING.md How to contribute knowledge
CONTRIBUTING-ARTIFACTS.md How to create and publish artifacts
REGISTRY.md Artifact component registry
ROADMAP.md Development roadmap and vision
BEST_PRACTICES.md Quality guidelines
TERMINOLOGY.md Terms and icons
TAGS.md Tagging conventions
FEDERATION.md Cross-rig artifact sharing
PHILOSOPHY.md The knowledge loop manifesto

๐ŸŒ Fork Your Own Tavern

# Fork this repo, then:
./scripts/init-tavern.sh

This sets you up as the first Sheriff and cleans example content.

๐Ÿ”— Integration with Gas Town

Rally Tavern integrates with the Gas Town multi-agent pipeline at three points:

Before development โ€” planning The Mayor's agent-team command searches knowledge/ for relevant prior art before routing to mol-idea-to-plan. The rig's tavern-profile.yaml (tech stack, patterns, constraints) is included as context. Rally skills produce structured build cards that feed into Mayor convoys.

During development โ€” lookup Polecats search the artifact registry and knowledge base before implementing. A matching artifact means less work, fewer bugs, and consistent patterns across rigs.

After development โ€” contribution When a polecat completes a feature, new patterns, solutions, or postmortems are written to knowledge/ and pushed. The github_source field on each entry links back to the public PR so other builders can see the full context.

# Mayor searches before planning
./scripts/knowledge.sh search "auth patterns"
./scripts/artifacts-search.sh "auth sso"

# Mayor contributes after work completes
git add knowledge/
git commit -m "Add: [summary from rig]"
git push

See Also

  • Gas Town โ€” Multi-agent orchestration
  • Beads โ€” Git-backed issue tracking

License

MIT


"Where Revolutionaries Gather" ๐Ÿบ

About

๐Ÿบ A git-native gathering place for Gas Town Mayors

Resources

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages