File size: 1,470 Bytes
5a81b95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Knowledge Base

The system's subconscious - where harvested knowledge is stored.

## Structure

```
packages/knowledge/
β”œβ”€β”€ harvested/          # Raw content fetched by The Harvester
β”‚   β”œβ”€β”€ *.txt           # Text files
β”‚   β”œβ”€β”€ *.md            # Markdown files
β”‚   β”œβ”€β”€ *.json          # JSON data
β”‚   └── *.meta.json     # Metadata for each harvested file
└── processed/          # (Future) Analyzed and structured knowledge
```

## The Harvester

The Harvester service (`apps/backend/src/services/harvester/`) provides the capability to reach out and acquire knowledge from external sources.

### MCP Tools

- `harvest.fetch` - Reach out and grab content from a URL
- `harvest.list` - List all harvested knowledge files
- `harvest.read` - Read a specific harvested file

### Example Usage

```typescript
// Via MCP
await mcpClient.call('harvest.fetch', {
  url: 'https://raw.githubusercontent.com/user/repo/main/document.md',
  filename: 'custom_name.md'  // optional
});

// List harvested files
await mcpClient.call('harvest.list', {});

// Read harvested content
await mcpClient.call('harvest.read', { filename: 'document.md' });
```

## Philosophy

> "Vi skal ikke vente pΓ₯ mirakler; vi skal hente dem."

The knowledge base represents the accumulated wisdom harvested from the digital void. Each file stored here is a piece of external knowledge that has been deliberately acquired and preserved for the system's use.