6 Commits

Author SHA1 Message Date
nanobot 907da710d0 docs: add Hooks System architecture to KNOWLEDGE.md 2026-02-22 10:02:23 +01:00
wylab f1f4651a98 Merge pull request 'Context engineering improvements' (#1) from context-engineering-improvements into main
Reviewed-on: #1
2026-02-22 05:03:49 +01:00
nanobot 3a47cf2c93 Context engineering improvements: dedup, compaction, SOUL.md, output compression
Changes based on analysis against Anthropic's context engineering framework:

1. USER.md: stripped to pure tonal/behavioral instructions, removed all
   factual content that duplicates KNOWLEDGE.md
2. SOUL.md: populated with epistemic character — tool disposition, honesty
   architecture, efficiency preference, Rule 2/8 resolution, cognitive
   pattern translations
3. AGENTS.md: rewrote Rules 2 and 8 with explicit investigation/action
   boundary and cross-references
4. KNOWLEDGE.md:
   - Memory Layout expanded with routing rule and promotion/demotion protocol
   - Heartbeat collector output budgets (per-collector character limits)
   - Output Compression Model table for response formatting
   - Compaction Protocol with triggers, procedure, and routing table
2026-02-22 04:56:54 +01:00
nanobot c2908dcebc Revert "Optimize context files: 15.5KB → 4.2KB"
This reverts commit fd27236d3b.
2026-02-22 04:20:56 +01:00
nanobot fd27236d3b Optimize context files: 15.5KB → 4.2KB
Deduplication:
- USER.md emptied — all content duplicated in KNOWLEDGE.md or stale history
- AGENTS.md trimmed to 3 unique rules (system config, real-world devices, stay on topic)

KNOWLEDGE.md restructured:
- Removed non-actionable sections (Interests, Philosophical Notes)
- Removed non-behavioral Identity items
- Moved architecture details to reference/architecture.md (with pointer)
- Added good response examples
- Removed bad response examples (too incident-specific to generalize)
- Added rule: user does not see tool call outputs on Telegram

New files:
- reference/architecture.md — full nanobot internals, read on demand
2026-02-22 04:14:02 +01:00
nanobot 0d475ec6c1 Initial commit: current context files
AGENTS.md - agent behavioral rules
KNOWLEDGE.md - stable facts loaded into system prompt
SOUL.md - (empty)
USER.md - user preferences and background
2026-02-22 01:18:41 +00:00