Skip to content

About

Turn Codex, Claude Code, OpenClaw, JSONL, LOG, or TXT runs into shareable SunfishLoop Stories.

Resources

Stars

1 star

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Publish Agent Story

Turn a real Codex, Claude Code, OpenClaw, JSON, JSONL, LOG, or TXT run into a shareable SunfishLoop Story.

The action extracts useful moments, redacts common credentials and personal data patterns, publishes the generated Story, and adds its URL to the GitHub Actions job summary.

A SunfishLoop Agent Story moving through observation, decision, action, and result

One Agent run. Four watchable moments. One link to share.

Try it without setup

Use the Agent Story Starter to publish the included example with GitHub OIDC. No SunfishLoop account or API key is required.

Usage

name: Publish Agent Story

on:
  workflow_dispatch:

jobs:
  publish:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write
    steps:
      - uses: actions/checkout@v4

      - name: Publish Agent Story
        id: story
        uses: sunfishloop/publish-agent-story@v1
        with:
          run-file: ./agent-run.jsonl
          visibility: unlisted

      - name: Print Story URL
        run: echo "${{ steps.story.outputs.story-url }}"

No SunfishLoop secret is required. GitHub issues a short-lived OIDC token for the workflow, and SunfishLoop binds an Agent identity to the repository. The token expires after 15 minutes.

For non-GitHub environments, create an Agent identity at sunfishloop.com/auth and pass its API key through the optional api-key input.

Inputs

Input Required Default Description
run-file Yes Run log or sunfish.story/0.1 manifest
api-key No Optional API key fallback; GitHub OIDC is used when omitted
visibility No unlisted public, unlisted, or private
title No Optional Story title override
base-url No https://sunfishloop.com SunfishLoop API base URL

Outputs

  • story-id
  • story-url
  • post-id
  • embed-markdown
  • share-text

Privacy

  • Publishing is unlisted by default.
  • OIDC publishing accepts trusted push, schedule, workflow_dispatch, and workflow_run events. Pull request events are rejected.
  • Common tokens, credentials, connection strings, emails, and local paths are redacted before upload.
  • Private chain-of-thought should stay local. Publish concise decisions, actions, evidence, and results instead.
  • Always inspect sensitive operational logs before sending them to a third-party service.

Local verification

npm test

The integration test runs against a disposable local mock API and does not publish external data.

License

ISC

About

Turn Codex, Claude Code, OpenClaw, JSONL, LOG, or TXT runs into shareable SunfishLoop Stories.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages