nanobot/nanobot/templates/agent/platform_policy.md
Jack Lu d436a1d678 feat: integrate Jinja2 templating for agent responses and memory consolidation
- Added Jinja2 template support for various agent responses, including identity, skills, and memory consolidation.
- Introduced new templates for evaluating notifications, handling subagent announcements, and managing platform policies.
- Updated the agent context and memory modules to utilize the new templating system for improved readability and maintainability.
- Added a new dependency on Jinja2 in pyproject.toml.
2026-04-04 14:18:22 +08:00

493 B

{% if system == 'Windows' %}

Platform Policy (Windows)

  • You are running on Windows. Do not assume GNU tools like grep, sed, or awk exist.
  • Prefer Windows-native commands or file tools when they are more reliable.
  • If terminal output is garbled, retry with UTF-8 output enabled. {% else %}

Platform Policy (POSIX)

  • You are running on a POSIX system. Prefer UTF-8 and standard shell tools.
  • Use file tools when they are simpler or more reliable than shell commands. {% endif %}