mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 20:04:55 +00:00
Update README: document project-specific settings, add SettingsManager to SDK list
This commit is contained in:
parent
5d290f048e
commit
e5f74a1ad9
1 changed files with 10 additions and 2 deletions
|
|
@ -652,7 +652,14 @@ export default factory;
|
||||||
|
|
||||||
### Settings File
|
### Settings File
|
||||||
|
|
||||||
`~/.pi/agent/settings.json` stores persistent preferences:
|
Settings are loaded from two locations and merged:
|
||||||
|
|
||||||
|
1. **Global:** `~/.pi/agent/settings.json` - user preferences
|
||||||
|
2. **Project:** `<cwd>/.pi/settings.json` - project-specific overrides (version control friendly)
|
||||||
|
|
||||||
|
Project settings override global settings. For nested objects, individual keys merge.
|
||||||
|
|
||||||
|
Global `~/.pi/agent/settings.json` stores persistent preferences:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|
@ -847,7 +854,8 @@ The SDK provides full control over:
|
||||||
- Tools (built-in subsets, custom tools)
|
- Tools (built-in subsets, custom tools)
|
||||||
- Hooks (inline or discovered)
|
- Hooks (inline or discovered)
|
||||||
- Skills, context files, slash commands
|
- Skills, context files, slash commands
|
||||||
- Session persistence
|
- Session persistence (`SessionManager`)
|
||||||
|
- Settings (`SettingsManager`)
|
||||||
- API key resolution and OAuth
|
- API key resolution and OAuth
|
||||||
|
|
||||||
**Philosophy:** "Omit to discover, provide to override." Omit an option and pi discovers from standard locations. Provide an option and your value is used.
|
**Philosophy:** "Omit to discover, provide to override." Omit an option and pi discovers from standard locations. Provide an option and your value is used.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue