Discover Packages
github.com/patbaumgartner/copilot-ralph
internal
planfile
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Apr 27, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package planfile manages Ralph's fix_plan.md scratchpad.
fix_plan.md is the running TODO list the assistant maintains across
iterations. The default location is `<working-dir>/.ralph/fix_plan.md`.
The directory is created lazily on first write.
View Source
const DefaultRelPath = ".ralph/fix_plan.md"
DefaultRelPath is the default location of the plan file relative to the
loop's working directory.
Changed reports whether two snapshots differ in existence or content.
EnsureDir creates the parent directory of absPath if it does not exist.
Read returns the current contents of the plan file. A missing file is
reported as ("", nil) so callers can treat "not yet written" the same as
"empty plan".
Resolve returns an absolute path for the plan file, defaulting to
`<workingDir>/.ralph/fix_plan.md` when path is empty or relative.
Snapshot is a stable representation of the plan file at one point in time.
It is used to detect changes between iterations.
Take captures the current plan file state. A missing file is recorded as
Exists=false with empty content.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.