Xpersona
S

summon

CLAWHUB · Unverified

Autonomous orchestrator for manifest work items through the development lifecycle Skill: summon Owner: athola Summary: Autonomous orchestrator for manifest work items through the development lifecycle Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:11:03.953Z | user Release v1.9.19 v1.9.17 | 2026-07-30T05:33:07.507Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:49:52.015Z | user Release v1.9.16 v1.9.15 | 2026-07-04T21:23:09.306Z | user Release v1.9.15 v1.9.14 | 2026-06-30T17:53:52.98

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-egregore-summon
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-egregore-summon/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

144,906 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: summon
description: |
  Autonomous orchestrator for manifest work items through the development lifecycle
version: 1.9.8
triggers:
  - autonomous
  - pipeline
  - orchestrator
  - mission
  - running egregore to process a backlog automatically
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/egregore", "emoji": "\ud83e\udd9e", "requires": {"config": ["night-market.attune:project-brainstorming", "night-market.attune:project-specification", "night-market.attune:project-planning", "night-market.attune:project-execution", "night-market.pensive:code-refinement", "night-market.conserve:bloat-detector", "night-market.sanctum:pr-prep", "night-market.sanctum:pr-review", "night-market.sanctum:commit-messages", "night-market.conserve:clear-context"]}}}
source: claude-night-market
source_plugin: egregore
---

