User Guide
Core Knowns usage patterns and daily workflows.
User Guide
This guide is for people using Knowns in an actual project, not just trying the CLI once.
Knowns is most useful when you treat it as the shared project context beside your source code. The CLI, MCP server, and Web UI all read and update the same project state, so work created in one surface is visible in the others.
Core model
Knowns works best when you think of it as a project context layer with five connected parts:
- tasks for planned work, status, acceptance criteria, implementation plans, and notes
- docs for durable project knowledge such as architecture, specs, decisions, and onboarding
- memory for short reusable context such as team conventions or assistant preferences
- templates for repeated project scaffolding
- search / retrieval for finding the relevant context when people or AI need it
The important habit is to put reusable context into Knowns instead of leaving it only in chat messages.
What you will see during knowns init
- an interactive wizard
- post-wizard steps such as:
- project structure creation
- settings application
- git integration configuration
- lightweight project instruction shim creation, such as
CLAUDE.mdandAGENTS.md - semantic index building (if enabled)
After init, run knowns setup <target> --global to configure user-level AI platform integrations such as skills, MCP configs, and runtime hooks. This is the recommended setup for personal assistant usage across repositories. Use knowns setup <target> only when you intentionally want repo-local integration files, or knowns setup agents if you only need lightweight repo-local shims such as AGENTS.md.
Common first-week workflow
- Create one task for the next real change.
- Add acceptance criteria that make success observable.
- Create or update a doc for architecture or product context the task depends on.
- Use
knowns searchorknowns retrieveto confirm the context can be found. - Let your AI assistant read the task, docs, and memory through MCP or lightweight shim files.
- Validate before marking the work done.
You do not need to document everything on day one. Start with the work that is active, then add docs and memory when repeated explanations become obvious.
Terminal behavior
- the wizard uses an alternate screen to reduce redraw glitches during resize
- third-party installer output can still be noisy
Daily usage patterns
Create and update tasks
knowns task create "Add authentication" -d "JWT-based auth"
knowns task edit <id> -s in-progress
knowns task edit <id> --check-ac 1
knowns task edit <id> --append-notes "Completed auth middleware"
Create and read docs
knowns doc create "Auth Architecture" -d "Design overview" -f architecture
knowns doc "architecture/auth-architecture" --plain
knowns doc "architecture/auth-architecture" --toc --plain
Search for context
knowns search "authentication" --plain
knowns retrieve "how auth works" --json
Validate before finishing work
knowns validate --plain
Keep generated artifacts aligned
knowns sync
Choosing a surface
- Use the CLI when you want fast commands, scripts, or terminal-first work.
- Use the Web UI when you want a board, doc browser, graph view, config pages, or chat workflow.
- Use MCP when an AI assistant needs structured access to tasks, docs, search, memory, templates, and validation.
- Use skills when you want agent-side workflows such as spec creation, implementation, review, or full flow orchestration.
Recommended next reads
Hướng dẫn sử dụng
Dành cho người dùng Knowns trong project thực tế, không chỉ thử CLI một lần.
Knowns hữu ích nhất khi bạn xem nó là shared project context nằm cạnh source code. CLI, MCP server, và Web UI cùng đọc/ghi trên một project state, nên work tạo ở một surface sẽ thấy được ở các surface còn lại.
Mô hình chính
Knowns là một context layer cho project, gồm 5 phần gắn với nhau:
- task cho planned work, status, acceptance criteria, implementation plan, và notes
- doc cho project knowledge bền vững như architecture, spec, decision, và onboarding
- memory cho context ngắn có thể dùng lại, ví dụ team convention hoặc assistant preference
- template cho project scaffolding lặp lại
- search / retrieval để tìm context liên quan khi người hoặc AI cần
Thói quen quan trọng là đưa context có thể tái sử dụng vào Knowns, thay vì chỉ để nó trong chat message.
knowns init làm gì?
- Chạy interactive wizard
- Sau wizard:
- tạo cấu trúc project
- apply config
- cấu hình git integration
- tạo lightweight project instruction shims như
CLAUDE.mdvàAGENTS.md - build semantic index (nếu bật)
Sau init, chạy knowns setup <target> --global để cấu hình user-level AI platform integrations như skills, MCP configs, runtime hooks. Đây là setup được khuyên dùng cho personal assistant usage trên nhiều repository. Chỉ dùng knowns setup <target> khi bạn chủ ý muốn repo-local integration files, hoặc knowns setup agents nếu chỉ cần lightweight repo-local shims như AGENTS.md.
Workflow tuần đầu thường dùng
- Tạo một task cho thay đổi thật tiếp theo.
- Thêm acceptance criteria để success có thể quan sát được.
- Tạo hoặc update doc cho architecture/product context mà task phụ thuộc.
- Dùng
knowns searchhoặcknowns retrieveđể xác nhận context tìm được. - Cho AI assistant đọc task, doc, và memory qua MCP hoặc lightweight shim files.
- Validate trước khi đánh dấu work là xong.
Bạn không cần document mọi thứ trong ngày đầu. Bắt đầu với work đang active, rồi thêm doc và memory khi thấy mình phải giải thích lại cùng một context nhiều lần.
Terminal
- Wizard dùng alternate screen để giảm lỗi hiển thị khi resize
- Output từ installer bên thứ ba có thể khá ồn
Thao tác hằng ngày
Task
knowns task create "Add authentication" -d "JWT-based auth"
knowns task edit <id> -s in-progress
knowns task edit <id> --check-ac 1
knowns task edit <id> --append-notes "Completed auth middleware"
Doc
knowns doc create "Auth Architecture" -d "Design overview" -f architecture
knowns doc "architecture/auth-architecture" --plain
knowns doc "architecture/auth-architecture" --toc --plain
Search
knowns search "authentication" --plain
knowns retrieve "how auth works" --json
Validate
knowns validate --plain
Sync
knowns sync
Chọn surface nào?
- Dùng CLI khi cần command nhanh, script, hoặc terminal-first work.
- Dùng Web UI khi cần board, doc browser, graph view, config pages, hoặc chat workflow.
- Dùng MCP khi AI assistant cần structured access tới task, doc, search, memory, template, và validation.
- Dùng skill khi muốn agent-side workflow như tạo spec, implement, review, hoặc orchestration bằng full flow.