Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs-omnicoreagent.omnirexfloralabs.com/llms.txt

Use this file to discover all available pages before exploring further.

Workspace Files

Workspace files give agents durable file-style storage for notes, scratchpads, logs, todos, task progress, generated code, and research files.
The workspace has two clear areas:
  • files/ — agent-managed files for scratchpads, todos, progress, preferences, notes, subagent outputs, and generated work.
  • artifacts/ — runtime-managed tool output artifacts created by tool offloading and read back with artifact tools.
There is no separate workspace-files backend: choose the workspace backend once, and both areas use that same local, S3, or R2 workspace.

Workspace Backends

BackendUse CaseBenefits
localDevelopment, single-serverZero config, instant setup
s3Production, AWS infrastructureScalable, durable, global access
r2Production, edge computingZero egress fees, Cloudflare ecosystem

Quick Setup

Workspace files default to local disk. Choose S3 or R2 only when the whole workspace should live in cloud storage.
pip install "omnicoreagent[s3]"

Environment Variables

Local

OMNICOREAGENT_WORKSPACE_BACKEND=local
OMNICOREAGENT_WORKSPACE_DIR=./workspace

S3

OMNICOREAGENT_WORKSPACE_BACKEND=s3
OMNICOREAGENT_WORKSPACE_PREFIX=workspace
AWS_S3_BUCKET=my-agent-workspace
AWS_ACCESS_KEY_ID=AKIA...
AWS_SECRET_ACCESS_KEY=your-secret
AWS_REGION=us-east-1  # optional

R2

OMNICOREAGENT_WORKSPACE_BACKEND=r2
OMNICOREAGENT_WORKSPACE_PREFIX=workspace
R2_BUCKET_NAME=my-agent-workspace
R2_ACCOUNT_ID=your-cloudflare-account-id
R2_ACCESS_KEY_ID=your-r2-key
R2_SECRET_ACCESS_KEY=your-r2-secret

Workspace Files Tools

OmniCoreAgent exposes these tools for the files/ area:
ToolPurpose
workspace_file_viewView/list files in workspace files
workspace_file_writeCreate, append, or overwrite files
workspace_file_replaceFind and replace text within files
workspace_file_insertInsert text at specific line numbers
workspace_file_deleteDelete files from workspace files
workspace_file_renameRename or move files
workspace_file_clearClear the workspace files area

Backend Behavior

FeatureLocalS3R2
Persists across process restartsYesYesYes
Works without cloud credentialsYesNoNo
Shared across multiple machinesNoYesYes
Fits single-server developmentYesYesYes
Fits distributed deploymentsLimitedYesYes
Uses the same workspace toolsYesYesYes

Use Cases

Use CaseRecommended Backend
Local developmentlocal
Single-server productionlocal or s3
Multi-server / Kubernetess3 or r2
Edge computing / Workersr2
Cost-sensitive workloadsr2 (zero egress)

Example: Research Agent with Cloud Workspace

import os

# Set environment for S3
os.environ["OMNICOREAGENT_WORKSPACE_BACKEND"] = "s3"
os.environ["AWS_S3_BUCKET"] = "research-agent-workspace"
os.environ["AWS_ACCESS_KEY_ID"] = "AKIA..."
os.environ["AWS_SECRET_ACCESS_KEY"] = "..."
os.environ["AWS_REGION"] = "us-east-1"
os.environ["AWS_ENDPOINT_URL"] = "https://s3.amazonaws.com"  # Optional

agent = OmniCoreAgent(
    name="workspace_agent",
    system_instruction="Save durable notes, logs, task progress, and final output to workspace files.",
    model_config={"provider": "openai", "model": "gpt-4o"},
    agent_config={
        "max_steps": 50,
    }
)

# Agent can now save research notes that persist across:
# - Server restarts
# - Multiple instances
# - Different geographic locations
result = await agent.run(
    "Research recent AI developments and save a summary to /notes/ai_trends.md"
)
Use local for development. Use s3 or r2 when the whole workspace should persist across server restarts, multiple agent instances, or production deployments.