Pull the latest global.md and project journal files from your remote journal repository into the local cache at ~/.doraval/journals/.
doraval journal updateThis is the recommended command to run at the start of a session, before skill drift, or any time you want fresh principles without publishing new ones.
Why it exists
Section titled “Why it exists”init --refreshworks but is awkward (init sounds like a one-time setup command).synconly pulls as a side effect when you have pending entries.updategives you a clear, dedicated “get latest” operation that is always safe and has no side effects on the remote.
Options
Section titled “Options”| Flag | Description |
|---|---|
-p, --project | Project name (defaults to the mapping for current dir) |
--all | Refresh every registered project plus global.md |
What it does
Section titled “What it does”- Requires the GitHub CLI (
gh) and a valid journal configuration (runjournal initfirst). - Always fetches
global.md(cross-project principles). - Fetches the target project’s
projects/<name>.md. - Overwrites the corresponding files in
~/.doraval/journals/. - If a remote file doesn’t exist yet, it creates a minimal local stub so that
listand future commands don’t explode. - Never writes to the remote repository.
Typical usage
Section titled “Typical usage”# At the beginning of a coding sessiondoraval journal update
# Before checking for drift against your principlesdoraval journal update && doraval skill drift ./my-skill/
# Refresh everything you have registereddoraval journal update --allRelationship to other commands
Section titled “Relationship to other commands”init— initial registration + first fetch. Use--refreshonly if you really want the prompts.update— the everyday “make my cache current” command.sync— publish local pending entries (it now also does a refresh first for safety).list— reads only from the local cache (runupdatefirst if you suspect staleness).
See the Agent Journal concept for the full picture.