Chorus
view release on metacpan or search on metacpan
agent/skills/chorus-create-project.md view on Meta::CPAN
> 3. An existing `projet-*.json` file in `$SANDBOX/` â reference format
>
> â **Never read** `Helpers.pm`, `Feed.pm`, `Agent/*.pm`, `Expert.pm`, `run.pl`
> to create a project. These files are derived from the org KBs â the canonical
> source is always the org KB.
---
## Phase 0 â Read the KB (single source)
### 0.0 Sandbox inventory (first tool call â token keepalive)
**Before reading any file**, read the directory tree $SANDBOX/` immediately.
This serves two purposes:
1. Acquires the full sandbox structure early (agents list, rules dirs, existing JSON files)
2. Ensures at least one tool call happens before any long reading+thinking cycle,
keeping the IDE token active from the very start.
Use this inventory to:
- Confirm the list of `<slug>.org` files to read in 0.2
- Detect any existing `projet-*.json` file (for Phase 0.3)
- Know which `rules/<slug>/` directories exist (for the keepalive calls in 0.2)
### 0.1 Pipeline index
Read `$SANDBOX/agent/chorus/index.org`:
- Perl namespace of the project
- Ordered list of agents (slug, module, pos)
- Global slot dictionary (if present)
### 0.2 KB of each agent
agent/skills/chorus-create-project.md view on Meta::CPAN
> its own session and token â no timeout risk from extended thinking between files.
>
> `--strategy <slug>`: **single-file mode** â the current agent generates exactly one
> targeted file directly (same workflow as a sub-agent). Use when running one
> strategy at a time manually, or when resuming a failed `--batch`.
### 6.1 `--batch` â Orchestrator workflow
#### Step 1 â Run Phases 0+1
Run Phase 0 in full (inventory + KB reading + keepalives) and Phase 1 (coverage table).
Do NOT generate any JSON here â stop after the coverage table is built.
#### Step 2 â Build the compact KB summary
Distil the KB into a self-contained block (⤠60 lines).
This is the **only** KB context passed to sub-agents â do NOT pass raw org file content.
```
SANDBOX: <absolute path>
NAMESPACE: <Perl namespace>
agent/skills/chorus-import-project.md view on Meta::CPAN
# â produces /tmp/<basename>.pdf â feed to PDF hybrid pipeline above
```
If LibreOffice is absent â ask the engineer to provide copy-pasted content (Case A).
Never block the workflow over a missing tool â offer the inline alternative.
---
## Phase 1 â Read the KB (canonical terminology)
### 1.0 Sandbox inventory (first tool call â token keepalive)
**Before reading any file**, read the directory tree $SANDBOX/ immediately.
This serves two purposes:
1. Acquires the full sandbox structure early (agents list, rules dirs, existing JSON/report files)
2. Ensures at least one tool call happens before any long reading+thinking cycle,
keeping the IDE token active from the very start.
Use this inventory to:
- Confirm the list of `<slug>.org` files to read in 1.2
- Know which `rules/<slug>/` directories exist (for the keepalive calls in 1.2)
- Detect `$SANDBOX/agent/thesaurus.org` if present (for 1.2b â highest priority source)
- Detect any existing `import-report-*.org` files (for 1.3 â secondary memory)
### 1.1 Pipeline Index
Read `$SANDBOX/agent/chorus/index.org`:
- Namespace + agent list (slug, pos)
- Global slot dictionary (if present in the index)
### 1.2 Per-agent terminology
agent/skills/chorus-import-project.md view on Meta::CPAN
secondary memory source â complementary to the thesaurus, not a substitute.
- Retrieve mappings not yet promoted to the thesaurus â reapply without asking
- Retrieve pending questions not yet in thesaurus â re-raise if the same terms reappear
- **Skip any entry already covered by thesaurus.org** (1.2b takes priority)
---
## Phase 2 â Raw Inventory of Project Elements
### Keepalive checkpoint (token refresh before long thinking phases)
**Before starting the inventory**, if the source is a filesystem file, call:
```bash
wc -l "<fichier-source-extrait>"
```
or, if working from inline/already-extracted text, read the directoy tree $SANDBOX/agent/
to confirm the report directory.
> **Why:** Phases 2, 3 and 4 are pure thinking phases with no tool calls.
> On a complex project (many element types, many ambiguous terms), the combined
( run in 2.459 seconds using v1.01-cache-2.11-cpan-14f38c9f855 )