pub const CAPTURE: &str = r#"
## Using the subcog_capture Tool
### Basic Capture
```json
{
"tool": "subcog_capture",
"arguments": {
"namespace": "decisions",
"content": "Use PostgreSQL for primary storage"
}
}
```
### With Tags
```json
{
"tool": "subcog_capture",
"arguments": {
"namespace": "patterns",
"content": "Use thiserror for custom error types",
"tags": ["rust", "error-handling"]
}
}
```
### With Source Reference
```json
{
"tool": "subcog_capture",
"arguments": {
"namespace": "learnings",
"content": "JWT validation requires explicit algorithm specification",
"source": "src/auth.rs:42"
}
}
```
## Tool Parameters
| Parameter | Required | Description |
|-----------|----------|-------------|
| `namespace` | Yes | One of: decisions, patterns, learnings, context, tech-debt, apis, config, security, performance, testing |
| `content` | Yes | The memory content to capture |
| `tags` | No | Array of tags for categorization |
| `source` | No | Source file reference (e.g., "src/auth.rs:42") |
## Best Practices
1. **Be Specific**: Include context and rationale
2. **Use Tags**: Add relevant keywords for better search
3. **Reference Sources**: Link to code or documentation
4. **Choose Correct Namespace**: Match content to category
## Namespace Selection Guide
| Signal Words | Namespace |
|--------------|-----------|
| "decided", "chose", "going with" | `decisions` |
| "always", "never", "convention" | `patterns` |
| "TIL", "learned", "discovered" | `learnings` |
| "because", "constraint" | `context` |
| "TODO", "FIXME", "temporary" | `tech-debt` |
"#;Expand description
Capture documentation.