gnosys_preference_set
Save or replace a user preference across projects and return its key, title, and value, enabling agents to persist conventions as user-scoped memories for reuse.
Instructions
Save or replace a user preference across projects, returning its key, title, and value. Use kebab-case keys, e.g. {"key":"code-style","value":"Use named exports"}; title is generated from the key if omitted. Preferences persist as user-scoped memories; the CLI command gnosys sync refreshes generated rules files. Use gnosys_preference_get instead to inspect a key or list preferences.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Preference key, kebab-case. Examples: 'commit-convention', 'code-style', 'llm-provider', 'testing-approach', 'naming-convention' | |
| tags | No | Optional tags for discovery. | |
| title | No | Human-readable title. Auto-generated from key if omitted. | |
| value | Yes | The preference value. Can be a sentence or paragraph describing the convention. | |
| projectRoot | No | Project root path; routes the call to that project's store. |