Just as .gitignore and .editorconfig travel with a repository, a .tmatic file in your project root declares how Tokematic handles privacy, sync timing and sandbox defaults for that folder.
Your work. Your control on YouTube
Transcript
tmatic is for people who want direct control. Choose when to send your recorded work, find the session behind a change and open a shell where you need it. We're using the Mac app's command-line tool. Let's start with the work, not a list of switches.
Push sends eligible records under your sharing rules. Pull receives records into your local store. Use the dry run to preview what a push would send. These commands give you a manual path. If you want sending to be manual only, check your automatic sync settings too.
Think of tmatic log as a history of your recorded work. Use the short view to scan recent sessions, or search for a topic. Here, retry is our example. This is useful when you remember the problem you worked on but not which conversation it was in.
Git can tell you which commit changed the code. Pass that commit to tmatic blame to find the recorded session associated with it. That can help you investigate a bug or understand why a feature works this way. Unlike git blame, this command takes a commit hash, not a filename and line number.
Then use tmatic show with the session ID from the result. You can read the available detail or narrow it to a few turns. A recorded commit link is the strongest clue. A match based on time and project is a lead to check, not proof that this session caused the bug.
This history covers work recorded in sessions and available to you. If a teammate's work wasn't recorded or shared, that part of the story can be missing. The more of the team that takes part, the more useful the shared history becomes. Access and recording still decide what you can see.
These history tools come with the Mac app's command line. The standalone collector has a smaller command set. If log is missing, check which tmatic you installed. Use help for the command you need, or open the manual for a longer explanation.
Use push and pull when you want to move records. Use log, blame and show when you want to understand the work behind a change. Next, we'll make opening a sandbox feel much like opening another shell.
The file is optional. Repositories and standalone work folders become projects
automatically. You do not need a .tmatic file to create a project. Adding Git
to a folder-based project keeps its earlier work.
Inspecting Effective Project Rules
Run tmatic project inside any directory to see which .tmatic file governs that path and what settings are active:
tmatic project
tmatic project /path/to/repo --json
Example .tmatic Configuration
Create a .tmatic JSON file at the root of your repository:
{
"private": false,
"sync": {
"mode": "on_push"
},
"box": {
"target": "docker",
"harness": "claude",
"image": "tokematic-yolo:latest",
"packages": ["graphviz"],
"mount": "repo",
"ports": [3000, 8787],
"idleStopMinutes": 30,
"apply": "branch"
}
}
Keeping Personal and Side Projects Private
When you use the same laptop or AI subscriptions for both company repositories and personal work:
- Set
"private": truein a personal repository's.tmaticfile to mark that project private on disk. - Combine
.tmaticwith#/sharing(Custom mode) so only explicitly granted work projects are disclosed to your organization, while unshared side projects and scratch experiments stay in your personal account or on your devices, according to your sync choice.
Everything consent includes personal projects and private repositories. The "private": true setting does not override that consent. Choose Custom or Nothing for each organization you want to exclude from that work.
Controlling When Work Sends (sync.mode)
Use sync.mode in .tmatic (or tmatic send from the CLI) to control when recorded sessions for a workspace leave your machine:
- Automatic: Sessions sync as the background collector records them.
on_push: Sessions stay local while you iterate on a branch and send when you push commits (git pushortmatic push).
Setting Per-Repository Sandbox Defaults (box)
The box block in .tmatic sets project-wide defaults for tmatic box:
target: Default sandbox target (docker,sprite,gcp,awsor a named host frombox.json).harness: Default agent CLI (claude,codex,agy,kimiorshell).image: Default Docker image tag for local sandboxes (for exampletokematic-yolo:latest).packages: Extra Debian (apt) packages layered into the sandbox image when built.mount: Declarative workspace mount scope (repofor the Git repository root orcwdfor the current directory).ports: Preview ports forwarded automatically ontmatic boxlaunch.idleStopMinutes: Idle timeout before a cloud sandbox stops automatically.apply: How remote box changes are handled on exit (branch,worktreeorask).
Command-line flags always override .tmatic, and .tmatic overrides your user-level defaults in box.json. Update .tmatic from the CLI or check the resolved source (cli, .tmatic or default) at any time with:
tmatic project box --target docker --harness claude --mount repo --package graphviz --port 3000
tmatic box status
Related Guides
- Running Unattended Agents in Isolated Sandboxes
- Organization Sharing: Everything, Custom and Nothing
Next video: Local sandboxes: Another shell. A separate space
2. For Engineers: Pace, Sandboxes & Proving Value
All guides.tmatic2.7Git-Style Session History, Blame and Automated Summaries2.8Winning Tooling Arguments with Real Model Comparisons2.9Use the Tokematic API2.10Share a session2.11Why Earlier Session Logs May Be Missing2.12Notification settings2.13Browser notifications for alerts