Repository navigation
feat(init): add --memory-provider mode for pi, claude, cursor - #577
Merged
Merged
Conversation
Adds automatic memory-provider integrations for non-Hermes agents, mirroring the Hermes --memory-provider experience: - pi: TypeScript extension (extensions/pi-memory-provider/) that hooks before_agent_start to auto-inject relevant memories every turn. Includes slash commands (/uteke-recall, /uteke-save, /uteke-stats, /uteke-on, /uteke-off). - claude: Enhanced UTEKE.md with auto-recall rules + MCP server config snippet. Updates CLAUDE.md with auto-recall reference. - cursor: Enhanced .cursor/rules/uteke.mdc with auto-recall rules + MCP server config snippet. Updated run_init() dispatch to accept --memory-provider flag for all agents. Added compile-time template guards (tests) for the pi extension. Usage: uteke init --agent pi --memory-provider uteke init --agent claude --memory-provider uteke init --agent cursor --memory-provider
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (4)
Review powered by cora-cli · BYOK · MIT |
Format string had literal { } which Rust interprets as format
placeholders. Escape with {{ }}.
|
|
||
| ## Auto-Recall Rule | ||
| **At the start of every task**, before asking the user, run: | ||
| ``` |
| try { | ||
| return execSync(`${bin} ${args.join(" ")}`, { | ||
| encoding: "utf-8", | ||
| timeout, |
| try { | ||
| return execSync(`${bin} ${args.join(" ")}`, { | ||
| encoding: "utf-8", | ||
| timeout, |
| return formatMemories(memories); | ||
| }, | ||
| }); | ||
|
|
This was referenced Jul 6, 2026
Merged
ajianaz
added a commit
that referenced
this pull request
Jul 16, 2026
The heading 'Memory-Provider for Other Agents (#575/#577)' produced a confusing concatenated anchor #memory-provider-for-other-agents-575577. Drop the issue refs from the heading (move into the body) so the anchor becomes the clean #memory-provider-for-other-agents. Fixes CodeCora alert. Verified via github-slugger: 0 broken links; no other file references the old anchor.
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
feat(init): add --memory-provider mode for pi, claude, cursor
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
The heading 'Memory-Provider for Other Agents (#575/#577)' produced a confusing concatenated anchor #memory-provider-for-other-agents-575577. Drop the issue refs from the heading (move into the body) so the anchor becomes the clean #memory-provider-for-other-agents. Fixes CodeCora alert. Verified via github-slugger: 0 broken links; no other file references the old anchor.
Summary
Closes #575 — automatic memory-provider for non-Hermes agents.
Problem
uteke init --agent hermes --memory-providergives automatic recall injection. Butpi,claude, andcursoronly install manual instructions — users must remember to calluteke recall/uteke rememberthemselves.Changes
--memory-provider~/.pi/agent/extensions/uteke-memory-provider/— hooksbefore_agent_startto auto-inject relevant memories every turn. Includes slash commands:/uteke-recall,/uteke-save,/uteke-stats,/uteke-on,/uteke-off.--memory-providerUTEKE.mdwith auto-recall rules + MCP server config snippet. UpdatesCLAUDE.mdwith auto-recall reference.--memory-provider.cursor/rules/uteke.mdcwith auto-recall rules + MCP config snippet (alwaysApply: true).New files
Modified files
crates/uteke-cli/src/init.rs— updatedrun_init()dispatch + addedinit_pi_memory_provider(),init_claude_memory_provider(),init_cursor_memory_provider(). Added compile-time template guard tests.Usage
Without
--memory-provider, behavior is unchanged (manual instructions only).Test plan
cargo fmt --all -- --checkpassesbefore_agent_starthook