Self-Modification Sandbox
Review, approve, and execute code the system proposes for its own evolution — inside a safe, isolated sandbox environment.
cortex-sandbox-01
Isolated execution environment for reviewing proposed self-modifications
1def score_memory(memory, query_embedding, now=None):2 now = now or time.time()3 similarity = cosine_similarity(memory.embedding, query_embedding)4 recency = math.exp(-(now - memory.timestamp) / RECENCY_HALF_LIFE)5 importance = memory.importance_score6 frequency = math.log1p(memory.access_count)7 return (8 0.55 * similarity +9 0.20 * recency +10 0.15 * importance +11 0.10 * frequency12 )Modification History
Weighted recency + importance scoring for long-term memory retrieval
Jul 13, 09:14 PMAdd token-budget guard to reasoning.py chain-of-thought loop
Jul 12, 09:02 AMExperimental: rewrite llm_router.py complexity heuristic
Jul 11, 05:40 PMAdd exponential backoff to Ollama connection retries
Jul 10, 06:55 AMIntroduce new PPO reward shaping term for tool-use efficiency
Jul 9, 02:22 PMRefactor working_memory.py TTL decay curve
Jul 8, 02:11 AMSandbox Controls
Ready.

No comments yet. Be the first!