diff --git a/CHANGELOG.md b/CHANGELOG.md index 0459bc4..f4fb53f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,14 @@ + + +## Version 1.30.0 - 2025-11-08 + +Agents can now use more complex instructions and search for information to provide better responses. User messages are now saved to help agents learn and improve over time. + +**Changes:** 4 files, 16 lines +**Languages:** Markdown (8 lines), Python (6 lines), TOML (2 lines) ## Version 1.29.0 - 2025-11-08 diff --git a/Makefile b/Makefile index 50517e9..5ef496c 100644 --- a/Makefile +++ b/Makefile @@ -72,9 +72,9 @@ serve: implode: build - if [ -d /home/retoor/bin ]; then \ - python -m rp.implode rp.py -o /home/retoor/bin/rp; \ - chmod +x /home/retoor/bin/rp; \ + if [ -d $(HOME)/bin ]; then \ + python -m rp.implode rp.py -o $(HOME)/bin/rp; \ + chmod +x $(HOME)/bin/rp; \ fi .DEFAULT_GOAL := help diff --git a/pyproject.toml b/pyproject.toml index 9711ef6..e891845 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rp" -version = "1.29.0" +version = "1.30.0" description = "R python edition. The ultimate autonomous AI CLI." readme = "README.md" requires-python = ">=3.10" diff --git a/rp/tools/context_modifier.py b/rp/tools/context_modifier.py index 95cb3d4..1dfb228 100644 --- a/rp/tools/context_modifier.py +++ b/rp/tools/context_modifier.py @@ -1,17 +1,19 @@ import os +from pathlib import Path from typing import Optional -CONTEXT_FILE = "/home/retoor/.local/share/rp/.rcontext.txt" +CONTEXT_FILE = Path.home() / ".local" / "share" / "rp" / ".rcontext.txt" def _read_context() -> str: - if not os.path.exists(CONTEXT_FILE): + if not CONTEXT_FILE.exists(): raise FileNotFoundError(f"Context file {CONTEXT_FILE} not found.") with open(CONTEXT_FILE, "r") as f: return f.read() def _write_context(content: str): + CONTEXT_FILE.parent.mkdir(parents=True, exist_ok=True) with open(CONTEXT_FILE, "w") as f: f.write(content)