Skip to main content

LIST_FORMAT_INSTRUCTIONS

Constant LIST_FORMAT_INSTRUCTIONS 

Source
pub const LIST_FORMAT_INSTRUCTIONS: &str = r"
## URN Format

Rich URN encodes scope, namespace, and ID:
```
subcog://{scope}/{namespace}/{id}
```
Examples:
- `subcog://project/decisions/abc123...` - project-scoped decision
- `subcog://org/acme/patterns/def456...` - org-scoped pattern
- `subcog://acme/myrepo/learnings/ghi789...` - repo-scoped learning

## Output Formats

### Table Format (default)
Present results directly from `subcog_recall` output. Each line shows:
```
{n}. subcog://{scope}/{namespace}/{id} | {score} [{tags}]
   {content_summary}
```

Group by namespace with counts when helpful.

### Compact Format
```
subcog://{scope}/{namespace}/{id} [{tags}]
```

### Detailed Format
```
### subcog://{scope}/{namespace}/{id}
- **Score**: {score}
- **Tags**: tag1, tag2
- **Source**: {source}
- **Content**: {full_content}
```

## Filter Syntax

- `ns:decisions` - filter by namespace
- `tag:rust` - filter by tag
- `tag:rust,mcp` - OR filter (must have ANY)
- `tag:rust tag:error` - AND filter (must have ALL)
- `-tag:test` - exclude tag
- `since:7d` - time filter
- `source:src/*` - source pattern
- `status:active` - status filter
";