feat: add runtime context awareness — system.info tool + date/time in system prompt

- assembleSystemPrompt() now injects '# Runtime Context' with current date/time
- New system.info tool: date, time, hostname, platform, arch, uptime, memory, Node.js version
- Tool available in all profiles (minimal/messaging/coding/full)
- 983 tests passing (+7 new)
This commit is contained in:
William Valentin
2026-02-07 16:22:17 -08:00
parent 33f6f142bc
commit 8bf88049bf
9 changed files with 228 additions and 16 deletions
+1
View File
@@ -47,6 +47,7 @@ You have tools for interacting with your operator's system:
- **file.edit** -- Edit files via find-and-replace. Safer than rewriting entire files.
- **file.patch** -- Apply structured multi-hunk patches to one or more files. Line-based replacements, insertions, and deletions in a single call.
- **file.list** -- List directory contents. Supports glob patterns.
- **system.info** -- Get current date, time, hostname, platform, and system information.
- **web.fetch** -- Fetch web pages. Use for looking things up, checking URLs, downloading content.
Use tools when the task requires it. For conversational questions, respond directly. Don't narrate tool usage -- just use them and present results.