Quick Start
Initialize a Knowns project and run the first workflow.
Quick Start
This is the fastest path to a working Knowns project. By the end, your repository will have Knowns project state, one task, one doc, working validation, and a Web UI you can open again later.
Run these commands from the repository you want Knowns to manage.
1. Initialize the project
knowns init
# or, without a global install:
npx knowns init
The init flow configures:
- project name
- git tracking mode (with per-section toggles)
- lightweight project instruction shims such as
CLAUDE.mdandAGENTS.md - semantic search
- embedding model
knowns init creates the local Knowns project store and lightweight compatibility shims. Runtime-critical AI guidance comes from MCP initial and on-demand help, so those files should stay small. AI platform integrations such as MCP configs, skills, and runtime hooks are configured separately with knowns setup <target> --global for user-level setup, or knowns setup <target> when you intentionally want repo-local integration files.
2. Create a task
knowns task create "Setup project" -d "Initialize project with Knowns"
Tasks are the main unit of planned work. They give both people and AI assistants a concrete target.
3. Create a document
knowns doc create "Architecture" -d "System overview" -f architecture
Docs hold durable project knowledge. They are better than repeating the same context in every AI chat.
4. Check the project
knowns search "architecture" --plain
knowns validate --plain
Search confirms retrieval can find project context. Validate checks the Knowns project structure before you build more workflow on top of it.
5. Open the Web UI
knowns browser --open
The Web UI shows the same project state as the CLI, including tasks, docs, graph views, config, and chat workflows.
6. Optional: connect your AI platform
Use setup for the platform you actually use:
knowns setup codex --global
knowns setup claude --global
knowns setup agents
Use --global for your normal personal assistant setup so Knowns updates user-level MCP config, skills, and runtime hooks across repositories. Use knowns setup agents when you only need repo-local compatibility shims such as AGENTS.md.
After setup, agent workflows can use the lightweight shim files, MCP config, and skills for that platform. Claude uses /kn-* skill commands; Codex uses $kn-* skill commands.
See Platforms for supported setup targets.
7. Sync generated artifacts when needed
knowns sync
knowns update
Use knowns sync after cloning, after changing selected platforms, or after updating the CLI. Use knowns update when you want Knowns to refresh generated project artifacts to the current CLI behavior.
8. Open the Web UI again later
knowns browser --open
What you have now
- a Knowns project initialized in this repository
- lightweight compatibility shims for agents
- one task and one doc to prove the project model works
- a way to search, validate, and browse project context
Related
Quick start
Cách nhanh nhất để có một project Knowns chạy được. Sau trang này, repository của bạn sẽ có Knowns project state, một task, một doc, validation chạy được, và Web UI có thể mở lại sau.
Chạy các command này từ repository bạn muốn Knowns quản lý.
1. Init project
knowns init
# hoặc không cài global:
npx knowns init
Init wizard cho phép cấu hình:
- tên project
- git tracking mode (với per-section toggles)
- lightweight project instruction shims như
CLAUDE.mdvàAGENTS.md - semantic search
- embedding model
knowns init tạo local Knowns project store và lightweight compatibility shims. Runtime-critical AI guidance nằm trong MCP initial và on-demand help, nên các file này nên nhỏ gọn. AI platform integrations như MCP configs, skills, runtime hooks được cấu hình riêng bằng knowns setup <target> --global cho user-level setup, hoặc knowns setup <target> khi bạn chủ ý muốn repo-local integration files.
2. Tạo task
knowns task create "Setup project" -d "Init project với Knowns"
Task là đơn vị work chính. Nó cho cả người và AI assistant một mục tiêu cụ thể.
3. Tạo doc
knowns doc create "Architecture" -d "Tổng quan hệ thống" -f architecture
Doc lưu project knowledge bền vững. Doc tốt hơn việc phải lặp lại cùng context trong từng AI chat.
4. Kiểm tra project
knowns search "architecture" --plain
knowns validate --plain
Search xác nhận retrieval tìm được project context. Validate kiểm tra cấu trúc Knowns project trước khi bạn xây workflow nhiều hơn lên trên nó.
5. Mở Web UI
knowns browser --open
Web UI hiển thị cùng project state với CLI, gồm task, doc, graph views, config, và chat workflows.
6. Tùy chọn: kết nối AI platform
Dùng setup cho platform bạn thật sự dùng:
knowns setup codex --global
knowns setup claude --global
knowns setup agents
Dùng --global cho personal assistant setup thông thường để Knowns update user-level MCP config, skills, và runtime hooks trên nhiều repository. Dùng knowns setup agents khi chỉ cần repo-local compatibility shims như AGENTS.md.
Sau setup, agent workflows có thể dùng lightweight shim files, MCP config, và skill cho platform đó. Claude dùng skill command dạng /kn-*; Codex dùng skill command dạng $kn-*.
Xem Platforms để biết các setup target được hỗ trợ.
7. Sync khi cần
knowns sync
knowns update
Chạy knowns sync sau khi clone repo, đổi selected platforms, hoặc update CLI. Dùng knowns update khi muốn Knowns refresh generated project artifacts theo behavior hiện tại của CLI.
8. Mở lại Web UI
knowns browser --open
Bây giờ bạn đã có gì?
- một Knowns project đã init trong repository này
- lightweight compatibility shims cho agent
- một task và một doc để kiểm tra project model hoạt động
- cách search, validate, và browse project context