Repository navigation
Closed
Description
Summary
Implement a layered configuration system that allows users to customize sequant behavior at multiple levels, similar to Git, npm, and Claude Code.
Motivation
Currently, sequant settings are either hardcoded or passed via CLI flags. Users may want to:
- Set default preferences that persist across runs
- Create custom skills that override or extend package defaults
- Share personal workflow customizations across projects
- Have project-specific settings that differ from their user defaults
Proposed Architecture
Configuration Hierarchy (lowest to highest priority)
Package defaults (node_modules/sequant/templates/)
↓ overridden by
User-level (~/.sequant/ or ~/.config/sequant/)
↓ overridden by
Project-level (.sequant/)
↓ overridden by
CLI flags
Directory Structure
User-level (~/.sequant/ or ~/.config/sequant/):
~/.sequant/
├── settings.json # User default settings
├── skills/ # Custom user skills
│ └── my-custom-qa/
│ └── SKILL.md
└── stacks/ # Custom stack templates (future)
Project-level (.sequant/):
.sequant/
├── settings.json # Project-specific settings
├── skills/ # Project skill overrides (symlinked from .claude/skills/)
└── logs/ # Run logs
Settings Schema
{
"$schema": "https://sequant.dev/schemas/settings.json",
"version": "1.0",
"run": {
"logJson": true,
"logPath": ".sequant/logs",
"phases": ["spec", "exec", "qa"],
"timeout": 300,
"sequential": false,
"qualityLoop": false,
"maxIterations": 3,
"smartTests": true
},
"skills": {
"overrides": {
"qa": "~/.sequant/skills/my-custom-qa"
}
}
}Skill Resolution Order
When invoking /qa:
- Check project
.sequant/skills/qa/(or.claude/skills/qa/) - Check user
~/.sequant/skills/qa/ - Fall back to package
templates/skills/qa/
CLI Integration
sequant config- View merged configurationsequant config --user- View/edit user settingssequant config --project- View/edit project settingssequant config set run.logJson false- Set a valuesequant config get run.timeout- Get a value
Implementation Phases
Phase 1: Project Settings (This PR)
- Create
.sequant/settings.jsonschema - Update
initto generate settings file - Update
updateto preserve settings file - Update
runto read settings - Add
--no-logflag (override forlogJson: truedefault)
Phase 2: User-Level Settings
- Support
~/.sequant/settings.json - Merge user + project settings
- Add
sequant configcommand
Phase 3: Custom Skills
- Support user-level skills directory
- Skill resolution with override order
-
sequant skills listto show active skills and sources
Phase 4: Config Command
-
sequant configfor viewing/editing - JSON schema validation
- Migration support for schema changes
Alternatives Considered
- Environment variables only - Less discoverable, harder to manage
- Single config file - No layering, can't have user defaults
- YAML format - JSON is simpler and matches package.json conventions
Related
- Similar to Claude Code's
.claude/settings.json - Similar to npm's
.npmrclayering - Similar to Git's config hierarchy
Metadata
Metadata
Assignees
Labels
No labels
Activity