Configuration
Configure Knowns CLI for your project
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.
| Value | Behavior |
|---|---|
git-tracked | Keep .knowns/ content tracked in Git |
git-ignored | Keep config/docs/templates tracked while leaving some local data out of Git |
none | 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 |
Set via CLI:
knowns config set gitTracking.tasks true
knowns config set gitTracking.memories false
Changing these toggles automatically regenerates .gitignore.
settings.semanticSearch
Controls local semantic search.
| Field | Description |
|---|---|
enabled | Enable/disable semantic search |
model | Model ID (e.g., multilingual-e5-small) |
provider | "local" or "ollama" |
dimensions | Embedding dimensions |
settings.lsp
Controls LSP-based code intelligence.
| Field | Description |
|---|---|
enabled | Whether LSP servers are started for code navigation |
knowns config set lsp true # Enable LSP globally
knowns config set lsp.go true # Enable LSP for Go
settings.platforms
Declares which platform integrations Knowns should manage.
Supported values: claude-code, opencode, codex, kiro, antigravity, cursor, gemini, copilot, agents.
This setting affects what knowns setup, knowns sync, and knowns update create or refresh: 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.
Project Structure
After knowns init, your project contains:
.knowns/
├── config.json # Project configuration
├── tasks/ # Task markdown files
│ ├── task-1 - First Task.md
│ └── task-2 - Second Task.md
└── docs/ # Documentation
├── patterns/
├── architecture/
└── guides/
Task Files
Each task is a markdown file with frontmatter:
---
id: "42"
title: "Add authentication"
status: "in-progress"
priority: "high"
assignee: "@john"
labels: ["feature", "auth"]
createdAt: "2025-01-15T10:00:00Z"
updatedAt: "2025-01-15T14:30:00Z"
---
## Description
Implement JWT authentication...
## Acceptance Criteria
- [x] User can login
- [ ] JWT token returned
## Implementation Plan
1. Research patterns
2. Implement
## Implementation Notes
Completed login endpoint.
Document Files
Each document is a markdown file with frontmatter:
---
title: "Auth Pattern"
description: "JWT authentication pattern"
tags: ["patterns", "security"]
createdAt: "2025-01-10T09:00:00Z"
updatedAt: "2025-01-12T16:00:00Z"
---
# Auth Pattern
This document describes our authentication pattern...
Git Tracking Modes
Choose during knowns init:
| Mode | Description | Use Case |
|---|---|---|
git-tracked | Track all .knowns/ files in git (default) | Teams sharing tasks/docs |
git-ignored | Track only docs, ignore tasks/config | Personal use without task noise |
none | No gitignore changes, user manages manually | Custom setups |
Granular toggles (settings.gitTracking) act as overrides within the selected mode. Existing git-tracked, git-ignored, and none modes still work — the per-section toggles provide finer control.
Configuration Commands
# Interactive feature toggle UI
knowns config toggle
# Get a config value
knowns config get defaultAssignee --plain
# Set a config value
knowns config set defaultAssignee "@john"
# Set feature toggles
knowns config set embedding true
knowns config set lsp true
knowns config set enableChatUI true
# List all config
knowns config list
AI Platform Setup
AI integration files are generated via knowns setup, not during knowns init:
knowns setup # Interactive platform selector
knowns setup claude # Claude Code: CLAUDE.md, .mcp.json, skills, hooks
knowns setup opencode # OpenCode: OPENCODE.md, opencode.json, skills, hooks
knowns setup kiro # Kiro: .kiro steering/settings, skills, hooks
knowns setup copilot # GitHub Copilot: .github/copilot-instructions.md
knowns setup all # All supported platforms
Managed artifacts per platform:
| Platform | Skills | MCP/config | Runtime hooks |
|---|---|---|---|
| Claude Code | .claude/skills | .mcp.json | yes |
| OpenCode | .agents/skills | opencode.json | plugin/runtime |
| Codex | .agents/skills | .codex/config.toml | hooks |
| Kiro | .kiro/skills | .kiro/settings/mcp.json | hooks |
| Antigravity | .agents/skills | ~/.gemini/antigravity/mcp_config.json | rules + global config |
| Cursor | none | .cursor/mcp.json | no |
| Gemini CLI | none | platform-managed/global | no |
| GitHub Copilot | instruction only | no | no |
| Generic agents | .agents/skills | no | no |
Environment Variables
| Variable | Description |
|---|---|
KNOWNS_PORT | Default port for knowns browser |
Machine-Level Runtime State
Global runtime state lives under ~/.knowns/:
- Install metadata for script-managed installs
- Runtime logs and process state
- Shared runtime coordination data used by background indexing and update flows
This machine-level state is separate from each project's own .knowns/ folder.
Defaults
| Setting | Default |
|---|---|
| Web UI port | 6420 |
| Task priority | medium |
| Task status | todo |
Related Commands
knowns init # First-time project setup
knowns setup # AI platform integrations
knowns sync # Re-apply config to current machine
knowns config set <key> <value> # Toggle features
knowns config get <key> # Read config value
knowns model list # Available embedding models
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
| Giá trị | Hành vi |
|---|---|
git-tracked | .knowns/ content tracked trong Git |
git-ignored | config/docs/templates tracked, local data thì không |
none | Knowns không quản lý .gitignore |
settings.gitTracking
Toggle git tracking theo từng section. Kiểm soát subdirectory 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 |
Set qua CLI:
knowns config set gitTracking.tasks true
knowns config set gitTracking.memories false
Thay đổi toggle sẽ tự động regenerate .gitignore.
settings.semanticSearch
Config cho local semantic search.
| Field | Mô tả |
|---|---|
enabled | Bật/tắt semantic search |
model | Model ID (vd: multilingual-e5-small) |
provider | "local" hoặc "ollama" |
dimensions | Embedding dimensions |
settings.lsp
Điều khiển LSP-based code intelligence.
| Field | Mô tả |
|---|---|
enabled | Có start LSP servers cho code navigation không |
knowns config set lsp true # Bật LSP globally
knowns config set lsp.go true # Bật LSP cho Go
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ì knowns setup, knowns sync, knowns update tạo hoặc refresh: instruction files, skills, MCP config, runtime hooks, platform-specific config.
settings.enableChatUI
Bật/tắt chat experience trong Web UI.
settings.autoSyncOnUpdate
Tự động refresh generated artifacts sau khi upgrade CLI.
Config commands
# Interactive feature toggle UI
knowns config toggle
# Get/set config
knowns config get defaultAssignee --plain
knowns config set defaultAssignee "@john"
# Feature toggles
knowns config set embedding true
knowns config set lsp true
knowns config set enableChatUI true
# List all
knowns config list
AI Platform Setup
AI integration files được tạo qua knowns setup, không phải trong knowns init:
knowns setup # Interactive platform selector
knowns setup claude # Claude Code: CLAUDE.md, .mcp.json, skills, hooks
knowns setup opencode # OpenCode: OPENCODE.md, opencode.json, skills, hooks
knowns setup kiro # Kiro: .kiro steering/settings, skills, hooks
knowns setup copilot # GitHub Copilot: .github/copilot-instructions.md
knowns setup all # Tất cả platforms
Platform mapping:
| Platform | Skills | MCP/config | Runtime hooks |
|---|---|---|---|
| Claude Code | .claude/skills | .mcp.json | yes |
| OpenCode | .agents/skills | opencode.json | plugin/runtime |
| Codex | .agents/skills | .codex/config.toml | hooks |
| Kiro | .kiro/skills | .kiro/settings/mcp.json | hooks |
| Antigravity | .agents/skills | ~/.gemini/antigravity/mcp_config.json | rules + global config |
| Cursor | none | .cursor/mcp.json | no |
| Gemini CLI | none | platform-managed/global | no |
| GitHub Copilot | instruction only | no | no |
| Generic agents | .agents/skills | no | no |
Lệnh liên quan
knowns init # First-time project setup
knowns setup # AI platform integrations
knowns sync # Re-apply config
knowns config set <key> <value> # Toggle features
knowns config get <key> # Đọc config value
knowns model list
knowns model download multilingual-e5-small
knowns search --status-check
knowns search --reindex