Files
fidelity-ai-workspace/.opencode/commands/sync-context.md

59 lines
1.6 KiB
Markdown

---
description: Update workspace memory from new facts, corrections, or contextual notes
---
Use this command when new information should become part of the persistent workspace context.
Read:
@README.md
@ai/AGENTS.md
@ai/context/index.md
@ai/context/project.md
@ai/context/systems/index.md
@ai/context/workstreams/index.md
@ai/context/process/context-maintenance.md
@ai/context/people/manager.md
@ai/context/people/index.md
@ai/state/current.md
@ai/state/work-items.md
@knowledge/workspace-model.md
@knowledge/communication-rules.md
@knowledge/agent-memory-rules.md
@knowledge/memory-promotion-rules.md
Today's existing log, if present:
!`if [ -f ai/logs/$(date +%F).md ]; then cat ai/logs/$(date +%F).md; else echo "No log exists for today yet."; fi`
New information to incorporate:
$ARGUMENTS
Instructions:
- Decide whether the new information belongs in:
- today's log
- `ai/state/current.md`
- `ai/state/work-items.md`
- `ai/context/project.md`
- `ai/context/systems/`
- `ai/context/workstreams/`
- `ai/context/process/`
- `ai/context/people/manager.md`
- `ai/context/people/index.md`
- `ai/context/people/*.md`
- `ai/context/decisions/`
- Update the appropriate files directly
- If an existing statement became stale, replace or refine it
- Do not invent missing facts
- Keep uncertain information in the daily log instead of promoting it to stable context
- Do not ask for promotion confirmation when the correct destination is already clear
- Prefer correcting canonical memory over appending duplicate summaries
After editing, respond with:
1. Updated files
2. What changed in the persistent context
3. Any uncertainty that remains