knowledge_sync_rules
Automatically sync graduated insights into your project's IDE rules file, transforming dynamic agent learnings into always-on behavioral rules.
Instructions
Auto-sync graduated insights (importance >= 7) into your project's IDE rules file (.cursorrules or .clauderules). This bridges behavioral memory with static IDE context — turning dynamic agent learnings into always-on rules.
How it works:
Fetches graduated insights from the ledger
Formats them as markdown rules inside sentinel markers
Idempotently writes them into the target file at the project's configured repo_path
Requirements: The project must have a repo_path configured in the dashboard.
Idempotency: Uses <!-- PRISM:AUTO-RULES:START --> / <!-- PRISM:AUTO-RULES:END --> sentinel markers. Running this tool multiple times produces the same file. User-maintained content outside the sentinels is never touched.
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": {
"project": "<project>"
},
"name": "knowledge_sync_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, returns a preview of the rules block without writing to disk. Default: false. | |
| project | Yes | Project identifier. Must have a repo_path configured in the dashboard. | |
| target_file | No | Target rules filename (default: '.cursorrules'). Common values: '.cursorrules', '.clauderules'. |