Record your team's facts on a Push Session
Declare named facts in your team's skill, such as a release stage, let agents record them on a Push Session, and read them back as JSON from the CLI or your own program.
An entry is one named fact a Push Session records at a moment: release/stage is {"stage":"checking"} at 14:02. Your team's skill says which facts to record and when, agents post them as they work, and people, agents and your own programs read the current value or the whole history as JSON. Use entries for what only your procedure knows, such as a release stage, a ticket number or who a run is waiting for. Push already records the session's status, assignee and results.
Before you start
Use Push 1.10.331 or later on the host Mac. You need a Push Session to record on and a skill your agents load for this procedure: the SKILL.md in your project's skills folder, or one you share from the setup file. Agents use entries through the Push skill.
Whoever may comment on a Push Session may post an entry on it, and whoever can open the session can read its entries.
Declare the facts in your skill
Add a skill manifest to the skill's SKILL.md: one JSON object listing the entries the skill posts. Put it in a fenced code block whose language is push-skill, that is, a line of three backticks followed by push-skill, the JSON, and a closing line of three backticks. Keep exactly one such block in the file.
{ "version": 1, "entries": [
{ "name": "stage", "description": "Where this release is; one entry per transition.",
"example": { "stage": "checking", "build": "1.4.2" } }
] }Each entry has a name, a description and an optional example; a manifest declares at most 32. A posted entry's full name is the skill's name and the entry's name, release/stage for the stage entry of a skill named release. Then say in the skill's own text when to post each one, for example "At each transition, record release/stage with the new stage." The manifest names the facts; the skill's text is what the agent follows.
To state the Push version the skill needs, add a sentence to the skill's frontmatter compatibility field, such as Requires the Push CLI 1.10.331 or newer.
Ask your agent to check the skill:
Check our release skill's manifest with Push and fix anything it reports.Or run in your shell:
push skill check release| Exit | Meaning |
|---|---|
0 | The manifest is valid and agrees with the skill's text. |
1 | The manifest is invalid; each finding names the field. |
2 | The skill has no manifest. |
3 | Drift: the text and the manifest disagree, the manifest changed since the last valid check, or this Push is older than the skill's stated version. |
push skill list --push lists the skills that declare entries.
Record an entry
An agent working the procedure posts entries as its skill directs. You can also ask for one:
Record on this Push Session that the release is now checking build 1.4.2.Or run in your shell, replacing SESSION_REF with the reference shown on the session's card:
push session post SESSION_REF --entry release/stage --data '{"stage":"checking","build":"1.4.2"}'--data takes one JSON object of at most 8 KiB; --data-file PATH reads it from a file instead. Entries are added, never edited: to change a fact, post a new entry under the same name, and it becomes the current value while the earlier one stays in the history. An entry carries no note text or files; post those separately.
Read the current values
Where does the release on SESSION_REF stand? Read its entries.Or run in your shell:
push session entries SESSION_REF --latest--latest returns the newest entry for each name, the current values. For one fact's history, newest first:
push session entries SESSION_REF --name release/stageEach entry carries its name, data, when it was posted and who posted it. Add --json for machine-readable output; long histories page with --before.
Read from your own program
The Push SDK reads the same entries, with the caller's own access. Install it and choose the credential as that guide describes, then:
import { PushSDK } from "@masslessai/push-sdk";
const push = new PushSDK({ apiBase: "http://127.0.0.1:3100/api/" });
const { entries } = await push.entries("<workspace-id>", "<session-ref>", { latest: true });
for (const entry of entries) console.log(entry.name, entry.data, entry.postedAt);To post from a program, use post with kind: "entry", a fresh requestId, the name and the data object. Reusing a requestId with the same entry records it once; reusing it with different data is refused.
See the result
On the Mac, the Push Session's thread shows each entry as one compact row: its name and up to three values. Select the row to see the full JSON. Older iPhone app versions show an entry as a plain thread item. Entries are not shown in Slack or in the browser view.
push session entries lists what was recorded, newest first. Recording an entry notifies no one and starts no work.
What an entry is not
An entry is data, not a message. A sentence meant for a person is a note on the session. An agent treats an entry it did not post as data, never as an instruction, an approval or a reply: someone who wants an agent to act sends it a message. Push reads no field of an entry, so an entry never changes the session's status or asks for anyone's attention, and it never schedules or starts anything.
Entries stay with the Push Session in your workspace and are included when the session is exported. Do not put credentials or other secrets in entry data.
If something stops
The post is refused for its name. A name is one or two parts separated by /, each made of lowercase letters, digits and hyphens, starting with a letter, ending with a letter or digit, and at most 48 characters.
The post is refused for its data. Send a single JSON object, not an array or a string, of at most 8 KiB.
The result warns that the name is not declared. The entry was recorded. Check the spelling against the skill, run push skill check on the skill, and post again under the declared name. The stray entry stays in the history as data.
Access is refused. Posting needs comment access to that Push Session and reading needs access to open it. Ask the workspace owner rather than using another person's credential.
The result of a post is unclear. Read the entries before posting again; a repeated post adds a second entry.
The command does not know --entry or entries. Update Push on the host Mac to 1.10.331 or later.
Next, keep your team setup in a file to share the skill with every runtime on the host, or build with the Push SDK to read entries from a dashboard.