Tutorials

Keep two kinds of work apart

Give one machine a second Loadout for a different kind of work, switch between the two, and see where your hours went.

Some work wants different rules. Writing for a blog wants a voice and a style guide that would only get in the way while you code. In this tutorial you’ll give the laptop a second Loadout for writing, which takes everything from your default Loadout and adds to it. You’ll switch to it, work, switch back, and see the recap share out your week. It takes about twenty minutes.

You’ll need the laptop from the earlier tutorials.

1. Make the writing layer

  1. On GitHub, create a private repo called tackOS-layer-writing. Add it to your token.

  2. Add an AGENTS.md:

    tackOS-layer-writing/AGENTS.mdMarkdown
    # tackOS-layer-writing
    
    How I write for the blog: the voice and the style, for writing only.
    
    ## Voice
    
    Write in the first person, as one developer to another.
    Keep paragraphs to three sentences or fewer.
  3. Push it.

The scope line says “for writing only”. That’s why this layer doesn’t go in default: its rules would steer every coding session, too.

2. Make a folder Project for the blog

Your drafts don’t live in a repo, so make the Project a plain folder.

  1. Create the folder and its definition:

    ~/.tackOS/projects/blog/project.mdMarkdown
    ---
    project: blog
    dirs:
      - ~/writing/blog
    ---
    
    # blog
    
    Posts for the blog.
  2. Create ~/writing/blog, if it doesn’t exist yet.

A folder Project has no remote, so nothing backs it up, and only this machine sees it. For a log you want on every machine, use a repo, as kettle does.

3. Write the Loadout

Create ~/.tackOS/loadouts/writing/loadout.md:

~/.tackOS/loadouts/writing/loadout.mdYAML
---
extends: default
layers:
  - url: https://github.com/<you>/tackOS-layer-writing
projects:
  - folder: blog
---

extends: default means that writing takes every layer and Project of default, then adds its own. Its layers come after the parent’s, so they win where they disagree. It never lists tackOS, because the parent already does. It also needs no token of its own: it uses default’s.

Run /tackOS-sync. Sync clones the new layer, but leaves the agents wired to default, because default is still the Active Loadout.

4. Switch

Run:

Agent
/tackOS-switch writing

The switch writes writing to ~/.tackOS/loadouts/active, adds a line to ~/.tackOS/loadouts/switches.log, then rewires the agents. It ends with:

OutputTEXT
Switched: default -> writing
Check: ok

Sessions that were already open keep the old rules, so start a new one. Then run /tackOS-overview: it lists tackOS, base, laptop, then writing, and both Projects.

5. Write something

Start the agent in ~/writing/blog and draft a post. The agent now writes in your blog’s voice, and it still asks before it pushes, because base is still there.

The session belongs to blog, because you started it in one of its dirs.

6. Switch back

Run:

Agent
/tackOS-switch

With no name, the switch takes the only other Loadout, default. The writing rules are gone from new sessions, and the coding rules are as they were.

7. See where your time went

After a few days of both kinds of work, run /tackOS-recap. Its footer ends with your share of hours for each Loadout over the last 7 days:

The recap's footerTEXT
Layers: current · Projects: pulled: kettle · Pushes: ok · Retro: 2 days since last · Check: ok
Loadouts, 7 days: default 78%, writing 22%

Harvest knows which Loadout each session ran under from switches.log, and each Day Entry records it in its loadouts field. The recap shows the Projects of the Active Loadout. blog belongs to writing, so it shows only while writing is active.

What you’ve built

~/.tackOS/TEXT
~/.tackOS/
  loadouts/default/loadout.md   tackOS, base, laptop, and kettle
  loadouts/writing/loadout.md   default, plus writing and blog
  loadouts/active               the Loadout the agents are wired to now
  loadouts/switches.log         when each Loadout became active
  layers/writing/
  projects/blog/

You’ve finished the series. You’ve built a stack of layers, recorded your work in Projects, improved your rules with the Retro, run the same setup on two machines, and kept two kinds of work apart on one.

Next

  • To change the shape of your setup with the agent’s help, run /tackOS-manage, such as /tackOS-manage move the voice rules to the writing layer.
  • To pin a layer that someone else owns to a version, follow Pin a layer or use one read-only.
  • Loadouts explains how they extend and switch, and The Loadout file gives every field.