NarrativeOS Agent is the local-first creator tool for writing, checkpointing, validating, previewing, and exporting longform novels as .nosbook bundles.
This repository is intentionally separate from the hosted NarrativeOS marketplace. It does not connect to the platform database, does not use platform workers, and does not upload anything unless the user explicitly takes a bundle to the website.
- installable Python CLI:
narrativeos-agent - Codex plugin manifest and skill
- local 500-chapter generate / continue / preview / export / validate commands
.nosbookcover asset validation- derivative-work metadata support
- sample
.nosbookbundle underexamples/ - release zip builder under
scripts/build-release-zip
git clone https://github.com/ColinLi98/narrativeos-agent.git
cd narrativeos-agent
python3 -m pip install --user .If your Python/pip does not put console scripts on PATH, use:
python3 -m narrativeos_agent.cli --helpOpen this repo in Codex and ask it to run the NarrativeOS Agent skill for your story workspace. A typical local flow is:
narrativeos-agent init --out ./local_story --title "My Story"
narrativeos-agent generate --source ./local_story --chapters 500
narrativeos-agent validate --source ./local_story --profile longform_500
narrativeos-agent preview --source ./local_story --out ./local_story/preview.html
narrativeos-agent export --source ./local_story --out ./my_story.nosbook
narrativeos-agent validate ./my_story.nosbookGeneration checkpoints each completed chapter under local_story/state/checkpoint.json. If a run is interrupted, rerun generate or use continue and the Agent resumes from the last completed chapter.
You can edit the JSON files in local_story/chapters/ directly or ask Codex to revise them before exporting again.
For derivative works after receiving a platform license:
narrativeos-agent init \
--out ./derived_story \
--title "My Licensed Derivative" \
--derivative-of "<platform-work-ref>" \
--derivative-license-id "<platform-license-ref>" \
--no-derivatives
narrativeos-agent generate --source ./derived_story --chapters 500A .nosbook contains:
manifest.jsonchapters/*.jsonquality_report.jsonrights_attestation.jsonprovenance.jsoncontent_hashes.jsoncover/cover.png,cover.jpg,cover.jpeg, orcover.webp
Cover requirements:
- PNG, JPEG, or WebP
- max 2 MB
- SVG is intentionally blocked in v1
The hosted marketplace accepts .nosbook bundles for review and publishing. The agent does not write platform data; the website extracts the uploaded bundle into its own storage, review, purchase, royalty, and audit records.
Read docs/creator_quickstart.md for the full creator flow:
- install
- generate a local story
- preview
- export and validate
- upload to pilot.lixidol.com/marketplace
This repository is also a Codex plugin package. The plugin entry is:
.codex-plugin/plugin.jsonskills/narrativeos-agent/SKILL.mdscripts/narrativeos-agentscripts/smoke-test
After installing or opening the repo in Codex, ask:
用 NarrativeOS Agent 在本地生成一本小说,并导出 marketplace-ready
.nosbook。
Build a release archive:
scripts/build-release-zipThe output is written to release/narrativeos-agent-1.0.1.zip.
The archive excludes .git, virtualenvs, local env files, build caches, and generated release zips.
The agent is local-first:
- no platform database connection
- no hosted generation worker dependency
- no automatic upload
- no platform secret required
Users may configure their own model tools or ask Codex to edit the local story files. The final export remains a portable .nosbook bundle.
AGPL-3.0-or-later. Commercial licensing is available separately.