Skip to content

rawr-ai/rawr-hq-template

Repository files navigation

RAWR HQ-Template

RAWR HQ-Template is the canonical upstream template for building local-first AI headquarters with a single CLI entrypoint (rawr).

This template is designed to be used in two roles:

  • RAWR HQ-Template: shared baseline and upstream for core CLI + architecture.
  • RAWR HQ: your personal repo created from this template, where you customize and diverge.

Quickstart

bun install
bun run test
# Optional quick lanes (skip pretest build)
bun run test:quick
bun run test:web

Narsil Code Intel

This repo should use a dedicated narsil-mcp instance as its primary code-intel MCP server.

  • Give rawr-hq-template its own Narsil instance instead of folding it into an unrelated shared domain index.
  • Keep the Narsil index outside the repo; do not commit generated cache or index state.
  • Prefer the persistent daemon model with --persist --git --call-graph --watch --neural.
  • Verify the repo is present in list_repos, then use Narsil tools such as hybrid_search, find_symbols, find_references, and find_call_path.

Recommended local flow:

# start a dedicated instance for this repo
narsil-mcp --repos . --git --call-graph --persist --watch --neural

Then verify from your MCP client or HTTP transport by confirming the repo appears in list_repos, then running a search such as hybrid_search or find_symbols.

Nx Graph and Skills

Use the Nx CLI first for workspace graph, routing, generator, and target questions.

If your downstream agent environment installs the official Nx skills, use them as a companion to the CLI rather than as a repo-local source of truth in this template.

Use the Nx CLI first for most workspace graph and target questions:

bunx nx show projects
bunx nx show project @rawr/server --json
bunx nx graph
  • Keep Narsil as the primary code-intel MCP for symbol search, references, and call-path work.
  • Do not add repo-local .mcp.json here.
  • Do not treat this template repo as the canonical source for managed global Nx skill installation.
  • Nx MCP is intentionally out of scope for the current repo posture. If we bring it back later, it should be as a hosted/managed service rather than per-client local stdio wiring.
  • For the integrated agent workflow, see docs/process/NX_AGENT_WORKFLOW.md.

Core vs Extensions

  • Core lives in this template (apps/cli, packages/core, packages/control-plane, packages/state, packages/security, packages/journal).
  • Template plugins are fixture/example baseline artifacts.
  • Operational plugin authoring should usually happen in personal RAWR HQ.

Two plugin channels are intentionally separate:

  • Channel A: external oclif plugins (rawr plugins install|link|update|...).
  • Channel B: RAWR HQ workspace runtime plugins (rawr plugins web list|enable|disable|status).

Local-Only vs Connected

  • Local-only (default): build and run everything from your repo without a registry dependency.
  • Connected (opt-in): install external CLI plugins from npm/GitHub and sync from upstream template.

Contribution Boundaries

  • Core changes intended for all users should go upstream to RAWR HQ-Template.
  • Personal/project-specific behavior should stay in RAWR HQ plugins unless intentionally promoted.
  • CLI publishing ownership remains template-only.

Agent Routing

Operational Runbooks

Canonical Docs

About

RAWR: local-first AI HQ monorepo template (Bun + oclif + turbo + server + web)

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors