deepseek-ai/deepseek-harness · error · UnknownPresetError
agent-presets: preset "${presetId}" not found (available: ${
Error message
agent-presets: preset "${presetId}" not found (available: ${available.join(', ') || 'none'}) What it means
Error "agent-presets: preset "${presetId}" not found (available: ${available.join(', ') || 'none'})" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/preset/agent-presets/src/index.ts:218
return await discoverPresets(this.resolvedRoots)
}
/**
* Resolve one preset by id.
*
* A broken preset resolves — deleting one, reading one, and reporting one
* all need the row — and the mounting paths refuse it AFTER resolution
* through {@link resolveMountable}.
* @param id - the preset id, or `undefined` for {@link defaultId}.
* @returns the resolved preset.
* @throws when no configured root supplies that id.
*/
async resolve(id?: string): Promise<AgentPreset> {
const wanted = id ?? this.defaultId
const presets = await this.list()
const found = presets.find(preset => preset.id === wanted)
if (found === undefined) {
throw new UnknownPresetError(wanted, presets.map(preset => preset.id))
}
return found
}
/**
* Resolve one preset that is about to compose an agent, refusing a broken
* one with its discovery-reported reason. Failing here rather than inside
* the loader keeps the answer the same for every unloadable shape — ghost
* directory, unparsable YAML, rowless list — and spends no mount attempt
* on a composition discovery already read as unusable.
* @param id - the preset id, or `undefined` for {@link defaultId}.
* @returns the resolved, mountable preset.
* @throws when the preset is unknown or discovery reports it broken.
*/
private async resolveMountable(id?: string): Promise<AgentPreset> {
const preset = await this.resolve(id)
if (preset.broken !== undefined) {
throw new PresetMountError(preset.id, preset.broken)View on GitHub (pinned to b150a551b8)
Solutions
- Use one of the listed available preset ids.
When it happens
Trigger: Thrown at packages/preset/agent-presets/src/index.ts:218 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/b27a127b265d8a27.
Report an issue: GitHub.