Skip to content

Conversation

@penberg
Copy link
Collaborator

@penberg penberg commented Nov 19, 2025

No description provided.

This switches the AgentFS SDK to use identifier-based API instead of
SQLite database files in preparation for adding sync to Turso Cloud.
With explicit agent filesystem identifiers, we can have a naming
convention to manage database files on the cloud, reducing agent
configuration.

Before this change, you would open an agent filesystem with:

```typescript
// Persisten filesystem:
const agent = await AgentFS.open('./agent.db');

// Ephemeral filesystem:
const agent = await AgentFS.open(':memory':);
```

Now you do the same with:

```typescript
// Persistent filesystem (creates `.agentfs/my-agent.db`):
const agent = await AgentFS.open({ id: 'my-agent' });

// Ephemeral filesystem:
const agent = await AgentFS.open();
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants