Skip to content

writeFileAsync

writeFileAsync(name, content): Promise<void>

Replaces the content of a Steam Cloud file with content, asynchronously. Needs init(). This sends data to Steam. Resolves once Steam has stored the file. The result is delivered through runCallbacks(), which init() already calls. Rejects when the name contains a NUL character or the content is larger than 4 GB (nothing is sent), or when Steam reports an error. There is no timeout: if Steam never answers, the Promise stays pending and the outcome is unknown. The header caps a file at 200 MB and a single chunk at 100 MB; Steam enforces those limits.

string

The cloud file name.

Buffer

The bytes to store.

Promise<void>

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.