tl fs for mounted workspace workflows such as mount, snapshot, sync, and promote.
Install and Configure
The SDKs use a Tensorlake API key from the environment.- Python
- TypeScript
Create and List Repositories
RepositoryClient is the entry point for repository operations.
- Python
- TypeScript
repos is a RepositoryClient created with from_env() or await fromEnv().
Inspect Branches and Refs
Useinfo when you want the repository URL, branches, and refs in one call.
- Python
- TypeScript
Get a Git Credential
Most SDK methods mint short-lived Git credentials automatically. Callcredential only when you need to hand a token to git, CI, or another HTTP client.
- Python
- TypeScript
Push a Local Worktree
push_worktree creates one commit from a local directory and updates a branch. It skips .git and honors .gitignore.
- Python
- TypeScript
expect_oid in Python or expectOid in TypeScript when you want the push to fail if the branch moved.
Merge Branches
Usemerge to merge one branch or commit into another without cloning the repository.
Preflight first when you want to see whether a merge is clean:
- Python
- TypeScript
clean: false and no commit.
Use materialize when you want conflicted files to land with standard Git diff3 markers:
- Python
- TypeScript
API Surface
| Task | Python | TypeScript |
|---|---|---|
| Create a repository | create(repo, default_branch=None) | create(repo, { defaultBranch }) |
| List repositories | list() | list() |
| Delete a repository | delete(repo) | delete(repo) |
| Fork a repository | fork(repo, base_repo) | fork(repo, baseRepo) |
| Archive or restore | archive(repo), restore(repo) | archive(repo), restore(repo) |
| Repository URL | url(repo) | url(repo) |
| Branches and refs | info(repo), branches(repo), refs(repo) | info(repo), branches(repo), refs(repo) |
| Delete a branch | delete_branch(repo, branch) | deleteBranch(repo, branch) |
| Operation history | operations(repo) | operations(repo) |
| Git credential | credential(repo=None) | credential(repo) |
| Push local files | push_worktree(repo, root, branch, message, expect_oid=None) | pushWorktree(repo, { path, branch, message, expectOid }) |
| Push job status | commit_status(repo, job_id) | commitStatus(repo, jobId) |
| Merge branches | merge(repo, ours, theirs, ...) | merge(repo, ours, theirs, options) |
| Conflict records | commit_conflicts(repo, commit) | commitConflicts(repo, commit) |
Next Steps
Git Workflows
Use the same repositories with ordinary
git clone, git push, and git fetch.Generated Code
Store code, docs, and assets produced by coding agents at repository scale.
Merging Changes
Learn the merge behavior behind SDK and CLI merge operations.