Repository navigation
Add persist-memory skill - #86
Open
sfc-gh-ddesai wants to merge 3 commits into
Open
sfc-gh-ddesai wants to merge 3 commits into
sfc-gh-ddesai wants to merge 3 commits into
Conversation
…aries to Snowflake New community skill that persists CoCo's local /memories/*.md files to a Snowflake table with SHA-256 content dedup. Optionally summarizes recent CoCo Desktop sessions and stores structured summaries alongside memory files. - Auto-creates target database/schema/table on first run - Configurable target (defaults to COCO_MEMORY.PUBLIC.MEMORY_LOG) - Project-scoped or full sync depending on working directory - Session summarization is opt-in (--sessions flag) - Validation query ensures metadata consistency Built by [CoCo](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) | Designed and Orchestrated by [Dash](https://www.linkedin.com/in/dash-desai/)
…er table entries When syncing from multiple machines, a stale local file could insert a row that supersedes a newer version already in the table. Now compares local file mtime against the table's latest SAVED_AT — if the table is newer, the insert is skipped and reported as a stale-local conflict. Built by [CoCo](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) | Designed and Orchestrated by [Dash](https://www.linkedin.com/in/dash-desai/)
…ocals When the table has a newer version of a memory file (from another machine), the skill now pulls the content down and overwrites the local file using the memory tool — making the sync bidirectional. Previously it only reported the conflict without resolving it. Built by [CoCo](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) | Designed and Orchestrated by [Dash](https://www.linkedin.com/in/dash-desai/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
persist-memory— a skill that backs up CoCo's local/memories/*.mdfiles to a Snowflake table with SHA-256 content dedupCOCO_MEMORY.PUBLIC.MEMORY_LOGtable on first run; fully configurable target$persist-memory allWhy this skill?
CoCo Desktop's memory system is local-only. This skill solves three problems:
SELECT * FROM MEMORY_LOG WHERE PROJECT_NAME = 'my-project'to find past decisionsNo overlap with the bundled
memory-syncskill — that skill handles sync between CoCo instances; this one persists to Snowflake as a durable queryable store with session summarization.Files
skills/persist-memory/SKILL.md— Full skill with 7-step workflow, examples, stopping pointsskills/persist-memory/LICENSE— Apache 2.0Test plan
namefield$review-skill-sflabs(advisory, not gating)