tblock
engineering skills, playbooks and principles for coding agents
for claude code and github copilot
tblock makes your agent work the way a careful engineer does:
- name the data shape before writing code
- keep diffs small and inside the files the task needs
- prove it works in the running app, and show you the evidence
- ask first before anything leaves your machine: a push, a pr, a ticket, a deploy
it started from pstack and adds a ui focus, model roles, and a guard on outward-facing actions. new here? open docs/tblock-101.html in a browser for a short interactive tour.
install
claude code
claude plugin marketplace add tommyc10/tblock
claude plugin install tblock@tblock
github copilot cli
copilot plugin install tommyc10/tblock
github copilot in vs code: add tommyc10/tblock to chat.plugins.marketplaces, then install tblock from agent plugins.
copilot caches plugins, so reinstall tblock after an update.
set up
/setup-tblock pick a preset, review your models, done
/setup-project per repo: logs, ticket labels, grafana, verification
/setup-tblock writes ~/.tblock/roles.md and offers to add a tblock command to your terminal. if you use both claude code and copilot, run it once in each, since they name models differently. after that, tblock preset <name> switches both.
/setup-project writes to the repo's .tblock/ folder. it holds no secrets, so commit it and your team shares the setup.
use
/tblock-mode <task>
tblock-mode sizes the task, says so, and picks the playbook that fits:
| size | what you get |
|---|
| small | a question or one-file fix: the goal, the steps, the proof. no subagents |
| standard | the full playbook with a todo list |
| deep | a migration or shared code: adds a design sketch, an adversarial review and a decision trail |
say "go deep" or "keep it small" to choose yourself, or "use gpt for code today" to change a role for one session.
tblock works without asking on local, reversible work: reading, editing, builds, tests and local commits. it always stops before pushing, opening or merging a pr, posting, deploying or deleting. tblock guard on has the harness itself enforce that.
presets
a preset sets every role's model and effort at once.
| preset | for | shape |
|---|
max | hard design, risky changes | top models, high to max effort, three-seat panels. in claude code, fable takes hardest and a panel seat |
balanced | features and reviews (default) | top models think, strong models do the work |
lean | everyday bugs and small changes | strong models, medium effort |
tblock preset # list them, with your models
tblock preset balanced # switch
tblock preset balanced --effort=+1 # same models, every role thinks harder
tblock roles set "code=sonnet @ high" # change one role
a preset never quietly resets a role you changed by hand. it lists them, and --keep-edits keeps them. the presets live in presets.json.
roles
| role | used for |
|---|
code | delegated changes in feature, bug fix, perf and hillclimb |
hardest | cross-cutting design, concurrency, subtle algorithms |
judgment | explanations, and judging other agents' work |
reviewers | the interrogate and ui-council panels |
swarm workers | swarm workers |
shootout runners / judges | shootout attempts and their judges |
a few rules of thumb:
- put your strongest model on
hardest and judgment. they run rarely.
- give
judgment a different family from code, so a second family checks the work.
- use a fast model for
swarm workers. many run at once.
- in copilot, seat two or more families on each panel. claude code runs only claude models, so its panels mix tiers, and each reviewer gets its own lens.
max adds fable, which counts as its own family.
with no roles file, every subagent runs on the session model.
cli
tblock ships a small node cli with no dependencies. /setup-tblock puts it on your path as tblock, or run tblock command on.