refactor(agent): remove legacy memory subsystem

This commit is contained in:
Jiayuan Zhang 2026-02-17 15:33:39 +08:00
parent 700e64342c
commit 0f5bd5fff1
26 changed files with 15 additions and 599 deletions

View file

@ -48,7 +48,6 @@ ${cyan("Profile Structure:")}
- soul.md Agent identity, personality and behavior
- user.md Information about the user
- workspace.md Workspace rules and conventions
- memory.md Persistent knowledge
${cyan("Examples:")}
${dim("# Create a new profile")}
@ -94,7 +93,6 @@ function cmdNew(profileId: string | undefined) {
console.log(" - soul.md (identity, personality and behavior)");
console.log(" - user.md (information about the user)");
console.log(" - workspace.md (workspace rules and conventions)");
console.log(" - memory.md (persistent knowledge)");
console.log("");
console.log("Run interactive setup to personalize your agent:");
console.log(` multica profile setup ${profileId}`);
@ -165,11 +163,6 @@ function cmdShow(profileId: string | undefined) {
console.log("");
}
if (profile.memory) {
console.log(`${green("=== memory.md ===")}`);
console.log(profile.memory.trim());
console.log("");
}
}
async function cmdEdit(profileId: string | undefined) {

View file

@ -31,7 +31,7 @@ function printUsage() {
console.log(`${cyan("Usage:")} pnpm agent:interactive [options]`);
console.log("");
console.log(`${cyan("Options:")}`);
console.log(` ${yellow("--profile")} ID Load agent profile (identity, soul, tools, memory)`);
console.log(` ${yellow("--profile")} ID Load agent profile (identity, soul, tools)`);
console.log(` ${yellow("--provider")} NAME LLM provider (e.g., openai, anthropic, kimi)`);
console.log(` ${yellow("--model")} NAME Model name`);
console.log(` ${yellow("--system")} TEXT System prompt (ignored if --profile is set)`);

View file

@ -25,7 +25,7 @@ function printUsage() {
console.log(" echo \"your prompt\" | pnpm agent:cli");
console.log("");
console.log("Options:");
console.log(" --profile ID Load agent profile (identity, soul, tools, memory)");
console.log(" --profile ID Load agent profile (identity, soul, tools)");
console.log(" --provider NAME LLM provider (e.g., openai, anthropic, kimi)");
console.log(" --model NAME Model name");
console.log(" --api-key KEY API key (overrides environment variable)");

View file

@ -68,7 +68,6 @@ function cmdNew(profileId: string | undefined) {
console.log(" - soul.md (identity, personality and behavior)");
console.log(" - user.md (information about the user)");
console.log(" - workspace.md (workspace rules and conventions)");
console.log(" - memory.md (persistent knowledge)");
console.log("");
console.log("Edit these files to customize your agent, then run:");
console.log(` pnpm agent:cli --profile ${profileId} "Hello"`);
@ -137,11 +136,6 @@ function cmdShow(profileId: string | undefined) {
console.log("");
}
if (profile.memory) {
console.log("=== memory.md ===");
console.log(profile.memory.trim());
console.log("");
}
}
async function cmdEdit(profileId: string | undefined) {

View file

@ -12,7 +12,6 @@ const TOOL_GROUPS: Record<string, string[]> = {
'group:fs': ['read', 'write', 'edit', 'glob'],
'group:runtime': ['exec', 'process'],
'group:web': ['web_search', 'web_fetch'],
'group:memory': ['memory_search'],
'group:subagent': ['delegate'],
'group:cron': ['cron'],
}
@ -22,7 +21,6 @@ const ALL_KNOWN_TOOLS = [
...TOOL_GROUPS['group:fs'],
...TOOL_GROUPS['group:runtime'],
...TOOL_GROUPS['group:web'],
...TOOL_GROUPS['group:memory'],
...TOOL_GROUPS['group:subagent'],
...TOOL_GROUPS['group:cron'],
]

View file

@ -11,7 +11,6 @@ import {
FolderOpen,
Code,
Globe,
Brain,
ChevronRight,
Loader2,
Clock,
@ -25,7 +24,6 @@ const GROUP_NAMES: Record<string, string> = {
fs: 'File System',
runtime: 'Runtime',
web: 'Web',
memory: 'Memory',
subagent: 'Subagent',
cron: 'Cron',
other: 'Other',
@ -36,7 +34,6 @@ const GROUP_DESCRIPTIONS: Record<string, string> = {
fs: 'Read, write, and manage files',
runtime: 'Execute code and commands',
web: 'Fetch and interact with web content',
memory: 'Store and recall information',
subagent: 'Delegate tasks to sub-agents',
cron: 'Schedule recurring tasks',
other: 'Miscellaneous tools',
@ -47,7 +44,6 @@ const GROUP_ICONS: Record<string, typeof FolderOpen> = {
fs: FolderOpen,
runtime: Code,
web: Globe,
memory: Brain,
subagent: Users,
cron: Clock,
other: Code,

View file

@ -22,11 +22,6 @@ const TOOL_DESCRIPTIONS: Record<string, string> = {
process: 'Manage background processes',
web_fetch: 'Fetch content from URLs',
web_search: 'Search the web via Devv Search',
memory_get: 'Get stored memory value',
memory_set: 'Store a memory value',
memory_delete: 'Delete a memory value',
memory_list: 'List all memory keys',
memory_search: 'Search memory files for keywords',
cron: 'Create and manage scheduled tasks',
}