Skip to content

Commit 918ac8d

Browse files
committed
feat(setup-prompts): summary lists decisions + memories with folder links
User feedback: the setup summary already shows preset safety rules verbatim, but doesn't tell the user WHAT decisions / memories were actually saved. The user has to open the folders to find out. Make the summary self-sufficient. Both prompts (clipboard PROMPT_SETUP + MCP server's PROJECT SETUP REQUIRED instruction) now demand the agent ALSO output: Decisions saved this session (full bodies in .axme-code/decisions/): - D-001: <short title> - D-002: <short title> ... Memories saved this session (full bodies in .axme-code/memory/...): - <slug>: <short title> ... All saved artifacts are persistent across sessions. Open the folders above to read full bodies, or ask me 'show decision D-NNN' / 'show memory <slug>' to fetch any of them. Keeps titles short — rationale already lives in the .md files, no need to duplicate it in the chat output. The verbatim closing line educates the user about retrieval ('ask me show ...') so they know the saved data is reachable without leaving the chat.
1 parent 58acca6 commit 918ac8d

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

extension/src/chat-prompt.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,20 @@ export const PROMPT_SETUP =
128128
` ...\n` +
129129
` readOnlyPaths:\n` +
130130
` ...\n` +
131-
` - Final note to the user (verbatim): "These presets ship with AXME ` +
132-
`Code. You can edit \`.axme-code/safety/rules.yaml\` directly to add ` +
133-
`project-specific rules or remove ones you don't need."\n\n` +
131+
` - Final note about presets (verbatim): "These presets ship with ` +
132+
`AXME Code. You can edit \`.axme-code/safety/rules.yaml\` directly to ` +
133+
`add project-specific rules or remove ones you don't need."\n` +
134+
` - Then list the DECISIONS you saved this session — one per line, ` +
135+
`format: " - D-NNN: <short title>". Header: "Decisions saved this ` +
136+
`session (full bodies in .axme-code/decisions/):". This is the user's ` +
137+
`quick index of what your scan captured — keep titles short, no ` +
138+
`rationale dumps in the summary (they're already in the .md files).\n` +
139+
` - Then list the MEMORIES you saved — one per line, format: ` +
140+
`" - <slug>: <short title>". Header: "Memories saved this session ` +
141+
`(full bodies in .axme-code/memory/patterns/ and memory/feedback/):"\n` +
142+
` - Final verbatim line: "All saved artifacts are persistent across ` +
143+
`sessions. Open the folders above to read full bodies, or ask me ` +
144+
`'show decision D-NNN' / 'show memory <slug>' to fetch any of them."\n\n` +
134145
`The .axme-code/ directory does not need to exist beforehand — the save ` +
135146
`tools bootstrap it on first call. If a tool returns an error, retry once ` +
136147
`with corrected arguments, then move to the next. Stay focused on setup, ` +

src/server.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,17 @@ function buildInstructions(): string {
280280
"with AXME Code. You can edit .axme-code/safety/rules.yaml " +
281281
"directly to add project-specific rules or remove ones you " +
282282
"don't need.\"\n" +
283+
" Then list DECISIONS saved this session — one per line as " +
284+
"\" - D-NNN: <short title>\". Header: \"Decisions saved this " +
285+
"session (full bodies in .axme-code/decisions/):\". Keep titles " +
286+
"short — rationale already lives in the .md files.\n" +
287+
" Then list MEMORIES saved — one per line as \" - <slug>: " +
288+
"<short title>\". Header: \"Memories saved this session (full " +
289+
"bodies in .axme-code/memory/patterns/ and memory/feedback/):\".\n" +
290+
" End with verbatim line: \"All saved artifacts are persistent " +
291+
"across sessions. Open the folders above to read full bodies, " +
292+
"or ask me 'show decision D-NNN' / 'show memory <slug>' to " +
293+
"fetch any of them.\"\n" +
283294
"If you catch yourself writing \"Save decision: X / Save memory: " +
284295
"Y\" as text, STOP and call axme_save_decision / axme_save_memory " +
285296
"instead. The .axme-code/ directory is auto-bootstrapped by the " +

0 commit comments

Comments
 (0)