Skip to main content

WORKFLOWS

Constant WORKFLOWS 

Source
pub const WORKFLOWS: &str = r#"
## Common MCP Workflows

### Session Start: Load Context

At session start, search for relevant memories based on the current project:

```json
{
  "tool": "subcog_recall",
  "arguments": {
    "query": "current project context patterns decisions",
    "limit": 10
  }
}
```

### During Work: Capture Insights

When you discover something worth remembering:

```json
{
  "tool": "subcog_capture",
  "arguments": {
    "namespace": "learnings",
    "content": "JWT tokens must specify algorithm explicitly to prevent alg:none attacks",
    "tags": ["security", "jwt", "authentication"]
  }
}
```

### Related Context: Find Similar

When working on a topic, find related memories:

```json
{
  "tool": "subcog_recall",
  "arguments": {
    "query": "authentication security patterns",
    "mode": "hybrid",
    "namespace": "patterns"
  }
}
```

## Browsing via Resources

Access memories directly without search:

| Resource URI | Returns |
|--------------|---------|
| `subcog://_` | All memories across all domains (JSON) |
| `subcog://project/_` | Project-scoped memories |
| `subcog://user/_` | User-scoped memories |
| `subcog://org/_` | Org-scoped memories (if enabled) |
| `subcog://memory/{id}` | Specific memory by ID |

For filtering by namespace, tags, time, etc., use `subcog_recall` with the `filter` parameter.

## Status Check

Monitor system health:

```json
{
  "tool": "subcog_status",
  "arguments": {}
}
```

Returns: memory count, index status, storage backend info.
"#;
Expand description

Workflow documentation.