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.
| 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 |
| 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) |
| 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.
# 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 pushFull 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 boardIf 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/barkeepThe 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.
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 beadRally Tavern includes TCEP (Tavern Component Exchange Protocol) โ a reusable component system with trust levels, capability matching, fingerprinting, and token-savings scoring.
| 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 |
./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 searchSee CONTRIBUTING-ARTIFACTS.md for full artifact guidelines and REGISTRY.md for the component index.
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 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 itSee profiles/ for examples and templates/tavern-profile.yaml for the schema.
| 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.
./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"| 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./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./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| Level | Meaning |
|---|---|
| ๐ด Experimental | Created, no review needed |
| ๐ก Community | Used in 2+ projects, passing tests, accurate metadata |
| ๐ข Verified | Community + human overseer review, measured token savings |
./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 flaggedArtifacts 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 rigsFederation 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.
./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 (๐บ๐บ๐บ)| Rank | Icon | Requirement |
|---|---|---|
| Newcomer | ๐ช | Just arrived |
| Regular | ๐บ | 5+ contributions |
| Trusted | โญ | 15+ contributions |
| Innkeeper | ๐ | 30+ contributions |
| Tavern Master | ๐ | Legendary |
./scripts/health.sh # Health check
./scripts/stats.sh summary # Quick stats
./scripts/stats.sh contributors # Top contributors
./scripts/stats.sh activity # Recent activityrally-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
| 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 this repo, then:
./scripts/init-tavern.shThis sets you up as the first Sheriff and cleans example content.
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 pushMIT
"Where Revolutionaries Gather" ๐บ