These source links currently require access to the private beta SDK repository.
See the SDK quickstart for package availability.
The examples are optional, not an additional service or CLI.
Choose a sample
Each sample has its own prerequisites and instructions. Only the Skill package
round trip is entirely offline. Runs and previews execute real hosted tools
and can incur cost or external effects.
Keep human decisions explicit
For an approval interface, present the interaction to the user first. Pass their decision and the exact interaction they saw to a function such as this:runs.reply with their exact interaction ID. Use the creating API key throughout.
See the SDK reference for waiting and continuation.
Keep Agents and Skills in Git
The Agents-in-Git sample uses ordinary JavaScript files. You can copy only the parts you need and use any Git host. A typical optional flow is:- Export current authoring content with its resource ID, workspace ID, and opaque revision. Review exports for sensitive content before committing.
- Edit Agent fields or the complete Skill package. Keep related files, action metadata, and unknown fields intact. Prompts can be ordinary text files your code reads into Agent instructions or Skills; there is no separate hosted Prompt synchronization API.
- Check
client.context.get()against the intended workspace and capabilities. Validate the candidate, then save only when you intend a remote draft update. Keep the server-returned content and revision together. - Preview only if useful and explicitly intended. Preview executes the saved
remote draft, not unsaved files. Exact Skill selections are top-level
{ skillId, version }entries, subject to edit access and Agent policy. - Publish the exact approved content separately. Publish required Skills first; no implicit dependency publication or atomic multi-resource deployment exists.
Testing is optional
The sample includes one opt-innode:test preview assertion. It is skipped
unless deliberately enabled, and is an example rather than an SDK dependency or
publication gate. Importing the SDK or sample helpers does not run an Agent.
Choose synthetic input and inspect possible tool effects before enabling a
hosted test. Never provide Erstan credentials to unreviewed pull-request code.
For application-only tests, the SDK’s fetch option allows a fake transport.
That can test your code’s handling of responses and errors, but it does not
simulate Agent execution or prove that a hosted integration works.