Skip to content

yansircc/agentOS

Repository files navigation

agentOS

agentOS is a TypeScript substrate for agent runtimes that need durable effect boundaries. It gives an agent a ledger, claim settlement, material resolution, tool admission, and package boundary contracts without making app policy part of the substrate.

Current release posture: 0.5.x active development. PUBLIC_API.md files guard against accidental exports; they are not API or schema freezes.

The core rule is simple:

ledger = durable truth
PreClaim = intended effect identity
MaterialRef = execution means
Cleanup/proof refs = release and verification vocabulary
projections = derived views

What It Owns

  • @agent-os/core: platform-free claim, material, tool, context, and BoundaryContract algebra.
  • @agent-os/runtime: backend-neutral runtime ports and projection contracts.
  • Runtime carrier modules: provider-neutral event vocabulary, claim settlement helpers, proof refs, and derived projections.
  • Runtime adapter subpaths: live provider materialization that resolves symbolic refs at execution time.
  • Client/runtime projection modules: non-durable streams and UI-facing wiring over ledger events, turn frames, and submit results.

What It Does Not Own

  • Product approval policy.
  • App scheduling policy.
  • Product-specific context selection or summarization.
  • Provider secrets, raw resource data, SQL, queue bodies, object bytes, or live SDK handles in ledger payloads.

Unsupported capability must fail closed. Do not add fallback behavior or shadow state to make a product flow appear complete.

Package Map

Package Role
@agent-os/core neutral substrate axioms, owner identity helpers, value brands, protocol schemas, shared errors, material refs, AgentSchema, tool algebra, and backend/runtime/LLM/telemetry vocabulary
@agent-os/runtime Effect Tag runtime programs, backend-neutral runtime services, projections, workspace-job observability joins, and optional-peer subpath adapters for Cloudflare, in-memory, Node, Effect AI, and OTLP telemetry.
@agent-os/client transport-neutral agent client store, typed command surface, and optional framework subpath bridges
@agent-os/cli developer command surface for generated projections, authored agent builds, structural checks, and distribution gates

See docs/runtime-packages.md for the full package surface.

Minimal Use

Author pre-runtime intent as files, not runtime wiring:

agent/
  instructions.md
  agent.json
  tools/
  workspace/reconcile.ts      # optional product policy

agentos.config.jsonc          # typed deployment data
.agentos/generated/           # ignored compiler projection
app/                          # optional product UI only

agentos.config.jsonc selects the versioned workspace macro, target, client bridge, LLM route refs, and workspace topology as typed data. The generated surface owns target wiring and the typed client; product code should not hand-write backend SubmitSpec, Durable Object wiring, identity glue, or stream glue.

Start at Build a natural-language workspace agent.

Documents

Verification

bun run check
bun run typecheck
bun run test
rm -rf /tmp/agentos-effect-scan && mkdir -p /tmp/agentos-effect-scan
effect-skill-scan /Users/yansir/code/52/agentOS --strict --output gate-json --evidence /tmp/agentos-effect-scan
git diff --check

Use effect-skill-scan /Users/yansir/code/52/agentOS --strict --output raw-json --profile only when you need the large raw scanner payload.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors