Context Hygiene
Context-Hygiene Proxy & Cross-Platform Handoff
Long-running coding sessions accumulate stale file reads, repeated tool outputs, and conflicting instructions—causing context rot. Aria Code's Rust binary (aria-native) solves this for any OpenAI- or Anthropic-compatible client.
1. Transparent Proxy for Terminal & IDE Agents
aria-native proxy --listen 127.0.0.1:8787 --max-tokens 60000 --keep-recent 6
Point ANTHROPIC_BASE_URL or OPENAI_BASE_URL at the local proxy to deduplicate repeated file reads and compact stale turns before tokens hit the upstream model.
2. Clean Session Handoff Across Agents
aria-native handoff save --goal "Fix auth PKCE" --platform terminal --decision "Use S256" --next "Run cargo test"
aria-native handoff load --json
Or expose save_context_handoff and get_clean_handoff directly over MCP via aria-native mcp-serve --allow-write.