Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ For auto-generated release notes, see [GitHub Releases](https://github.com/DataV

### Added

- **Population packs and `althing.population`.** A population pack is a
persona pack whose personas carry structured attributes (`country`).
The bundled `global-respondents` pack has one minimal respondent persona
per country (107 countries). `allocate_population` splits a sample budget
across population members, weighting repeated members, deterministically
per seed; `filter_personas` narrows a pack by attribute.
`althing panel run --population "country=France,Japan"` filters a panel.
`country`, `gender`, and `region` persona attributes are now stated in
the persona system prompt (no bundled pack set them before, so existing
prompts are unchanged). Used by SynthBench's `--persona-pack` option for
GlobalOpinionQA.

- **Subscription CLI providers: `claude-code:<model>` and `codex:<model>`.**
Completions can now run through a locally installed, signed-in Claude
Code (`claude -p`) or Codex (`codex exec`) CLI, drawing on the user's
Expand Down
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ searching for one:
become resolvable by name like a builtin. See [docs/registry.md](docs/registry.md)
for URI forms, verification, offline cache, and the submission flow.

### Builtin persona packs (14, 232 personas total)
### Builtin persona packs (15, 339 personas total)

| Pack | Personas |
|------|----------|
Expand All @@ -793,6 +793,7 @@ searching for one:
| `enterprise-ai-buyers` | 18 |
| `enterprise-buyer` | 15 |
| `general-consumer` | 15 |
| `global-respondents` | 107 (population pack, one per country) |
| `healthcare-patient` | 15 |
| `job-seekers` | 15 |
| `market-research-critics` | 16 |
Expand All @@ -807,6 +808,29 @@ user-saved packs. Picking the right pack for your task?
See [docs/task-recommendations.md](docs/task-recommendations.md) for the
task → pack → model-config matrix with copy/paste commands.

### Population packs

A population pack is a persona pack whose personas carry structured
attributes such as `country`. `global-respondents` has one minimal
respondent persona per country (107 countries, plain names) and no other
demographics.

Narrow a panel to part of the population:

```bash
althing panel run --personas global-respondents --population "country=France,Japan" --instrument survey.yaml
```

Benchmarks use `althing.population.allocate_population` to split a sample
budget across a list of population members. Each member gets an equal
share and a member listed twice gets twice the share, so the pooled
answers match a ground truth that averages over those groups. SynthBench's
`--persona-pack global-respondents` uses this for GlobalOpinionQA, where
each question's target is the average over the countries that answered it.

`country`, `gender`, and `region` attributes are stated in the persona's
system prompt.

### Builtin instrument packs (8, all v3 branching)

`churn-diagnosis`, `feature-prioritization`, `general-survey`,
Expand Down
2 changes: 1 addition & 1 deletion docs/agent-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ them with `--personas-merge` (duplicate names are de-duped, later file wins, and
a warning names every drop):

```bash
althing pack list # 14 bundled packs, with counts
althing pack list # 15 bundled packs, with counts
althing pack export product-research -o pr.yaml # 20 personas
althing pack export broad-professionals -o bp.yaml # 20 personas

Expand Down
5 changes: 3 additions & 2 deletions docs/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ to find one:

- **Builtin packs** ship inside the `althing` wheel. They are resolvable by
name the moment `pip install althing` finishes — no `pack import`, no
network, no registry lookup. The SDK currently bundles **14 persona packs**
(232 personas total: `ai-eval-buyers`, `broad-professionals`, `developer`,
network, no registry lookup. The SDK currently bundles **15 persona packs**
(339 personas total: `ai-eval-buyers`, `broad-professionals`, `developer`,
`enterprise-ai-buyers`, `enterprise-buyer`, `general-consumer`,
`global-respondents`,
`healthcare-patient`, `job-seekers`, `market-research-critics`,
`product-research`, `recruiters-talent`, `skeptical-executives`,
`startup-founder`, `students`) and **8 v3 branching
Expand Down
4 changes: 2 additions & 2 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "io.github.DataViking-Tech/althing",
"title": "Althing",
"description": "Run synthetic focus groups using AI personas. 12 MCP tools for single prompts, full panel runs, and v3 branching (adaptive) instruments across any LLM provider (Claude, OpenAI, Gemini, xAI).",
"version": "1.7.0",
"version": "1.8.0",
"repository": {
"url": "https://github.com/DataViking-Tech/Althing",
"source": "github"
Expand All @@ -14,7 +14,7 @@
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"identifier": "althing",
"version": "1.7.0",
"version": "1.8.0",
"runtimeHint": "uvx",
"runtimeArguments": [
{
Expand Down
6 changes: 3 additions & 3 deletions site/.well-known/mcp/server-card.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"name": "io.github.DataViking-Tech/althing",
"title": "Althing",
"description": "Run synthetic focus groups using AI personas. 12 MCP tools for single prompts, full panel runs, and v3 branching (adaptive) instruments across any LLM provider (Claude, OpenAI, Gemini, xAI).",
"version": "1.7.0",
"version": "1.8.0",
"websiteUrl": "https://althing.dev",
"repository": {
"url": "https://github.com/DataViking-Tech/Althing",
"source": "github"
},
"serverInfo": {
"name": "althing",
"version": "1.7.0"
"version": "1.8.0"
},
"capabilities": {
"tools": { "listChanged": false },
Expand All @@ -23,7 +23,7 @@
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"identifier": "althing",
"version": "1.7.0",
"version": "1.8.0",
"runtimeHint": "uvx",
"runtimeArguments": [
{ "type": "named", "name": "--from", "value": "althing[mcp]" }
Expand Down
6 changes: 3 additions & 3 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"applicationCategory": "DeveloperApplication",
"applicationSubCategory": "Research Tool",
"operatingSystem": "Cross-platform",
"softwareVersion": "1.7.0",
"softwareVersion": "1.8.0",
"dateModified": "",
"license": "https://opensource.org/licenses/MIT",
"codeRepository": "https://github.com/DataViking-Tech/Althing",
Expand Down Expand Up @@ -122,7 +122,7 @@
class="mb-4 inline-flex items-center gap-2 rounded-full border border-emerald-400/30 bg-emerald-400/5 px-3 py-1 text-xs font-medium text-emerald-300"
>
<span class="h-1.5 w-1.5 rounded-full bg-emerald-400"></span>
v1.7.0 — public beta
v1.8.0 — public beta
</p>
<h1
class="bg-gradient-to-br from-white to-slate-400 bg-clip-text font-mono text-5xl font-bold tracking-tight text-transparent sm:text-6xl"
Expand Down Expand Up @@ -916,7 +916,7 @@ <h2 class="mb-2 text-xs font-semibold uppercase tracking-wider text-slate-400">
class="mt-4 flex flex-wrap items-center justify-between gap-3 border-t border-slate-800 py-6 text-xs text-slate-400"
>
<span>
&copy; 2026 DataViking · MIT-licensed · v1.7.0 ·
&copy; 2026 DataViking · MIT-licensed · v1.8.0 ·
<a
href="https://github.com/DataViking-Tech/Althing"
rel="noopener"
Expand Down
2 changes: 1 addition & 1 deletion site/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# althing — Run synthetic focus groups with any LLM

v1.7.0 — public beta
v1.8.0 — public beta

# althing

Expand Down
2 changes: 1 addition & 1 deletion src/althing/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.7.0"
__version__ = "1.8.0"
12 changes: 12 additions & 0 deletions src/althing/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,18 @@ def handle_panel_run(args: argparse.Namespace, fmt: OutputFormat) -> int:
]
personas = merged

# --population narrows the panel to personas matching attribute values
# (population packs such as global-respondents; see althing.population).
population_spec = getattr(args, "population", None)
if population_spec:
from althing.population import PopulationError, filter_personas, parse_population

try:
personas = filter_personas(personas, parse_population(population_spec))
except PopulationError as exc:
print(f"Error: --population: {exc}", file=sys.stderr)
return 1

# synthbench#261 / sy-2ag: when --model was NOT given and the
# auto-resolved default is a known-slow router (openrouter/auto), a
# ≥10-persona panel can hang for many minutes. Swap the default for a
Expand Down
10 changes: 10 additions & 0 deletions src/althing/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@ def build_parser() -> argparse.ArgumentParser:
"case the original personas path is recovered from the checkpoint."
),
)
panel_run_parser.add_argument(
"--population",
default=None,
metavar="KEY=VALUES",
help=(
"Keep only personas whose attributes match, e.g. "
"'country=France,Japan' or 'country=Brazil;gender=female'. "
"Use with a population pack such as global-respondents."
),
)
panel_run_parser.add_argument(
"--personas-merge",
dest="personas_merge",
Expand Down
Loading
Loading