pg_memory
Save and query cross-slot repository engineering rules and known pitfalls so coding agents reuse hard-won guidance instead of repeating past mistakes.
Instructions
Persist or recall cross-slot repository engineering rules & pitfalls (stored in knowledge.db + .agents/rules).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"op": "<op>"
},
"name": "pg_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | 'remember' saves a rule; 'recall' queries matching rules. | |
| slot | No | Workspace slot name (optional if only one slot is open or `--slot` default is set). | |
| query | No | Search query when op='recall'. | |
| title | No | Short rule title when op='remember'. | |
| key_id | No | Stable identifier when op='remember'. | |
| rule_text | No | Engineering rule/pitfall details when op='remember'. | |
| file_globs | No | Comma-separated file globs (e.g. 'src/auth/*.py', default '*'). |