nut knowledge
Manage knowledge base documents in your Coconut instance.
Overview
The knowledge base stores important information, documentation, and reference materials that AI skills can access when working on tasks. Unlike context documents which provide project-wide information, knowledge documents can cover specific topics, APIs, patterns, or any other reference material.nut knowledge manages knowledge documents in the current local workspace. To search, create, or update knowledge on a remote peer Coconut through the Coconut Dashboard, use nut coconut knowledge.nut knowledge list
List all knowledge documents.
--search <query>- Search documents by title or content--json- Output as JSON
nut knowledge get
Get a specific knowledge document by filename.
filename- The document filename (e.g.,api-design.md)
--json- Output as JSON
nut knowledge create
Create a new knowledge document.
title- Document title
--file <path>- Path to file containing document content--content <text>- Direct content for the document--filename <name>- Optional custom filename
nut knowledge update
Update an existing knowledge document.
filename- The document filename to update
--file <path>- Path to file with new content--title <title>- Update the document title--content <text>- Direct content update
nut knowledge delete
Delete a knowledge document.
filename- The document filename to delete
Deleting a knowledge document is permanent. Make sure you no longer need the information before confirming.
Knowledge Base Use Cases
API Documentation
Coding Standards
Third-Party Integration
Project History & Decisions
Best Practices
Organize by topic
Organize by topic
Create separate documents for different topics rather than one large document. This makes it easier for AI skills to find relevant information.
Keep documents current
Keep documents current
Regularly review and update knowledge documents as your project evolves. Outdated information can lead to incorrect implementations.
Use clear formatting
Use clear formatting
Structure documents with headings, bullet points, and code examples. Well-formatted documents are easier for both humans and AI to parse.
Include examples
Include examples
Whenever possible, include code examples and real-world use cases. Examples help AI skills understand how to apply the information.
Knowledge Base Workflow
1
Create foundational docs
2
Add as you learn
When you encounter something worth documenting:
3
Update regularly
4
Search when needed
5
Clean up outdated docs
Knowledge vs Context
Context Documents provide high-level, project-wide information:- Project goals and requirements
- Overall architecture
- Team roles and expectations
- API documentation
- Specific patterns and practices
- Integration guides
- Technical specifications