> **Night Market Skill** — ported from [claude-night-market/egregore](https://github.com/athola/claude-night-market/tree/master/plugins/egregore). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


## Table of Contents

- [Overview](#overview)
- [When To Use](#when-to-use)
- [When NOT To Use](#when-not-to-use)
- [Orchestration Loop](#orchestration-loop)
- [Pipeline-to-Skill Mapping](#pipeline-to-skill-mapping)
- [Context Overflow Protocol](#context-overflow-protocol)
- [Token Budget Protocol](#token-budget-protocol)
- [Failure Handling](#failure-handling)
- [Module Reference](#module-reference)

# Summon

## Overview

Summon is the egregore orchestration loop.
It reads the manifest (`.egregore/manifest.json`), selects
the next active work item, maps the current pipeline step to
a specialist skill, and invokes that skill.
After each step it advances the pipeline, checks context and
token budgets, and repeats until all items are completed or
the budget is exhausted.

The orchestrator never re-implements phase logic.
Each pipeline step delegates to an existing skill via
`Skill()` calls.
Summon only manages state transitions, retries, and budget
guards.

## When To Use

- Processing one or more work items through the full
  intake-build-quality-ship pipeline.
- Resuming an interrupted egregore session (manifest already
  exists with active items).
- Running autonomously under a watchdog that relaunches on
  exit.

## When NOT To Use

- Running a single skill in isolation (call the skill
  directly instead).
- Exploratory work where the pipeline does not apply.
- When human review is needed before every step (use manual
  skill invocations).

## Launching the Orchestrator

**Always launch the orchestrator agent in the FOREGROUND.**
Do not use `run_in_background: true`. The main session
becomes the egregore -- it blocks on the orchestrator agent
until the egregore finishes or is dismissed.

```
Agent(
  subagent_type: "egregore:orchestrator",
  prompt: "<context about work items and current state>",
  run_in_background: false   // Required
)
```

If you la

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-egregore-summon",
  "version": "1.9.19",
  "publishedAt": 1787749863953
}

modules/budget.md

---
name: budget
description: Token window management protocol
category: orchestration
---

# Budget Module

Manages token budget windows, detects rate limits, calculates
cooldown periods, and triggers graceful shutdown when limits
are reached.

## Budget Window

An egregore session operates within a budget window (default:
5 hours).
The window tracks cumulative token usage and rate limit
events across multiple sessions.

The budget state is in `.egregore/budget.json`:

```json
{
  "window_type": "5h",
  "window_started_at": "2026-03-04T10:00:00+00:00",
  "estimated_tokens_used": 0,
  "session_count": 1,
  "last_rate_limit_at": null,
  "cooldown_until": null
}
```

## Rate Limit Detection

The orchestrator detects rate limits through two signals:

1. **API error response**: a skill invocation fails with an
   HTTP 429 or a rate-limit error message from the Claude
   API.
2. **Explicit retry-after header**: the error includes a
   retry-after duration in seconds.

When either signal is detected, the orchestrator must stop
work immediately and enter cooldown.

## Cooldown Calculation

The cooldown duration is computed as follows:

```
cooldown_minutes = retry_after_seconds / 60
                 + config.budget.cooldown_padding_minutes
```

The padding (default: 10 minutes) prevents the watchdog from
relaunching too early and hitting the same rate limit again.

If no retry-after header is present, use a default cooldown
of 30 minutes plus padding.

## Rate Limit Recovery

When a rate limit is detected:

1. **Save manifest**: write the current pipeline state to
   `.egregore/manifest.json` so no progress is lost.
2. **Record rate limit**: call
   `budget.record_rate_limit(cooldown_minutes)` to update
   the budget state.
3. **Save budget**: write `.egregore/budget.json` with the
   updated cooldown timestamp.
4. **Alert overseer**: send a notification via the configured
   channel (see `notify.py`) with the rate limit details and
   expected resume time.

### In-Session Recovery (2.1.71+, all providers 2.1.73+)

Use `CronCreate` to schedule a one-shot resume at the
cooldown expiry time. As of 2.1.73, `/loop` and
`CronCreate` are available on Bedrock, Vertex, Foundry,
and with telemetry disabled (previously first-party API
only).

```
CronCreate(
  cron: "<min> <hour> * * *",
  prompt: "Cooldown expired. Read .egregore/manifest.json
    and resume the pipeline. Invoke
    Skill(egregore:summon) to continue.",
  recurring: false
)
```

**Advantages over watchdog restart:**

- Session stays alive: no context loss, no manifest
  re-read overhead, no fresh session startup cost
- Exact timing: fires at cooldown_until instead of
  polling every 5 minutes
- No OS-level setup: works without launchd/systemd

The session remains idle between the rate limit and the
scheduled prompt. When the cron fires, the orchestration
loop resumes with the full conversation context intact.

### Fallback: Exit and Watchdog

If `CronCreate` is unavailable (pre-2.1.71, or
pre-2.

modules/decisions.md

---
name: decisions
description: Autonomous decision-making framework
category: orchestration
---

# Decisions Module

Defines how the egregore orchestrator makes autonomous
decisions, logs them for auditability, and avoids blocking
on ambiguity.

## Decision Principles

The orchestrator follows three core principles when facing
a choice:

### 1. Prefer the simpler option

When two approaches could work, choose the one with fewer
moving parts, fewer dependencies, and less surface area for
failure.
Simpler solutions are easier to review, easier to revert,
and faster to ship.

### 2. Log the rationale

Every decision must be recorded in the manifest with enough
context for a human reviewer to understand why the choice
was made.
The log is the audit trail that makes autonomous operation
trustworthy.

### 3. Never block

The orchestrator must never pause and wait for human input.
If requirements are ambiguous, make the conservative choice
and document the assumption.
A shipped PR with a documented assumption is more useful
than a stalled pipeline waiting for clarification.

## Decision Log Format

Decisions are recorded on the work item via
`manifest.record_decision()`:

```json
{
  "step": "intake/validate",
  "chose": "interpret-as-bug-fix",
  "why": "Issue title says 'fix' and label is 'bug'. Body is ambiguous about scope but the referenced file path narrows it to a single module."
}
```

**Fields:**

- **step**: the pipeline stage/step where the decision was
  made, in `"stage/step"` format.
- **chose**: a short identifier for the chosen option.
  Use kebab-case. Keep it under 40 characters.
- **why**: a one-to-three sentence explanation of the
  reasoning. Reference concrete evidence (labels, file
  paths, word counts, config values).

## When to Record a Decision

Record a decision whenever the orchestrator:

- Skips a step (e.g., brainstorm skip, prioritize skip,
  merge skip).
- Chooses between two valid approaches during a skill
  invocation.
- Interprets ambiguous requirements in a specific way.
- Falls back to a simpler strategy on a retry attempt.
- Ignores a non-blocking warning or lint issue.

Do not record trivial operational facts (e.g., "loaded
manifest successfully").
The decision log is for choices, not events.

## Examples

### Skipping brainstorm for a well-defined issue

```json
{
  "step": "build/brainstorm",
  "chose": "skip-brainstorm",
  "why": "Source is github-issue #42, body has 250 words, labels include 'bug'. Config skip_brainstorm_for_issues is true."
}
```

### Choosing a simpler implementation approach

```json
{
  "step": "build/execute",
  "chose": "inline-helper-over-new-module",
  "why": "The helper function is 15 lines. Creating a separate module would add import overhead and a new test file for minimal reuse benefit."
}
```

### Interpreting ambiguous scope

```json
{
  "step": "intake/validate",
  "chose": "narrow-scope-to-api-layer",
  "why": "Issue mentions both API and CLI but only the API endpoint is refer

modules/intake.md

---
name: intake
description: Work item parsing for prompts and GitHub issues
category: orchestration
---

# Intake Module

Handles the intake stage of the pipeline: parsing work item
sources into validated requirements, creating branches, and
determining whether the brainstorm step can be skipped.

## Source Types

Egregore accepts two source types for work items.

### Prompt Source

A free-text prompt provided directly by the user or by the
`egregore init` command.

**Parsing steps:**

1. Extract the requirement text from the prompt.
2. Identify any explicit constraints (language, framework,
   file paths, performance targets).
3. Generate a slug from the first meaningful phrase for the
   branch name.
4. Create a work item with `source: "prompt"` and
   `source_ref` set to the prompt text (truncated to 200
   characters).

### GitHub Issue Source

A GitHub issue number or URL.

**Parsing steps:**

1. Fetch the issue:
   ```bash
   gh issue view <number> --json title,body,labels,comments
   ```
2. Extract the title as the primary requirement.
3. Extract the body as the detailed specification.
4. Parse labels for metadata (e.g., `bug`, `enhancement`,
   `priority:high`).
5. Scan comments for additional requirements or
   clarifications from maintainers.
6. Create a work item with `source: "github-issue"` and
   `source_ref` set to `"#<number>"`.

## Validation

The validate step checks that parsed requirements are
specific enough to act on.

**A requirement is actionable when it has:**

- A clear description of what needs to change.
- Enough context to identify which files or components are
  involved.
- No open questions that would block implementation.

**When validation fails:**

- For prompts: record a decision explaining what is missing
  and proceed with the best interpretation. Never block
  waiting for human input.
- For issues: check the issue comments for clarifications.
  If still unclear, record a decision and proceed with
  the conservative interpretation.

## Prioritization

The prioritize step orders multiple work items by estimated
complexity.

**Complexity heuristics:**

- **Low**: single-file change, clear fix, no new
  dependencies.
- **Medium**: multi-file change, new function or class, test
  updates needed.
- **High**: new feature spanning multiple modules, new
  dependencies, API changes.

When there is only one work item, skip this step entirely.

When there are multiple items, sort by ascending complexity
so simpler items complete first, building momentum and
reducing the risk of context overflow on the first item.

## Branch Creation

During the parse step, create a git branch for the work
item:

```bash
git checkout -b egregore/wrk-001-slug main
```

The branch name is generated by `manifest.add_work_item()`
using the pattern `egregore/wrk-NNN-slug` where the slug is
derived from the source reference.

If the branch already exists (from a previous interrupted
session), check it out without creating a new one:

```bash

Sponsored

Ads related to summon and adjacent AI workflows.