Skip to main content
The Forge watches signals (git, filesystem, processes, webhooks) and applies rules to automatically manage quests and send notifications. You can also manage forge rules via the Companion chat using create_forge_rule, list_forge_rules, update_forge_rule, run_forge_rule, and delete_forge_rule.

Subcommands

forge create

Interactive wizard to create a new forge rule. Prompts for:
  • Trigger type: cron, signal, webhook, event, manual
  • Trigger config: cron expression, signal source, watched path, process pattern, etc.
  • Action type: queue-quest, log-to-vault, send-notification
  • Action config: questId, activity type, notification channel, etc.

forge list

Lists all forge rules with their trigger, action, enabled status, and last run time.

forge toggle

Select a rule to enable or disable. Disabled rules are skipped during forge ticks.

forge run

Manually trigger a single forge tick. Evaluates all enabled rules against current signals.

forge run-rule

Run a specific forge rule immediately, regardless of its trigger type. Useful for testing without waiting for the next tick.

forge tick

Same as forge run but outputs verbose debug output. Useful for debugging why a rule isn’t firing.

forge daemon

Starts the forge daemon as a foreground process. The daemon runs a tick on the configured interval (default 60s) and listens for real-time signals. For production use, manage the daemon via the gateway command which handles process lifecycle.

Trigger Types

Action Types

Configuration Examples

Cron rule (daily recap notification via Telegram):
Signal rule (auto-log coding session on git commit):
  • Forge Engine: internals and rule evaluation details
  • gateway: manage the gateway server that receives webhooks