Feature 05

Preserve the state behind every coding loop

Preserve progress, reports, workflow files, and loop state so AI coding work can be paused, inspected, and resumed.

Last updated: May 9, 2026 · Reviewed by ReScience Lab

Why it matters

Autonomous work should not vanish into a chat transcript. Hal favors files, commits, reports, and archives so a developer can pause, inspect, restore, or continue the loop later.

What is archive and restore for AI coding loops?

Archive and restore for AI coding loops means preserving workflow state, reports, progress, and implementation artifacts so agent work can be paused, inspected, resumed, or discarded. In Hal, archive behavior supports reviewability by keeping context around the code, not just the final diff.

What breaks when work has no trail

A coding agent can make progress while leaving the developer unsure what happened. Which story ran? Which files changed? What reports were generated? What remains unresolved?

Hal is built around reviewable state, not invisible progress.

How Hal handles it

After loop work, archive behavior can preserve progress, reports, and workflow state. That makes it easier to pause a feature, inspect it later, or restore the context needed to continue.

hal plan "describe the product change"
hal convert
hal validate
hal run

The important output is not just code. It is the trail around the code.

What the developer gets

How to review archived work

Treat the archive as supporting evidence. Inspect the changed files, commits, reports, unresolved stories, and acceptance criteria before deciding what to keep.

What Hal does and does not do

Hal doesHal does not do
Structures PRD-native coding loops around planning, validation, implementation, reporting, and reviewable state.Guarantee code quality, passing tests, delivery speed, revenue, rankings, or production readiness.
Helps supported engines work against smaller, reviewable units of work.Replace developer review, QA, security review, or merge judgment.

Sources and verification

Before adopting this workflow, verify the current Hal source repository, install docs, pricing status, and machine-readable pricing. Check release notes and engine support before relying on Hal in production work.

FAQ

Short answers before you put this into an agent workflow.

Why archive agent work?

Archives preserve the review trail around a loop. They make it easier to understand what ran, what changed, and where to continue later.

Is archive and restore the same as Git?

No. Git tracks repository history. Hal archive behavior is about preserving workflow state and loop artifacts around agent-driven implementation.

Should archived work be merged automatically?

No. Archived state should still be inspected by a developer before any production merge.

Related features

Keep exploring the pieces of a reviewable coding loop.