Skip to content

About

ASIF - an open, vendor-neutral specification for exchanging AI agent sessions, including conversation history, attachments, tool interactions, and continuation state.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Session Interchange Format (ASIF)

Your agent's work should be portable across tools, computers and clouds.

Changing environments can mean manually rebuilding the brief, finding the right files and explaining decisions an agent already made. Another agent needs those details to make a useful next step.

ASIF is a proposed open format for agent sessions. It records the conversation together with selected model inputs, instructions, files, tool results, decisions and unfinished work. The goal is to make that work portable and understandable to another implementation, so people can change environments or bring in another agent without rebuilding the session by hand.

Documentation website · Try ASIF · Compatibility · Contribute · Specification

Why ASIF?

Move sessions between computers and clouds

Start a task on your laptop, move it to a cloud worker for a longer run, and bring the results back to your desktop. A useful handoff includes the working files, relevant conversation, instructions, completed tool calls and remaining tasks.

ASIF gives implementations a common way to describe that handoff: a checkpoint, the context to continue from, resource contents and the destination's prerequisites. Logical workspace roots can be mapped to new paths, and missing tools, files or access can be identified before work resumes.

The another-computer example illustrates a macOS/ARM session assessed for a Linux/x86 destination. It includes a workspace mapping and a synthetic destination report.

Let different agents contribute to the same session

A researcher from one provider could collect evidence, a writer from another could draft a proposal, and a reviewer could check it. Each contribution retains its author, and each execution can identify the context it received.

Agents can share the same task brief, source documents and recorded decisions while receiving instructions for different roles. Later agents can receive earlier contributions explicitly, so the review or handoff is part of the session's record.

Try the writer, reviewer and editor example. It models three fictional providers working on one workshop proposal, with a separate input context for each agent.

Sharing context means sharing declared inputs. Agents with different roles have different instructions, and later participants may see additional results. ASIF makes those differences visible. Provider adapters still need to account for model limits, tool behavior and instruction handling; shared inputs do not guarantee identical answers.

More ways to use a portable session

Situation What ASIF helps preserve Example
Switch agents midway through a task Prior decisions, selected context, tool results and unresolved work, with any adaptations declared Another-agent handoff
Ask another model for a second opinion An explicit common input and separately attributed responses; each model's actual inputs remain inspectable Compare approaches
Hand a project to a teammate The brief, supporting files, decisions and next steps, including gaps in the capture Team handoff
Move research or document work Images, PDFs, audio, extracted text and their relationship to the model's inputs Attachment examples
Continue a long project after summarization Original evidence, retained summaries and a record of what remains in active context Compaction example
Inspect an interrupted workflow Known results, pending decisions and operations whose outcome still needs checking Unresolved remote operation
Keep a record that another tool can inspect Stable identities, provenance, content digests and explicit missing or transformed data Archive and inspect

See the use-case walkthroughs for the handoff steps and what an integrating application needs to provide.

What works today?

ASIF 0.4 is a review draft of the session data model. Changes and migration from 0.3 explain the compatibility boundary. This repository includes schemas, checked synthetic examples, and locally authored Python and TypeScript CLIs for validation, neutral request projection, selected file-tree restoration, packaging/signatures and redaction auditing.

The workflows above are integration goals. Real source/destination adapters, provider request encoding, live multi-agent coordination and independent interoperability evidence remain outstanding. ASIF describes shared session data; an application must implement agent scheduling, access control, synchronization and import. A valid session or a synthetic ready report does not establish that a destination can execute it. See the compatibility and evidence matrix, implementation scope and remaining gaps.

Help test the handoff

If you build agents, coding tools, cloud runtimes or orchestration systems, bring a session that exposes a missing requirement. Useful contributions include a small sanitized example, a documented adapter limitation, or reproducible exchange results from an independent implementation. Start with the contribution guide or adapter guide.

The next integration milestone is a real source export, destination assessment, authorized next interaction and return export with recorded losses. It remains unproven; the live-handoff checklist defines the evidence to collect.

The team behind Ondago started ASIF as a vendor-neutral proposal. You can implement it without an Ondago product or account. External implementers can contribute through this repository; the governance charter remains proposed.

Explore the format

The format distinguishes recorded events, selected branch history and actual model input. This lets a receiver understand both what happened and what information an agent used. The specification defines these relationships and the rules for preserving them.

Python quick start

With Python 3.11+, run from the project directory:

python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python asif.py validate examples/image-and-document.session.json
.venv/bin/python tests/check_schema.py
.venv/bin/python tests/check_examples.py
.venv/bin/python tests/check_continuation.py
.venv/bin/python tests/check_reference.py
.venv/bin/python tests/check_documentation.py

See REFERENCE.md for all nine commands and their supported scope.

TypeScript quick start

With Node.js 24+:

npm ci
node asif.ts validate examples/image-and-document.session.json
npm run typecheck
npm test

The TypeScript CLI supports all nine Python commands. Its supported numeric, ZIP and workspace-pattern ranges are documented in REFERENCE.md.

License

MIT, covering this project's specification, schemas, examples and reference implementations. See third-party notices for retained dependency/data licenses.

About

ASIF - an open, vendor-neutral specification for exchanging AI agent sessions, including conversation history, attachments, tool interactions, and continuation state.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages