nous-overview
Installation
SKILL.md
Nous: Self-Improving Context System
Architecture
Nous operates through two Claude Code hooks and a statusline trigger:
- SessionStart hook: Injects recent learnings and knowledge into Claude's context at the beginning of every session. Reads from per-project
.claude/nous/storage and prepends relevant entries so Claude benefits from prior session insights. - Stop hook: Monitors context window usage percentage (via statusline activity data). When thresholds are met, spawns extraction workers to analyze the session transcript and extract structured JSONL entries.
- Activity Logger (
hooks/nous-logger.sh): A minimal script that reads status JSON from stdin, enriches it with timestamp and hostname, and silently appends to~/.claude/statusline-activity.jsonl. Produces no stdout output -- it is designed to run in the background without interfering with any visual statusline.
Statusline Integration (Trigger Pattern)
Nous does not own or replace the user's statusline. Instead, /nous:setup appends a small trigger block to the bottom of the user's ~/.claude/statusline.sh: