Skip to main content

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.
Options:
  • --search <query> - Search documents by title or content
  • --json - Output as JSON
Examples:

nut knowledge get

Get a specific knowledge document by filename.
Arguments:
  • filename - The document filename (e.g., api-design.md)
Options:
  • --json - Output as JSON
Examples:

nut knowledge create

Create a new knowledge document.
Arguments:
  • title - Document title
Options:
  • --file <path> - Path to file containing document content
  • --content <text> - Direct content for the document
  • --filename <name> - Optional custom filename
Examples:
Use descriptive titles that make it easy to find documents later. Without --filename, filenames are generated from the title automatically; use --filename when you need to preserve specific casing or spelling in the .md filename.

nut knowledge update

Update an existing knowledge document.
Arguments:
  • filename - The document filename to update
Options:
  • --file <path> - Path to file with new content
  • --title <title> - Update the document title
  • --content <text> - Direct content update
Examples:

nut knowledge delete

Delete a knowledge document.
Arguments:
  • filename - The document filename to delete
Examples:
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

Create separate documents for different topics rather than one large document. This makes it easier for AI skills to find relevant information.
Regularly review and update knowledge documents as your project evolves. Outdated information can lead to incorrect implementations.
Structure documents with headings, bullet points, and code examples. Well-formatted documents are easier for both humans and AI to parse.
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
Knowledge Base contains specific, topic-focused information:
  • API documentation
  • Specific patterns and practices
  • Integration guides
  • Technical specifications
Both work together to give AI skills a complete understanding of your project.