Skip to content

[codex] publish cross-client DNA Memory - #7

Merged
AIPMAndy merged 1 commit into
mainfrom
codex/publish-cross-client-memory
Jul 14, 2026
Merged

[codex] publish cross-client DNA Memory#7
AIPMAndy merged 1 commit into
mainfrom
codex/publish-cross-client-memory

Conversation

@AIPMAndy

Copy link
Copy Markdown
Owner

What changed

  • publish the Markdown-backed, rebuildable cross-client memory service and seven-tool MCP
  • document current Codex, Claude Code/Desktop, Hermes, Obsidian, native-import, supersedes, maintenance, and shared-Skill workflows
  • replace private deployment paths and personal Skills with portable examples and a generic dna-memory-loop
  • remove runtime memory/config artifacts and internal implementation plans from the public tree
  • add CI and a deterministic public-safety scan for private paths and credential-shaped content

Why

The local implementation had advanced beyond the public repository, but its development history and examples included machine-specific paths, personal workflow Skills, and runtime data. This PR publishes the reusable system as one sanitized snapshot without exposing those intermediate commits.

Validation

  • python3 -m pytest -q (108 passed)
  • python3 -m compileall -q dna.py dna scripts tests
  • python3 scripts/check_public_safety.py
  • git diff --check origin/main...HEAD
  • verified the branch contains exactly one commit over main

@github-actions

Copy link
Copy Markdown

🔍 Tessl Skill Review

skills/dna-memory-loop/SKILL.md

⚠️ Error: ✘ Skill review requires you to be logged in. Run tessl login to log in, then try again.

Note: tessl skill review is deprecated – use tessl review run instead.
Migration guide: https://docs\.tessl\.io/improving\-your\-skills/migrate\-from\-skill\-review


To improve your score, point your agent at the Tessl optimization guide. Need help? Jump on our Discord.

Feedback

Report issues with this review at tesslio/skill-review, or send private feedback from your terminal with tessl feedback.

@AIPMAndy
AIPMAndy force-pushed the codex/publish-cross-client-memory branch from 49d0cf8 to 2947e89 Compare July 14, 2026 03:49
@AIPMAndy
AIPMAndy marked this pull request as ready for review July 14, 2026 03:52
@AIPMAndy
AIPMAndy merged commit 54160a5 into main Jul 14, 2026
3 checks passed
@AIPMAndy
AIPMAndy deleted the codex/publish-cross-client-memory branch July 14, 2026 03:52

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2947e890b1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

tail, size = _read_tail_bytes(path, max_bytes)
if path.suffix.lower() == ".json":
try:
return _messages_from_data(json.loads(tail.decode("utf-8")))[:max_messages]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Read the newest JSON session messages

When a complete .json session fits within max_bytes but contains more than max_messages entries, this slices the parsed list from the front, so automatic import examines the oldest messages and misses recent preferences/decisions at the end of the session. The JSONL and truncated-JSON paths both take the tail, so this should also keep the last max_messages after parsing the full JSON.

Useful? React with 👍 / 👎.

Comment thread scripts/memory_service.py
root = self.config.knowledge_root / self.config.managed_memory_dir
targets = self._load_active_targets(supersedes, root)
memory_id = "mem_{}".format(uuid.uuid4().hex)
now = time.strftime("%Y-%m-%dT%H:%M:%S%z")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Store SQLite-parseable memory timestamps

Memories created through memory_remember are indexed with timestamps like 2026-07-14T12:00:00+0000, but the value metrics compare created_at with SQLite datetime(...); SQLite does not parse the +0000 offset form, so 7d/30d new_memories counts exclude freshly created memories. Use a SQLite-parseable format, such as a space-separated timestamp or an offset with a colon, before writing these fields.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants