Knowledge Copilot turns your workspace Markdown into a searchable, inspectable wiki inside VS Code.
It helps when useful project knowledge is spread across notes, docs, decisions, and meeting write-ups, but is still hard to query, browse, and keep connected. Instead of treating that content as isolated files, the extension builds a generated wiki under .knowledge/wiki/ and lets you ask questions against it in chat with citations back to the stored pages.
Thanks to Andrej Karpathy's llm-wiki.md.
- Turn scattered Markdown into one navigable knowledge space
- Ask project questions in chat and get cited answers
- Keep generated knowledge readable as normal Markdown files
- Save valuable answers back into the wiki for later reuse
- Navigate wiki pages with wikilink completion, hover, definition, and diagnostics
Knowledge Copilot keeps your original Markdown as the source of truth and writes generated knowledge into a separate workspace area:
.knowledge/
schema/
wiki/
.knowledge/wiki/contains generated wiki pages such as summaries, concepts, answers, and index pages.knowledge/schema/contains per-operation prompt schema files created automatically as needed
- Open a folder or workspace in VS Code.
- Make sure GitHub Copilot Chat is available.
- Add Markdown files to your workspace.
- Run
@knowledge /ingestin chat. - Ask questions with
@knowledge /query ...or@knowledge .... - Save useful answers with the
Save answerfollow-up action.
By default, the extension scans workspace Markdown files and excludes .knowledge/** plus any patterns configured in knowledgeCopilot.sourceExcludes.
@knowledge /ingest
Scans your Markdown sources and generates a wiki with pages such as:
index.mdfor the main catalogoverview.mdfor a high-level summarysources/*.mdfor source-based summariesconcepts/*.mdfor shared concepts and entitiesanswers/*.mdfor saved query responses
@knowledge /query What changed in the architecture?
@knowledge What changed in the architecture?
Answers are grounded in the current wiki and include citations to the relevant generated pages.
@knowledge /lint
Checks the generated wiki for issues such as contradictions, orphaned pages, and missing cross-references.
Inside .knowledge/wiki/, generated pages behave like normal Markdown and support:
- wikilink completion after typing
[[ - Go to Definition for wiki links
- hover previews for linked pages
- diagnostics for broken links
See CHANGELOG.md for version history and release details.
For implementation details and design docs, see: