Configuration
Configure Knowns project settings and generated artifacts.
Configuration
Knowns stores project configuration in .knowns/config.json.
This file describes what the project wants Knowns to manage locally, including platform integrations, semantic search settings, and generated artifact behavior.
Example
{
"name": "my-project",
"settings": {
"gitTrackingMode": "git-tracked",
"gitTracking": {
"tasks": true,
"docs": true,
"templates": true,
"memories": false
},
"semanticSearch": {
"enabled": true,
"model": "multilingual-e5-small",
"provider": "local",
"dimensions": 384
},
"platforms": [
"claude-code",
"opencode",
"codex",
"kiro",
"antigravity",
"cursor",
"gemini",
"copilot",
"agents"
],
"lsp": {
"enabled": true
}
}
}
Important settings
name
The project name shown in Knowns surfaces.
settings.gitTrackingMode
Controls how Knowns manages Git-related generated content.
Supported values:
git-trackedgit-ignorednone
Behavior:
git-tracked: keep.knowns/content tracked in Gitgit-ignored: keep config/docs/templates tracked while leaving some local data out of Git depending on generated ignore rulesnone: do not let Knowns manage.gitignore
settings.gitTracking
Per-section git tracking toggles. Controls which .knowns/ subdirectories are included or excluded in .gitignore.
| Field | Default | Description |
|---|---|---|
tasks | true | Track task markdown files |
docs | true | Track documentation files |
templates | true | Track code generation templates |
memories | false | Track AI memory entries |
settings.semanticSearch
Controls local semantic search.
Relevant fields:
enabledmodelprovider("local","ollama", or a provider ID registered withknowns provider add)dimensions
Common behavior:
knowns initcan set these valuesknowns settingsshows supported Local ONNX models with downloaded/not downloaded status- Selecting a missing Local ONNX model in
knowns settingsasks before downloading and saving it knowns provider addandknowns model add --provider <id> <model-name>configure API-backed embedding modelsknowns synccan re-apply the semantic setupknowns search --reindexrebuilds the local index
settings.lsp
Controls LSP-based code intelligence.
enabled: whether LSP servers are started for code navigation
settings.platforms
Declares which platform integrations Knowns should manage.
Supported values:
claude-codeopencodecodexkiroantigravitycursorgeminicopilotagents
This setting affects what knowns setup, knowns sync, and knowns update create or refresh.
Examples of managed artifacts:
- instruction files
- skills
- MCP config
- runtime hooks
- platform-specific config files
settings.enableChatUI
Controls whether the browser UI exposes the chat-oriented experience.
settings.autoSyncOnUpdate
Controls whether generated artifacts should be refreshed after upgrading the CLI.
Practical rules
When to edit config manually
You can edit .knowns/config.json directly if you know what you are doing, but the normal path is:
knowns initfor first-time setup (project structure + git tracking)knowns initalso creates selected lightweight project instruction shims such asCLAUDE.mdandAGENTS.mdknowns setup <target> --globalfor normal personal AI platform integrations such as MCP/config files, skills, and runtime hooksknowns setup <target>only when you intentionally want repo-local integration filesknowns setup agentswhen you only need repo-local agent shimsknowns settingsfor the interactive project settings centerknowns settings --globalfor defaults reused by futureknowns initrunsknowns config get/set/list/resetfor scriptable config accessknowns syncto re-apply config to the current machine
Settings and config shorthands
# Interactive project settings UI
knowns settings
# Shows:
# Project
# Git Tracking
# AI Platforms
# Search
# Code Intelligence
# Browser / Chat UI
# Maintenance
# Done
# Defaults for future projects
knowns settings --global
# Or set directly via the scriptable config API
knowns config set embedding true # Enable semantic search
knowns config set lsp true # Enable LSP globally
knowns config set lsp.go true # Enable LSP for Go
knowns config set enableChatUI true # Enable chat UI
# Git Tracking (per-section)
knowns config set gitTracking.tasks true
knowns config set gitTracking.memories false
Changing gitTracking.* toggles automatically regenerates .gitignore.
Interactive knowns init needs a terminal at least 90 columns wide. If the terminal is too small, Knowns prints resize and --no-wizard guidance and stops without initializing by defaults.
When to use knowns sync
Use knowns sync after:
- cloning a repo with existing
.knowns/ - updating the CLI
- wanting to restore generated artifacts to match config
Platform-related compatibility
Current skills mapping:
.claude/skills-> Claude Code.agents/skills-> OpenCode, Codex, Antigravity, Generic Agents.kiro/skills-> Kiro
Related commands
knowns init
knowns setup
knowns settings
knowns sync
knowns config set <key> <value>
knowns config get <key>
knowns model list
knowns model download multilingual-e5-small
knowns search --status-check
knowns search --reindex
Cấu hình
Knowns lưu project config trong .knowns/config.json.
File này khai báo những gì Knowns cần quản lý locally: platform integrations, semantic search, generated artifacts.
Ví dụ
{
"name": "my-project",
"settings": {
"gitTrackingMode": "git-tracked",
"gitTracking": {
"tasks": true,
"docs": true,
"templates": true,
"memories": false
},
"semanticSearch": {
"enabled": true,
"model": "multilingual-e5-small",
"provider": "local",
"dimensions": 384
},
"platforms": [
"claude-code",
"opencode",
"codex",
"kiro",
"antigravity",
"cursor",
"gemini",
"copilot",
"agents"
],
"lsp": {
"enabled": true
}
}
}
Các setting quan trọng
name
Tên project hiển thị trong Knowns.
settings.gitTrackingMode
git-tracked—.knowns/content tracked trong Gitgit-ignored— config/docs/templates tracked, local data thì khôngnone— Knowns không quản lý.gitignore
settings.gitTracking
Per-section git tracking toggles. Kiểm soát subdirectories nào trong .knowns/ được include/exclude trong .gitignore.
| Field | Default | Mô tả |
|---|---|---|
tasks | true | Track task markdown files |
docs | true | Track documentation files |
templates | true | Track code generation templates |
memories | false | Track AI memory entries |
settings.semanticSearch
Config cho semantic search: enabled, model, provider, dimensions.
provider có thể là local, ollama, hoặc provider ID đã đăng ký bằng knowns provider add.
knowns initset các giá trị nàyknowns settingshiển thị Local ONNX models kèm trạng thái downloaded/not downloaded- Nếu chọn Local ONNX model chưa download trong
knowns settings, Knowns hỏi xác nhận rồi download trước khi lưu knowns provider addvàknowns model add --provider <id> <model-name>cấu hình API-backed embedding modelsknowns syncre-apply semantic setupknowns search --reindexrebuild local index
settings.lsp
Config cho LSP-based code intelligence.
enabled: bật/tắt LSP servers cho code navigation
settings.platforms
Khai báo platform integrations cần quản lý.
Supported: claude-code, opencode, codex, kiro, antigravity, cursor, gemini, copilot, agents.
Ảnh hưởng tới những gì setup, sync, update tạo hoặc refresh: instruction files, skills, MCP config, runtime hooks, platform-specific config.
Khi nào edit config trực tiếp?
Có thể edit .knowns/config.json trực tiếp, nhưng flow thường là:
knowns initcho lần đầu (project structure + git tracking)knowns initcũng tạo selected lightweight project instruction shims nhưCLAUDE.mdvàAGENTS.mdknowns setup <target> --globalcho personal AI platform integrations thông thường như MCP/config files, skills, runtime hooksknowns setup <target>chỉ khi bạn chủ ý muốn repo-local integration filesknowns setup agentskhi chỉ cần repo-local agent shimsknowns settingsđể mở settings center tương tác cho project hiện tạiknowns settings --globalđể lưu defaults dùng lại cho các lầnknowns initsauknowns config get/set/list/resetcho script hoặc agentknowns syncđể re-apply config
Settings và config shorthands
# Interactive project settings UI
knowns settings
# Hiển thị:
# Project
# Git Tracking
# AI Platforms
# Search
# Code Intelligence
# Browser / Chat UI
# Maintenance
# Done
# Defaults cho project mới
knowns settings --global
# Hoặc set trực tiếp qua config API
knowns config set embedding true # Bật semantic search
knowns config set lsp true # Bật LSP toàn cục
knowns config set lsp.go true # Bật LSP cho Go
knowns config set enableChatUI true # Bật chat UI
# Git Tracking (per-section)
knowns config set gitTracking.tasks true
knowns config set gitTracking.memories false
Thay đổi gitTracking.* sẽ tự động regenerate .gitignore.
Interactive knowns init cần terminal rộng tối thiểu 90 cột. Nếu terminal quá nhỏ, Knowns hiển thị hướng dẫn resize hoặc dùng knowns init --no-wizard, rồi dừng mà không tự init bằng defaults.