Frontmatter
| id | 7357 |
| title | Create and Integrate `ai:get-last-session` Script |
| state | Closed |
| labels | documentationenhancementai |
| assignees | tobiu |
| createdAt | Oct 4, 2025, 3:27 PM |
| updatedAt | Oct 4, 2025, 3:28 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7357 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | 7316 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Oct 4, 2025, 3:28 PM |
To make the agent's session initialization process more robust, a new script was needed to reliably find the ID of the most recent session from the memory database. This ticket covers the creation of that script and its integration into the agent's workflow.
Acceptance Criteria
buildScripts/ai/getLastSession.mjsscript is created to find the most recent session ID and its summarization status.package.jsonfile is updated with a newai:get-last-sessionnpm script.AGENTS.mdfile is updated to instruct the agent to use the newnpm run ai:get-last-sessionscript during its initialization.