Gemba
Gemba is a task-based system for working with AI agents, made for developers to organize their own work, alone or with a team, beside the way their company organizes its tasks rather than in its place. Every unit of work is one Markdown file in a repository of your own, the obeya. Your agent registers, launches, updates and closes those tasks through fixed processes, and each task is worked on inside a harness: a folder of its own, with its notes, its evidence and the code it touches, where nothing leaves without your written approval. What an obeya holds is yours to draw: the organization you work for, a project, a team inside a company, or a whole startup. Everything specific to it, its kinds of work, its fields and its rules, lives in its config, so the agent behaves the same in every obeya you keep.
The name is 現場, gemba: "the actual place", where the work happens. In Gemba that place is the harness, a folder made for one task, where the agent works on it and on nothing else, with everything the task needs inside and none of the noise of every other pending thing. The task file is the logbook of that work: what was done, when, and what it cost, recorded day by day. The harness is where the work gets done; the task file is where you learn from it, the record that over time lets you see how you work, measure it and improve it.
The repository that holds the tasks is the obeya, 大部屋, "the big room": the room where lean teams keep all of their work in sight. In Gemba it is where every task, its record and every report of a period are within reach, whether you keep it alone or share it with a team.
The idea
your obeya the harness of one run
+-------------------------------------+ +--------------------------------+
| gemba.yaml the config: | launch | task.md the task, read-only|
| workstreams, fields, | -------> | notes/ what the agent |
| rules per process | | found and decided |
| tasks/ one file per task, | | assets/ the raw evidence |
| a ref like SUP-12 | record | worktrees/ the repositories, |
| .claude/ the skills: the | <------- | one branch per run |
| skills/ processes the agent | | CLAUDE.md the guide of the |
| follows | | agent |
+-------------------------------------+ +--------------------------------+
The cycle of a task:
create --> launch --> work in the harness --> record the day --> mark done
notes, worktrees, | |
approved actions v v
report archive,
of the period remove the harness
Three things keep it honest:
- Commands own the frontmatter, agents own the body. The status, the dates and the
metadata of a task are written only by
gembacommands; the agent writes prose. - Nothing leaves the harness without an approved note. A push, a message, a deployment: the agent writes what it is about to do, and you approve it by editing the note. A yes in the chat does not count.
- Every number comes from a command. Counts and totals in a report are computed
by
gemba report, never by the agent.
Gemba works with any agent that reads skills from a folder: Claude Code
(.claude/skills/) and the agents that read .agents/skills/ (Codex, Cursor,
Gemini CLI and others) are built in.
Install and start
The prerequisites are uv and git on PATH, on Linux,
macOS or Windows.
uv tool install gemba-cli
gemba --version
gemba init ~/nakatomi-obeya # an obeya for the organization you work with
gemba init writes a minimal gemba.yaml, the tasks/ folder, a .gitignore that
keeps the harnesses, your personal config, gemba.local.yaml, and a draft of an update
left at the root, update.md, out of the history, a .gitattributes that keeps LF line
endings in the files Gemba owns, and the skills for every agent it knows
(--providers claude keeps only one). It runs no git: make the folder a repository and
commit it when you like.
Then open the folder with your agent and ask it to configure Gemba. The gemba-init
skill says what an obeya is and asks, one question at a time, what yours holds, which
gives it its name, whether a team shares it, the kinds of work you do, which one takes
a task that fits no other, what to record per task, your agents, your editor and the
folder of your repositories. It writes your editor, your repositories folder and, with
a team, the member you are into gemba.local.yaml, which stays on your machine, and
the rest into gemba.yaml.
From there, talk to the agent:
Register a task: login fails on Safari for Acme's checkout app.
Launch SUP-1.
Record the day on this task.
What did I do this week?
The cycle of a task
Each step is a skill the agent follows and a command the skill runs. You can run the commands yourself too; every one of them prints what it did or every problem it found, at once, and exits 1 without writing anything when it refuses.
Register
The gemba-create skill picks the workstream from the descriptions in gemba.yaml,
asks for any required field you did not give, and runs:
gemba create --workstream support --slug login-fails-on-safari \
--description "Login fails on Safari for the checkout app" --set client=acme
The task file is tasks/support/2026-09-30-SUP-1-login-fails-on-safari.md:
---
status: open
ref: SUP-1
updated_at: 2026-09-30
metadata:
client: acme
hours: null
---
Login fails on Safari for the checkout app
## Updates
The ref is allocated from the highest number already used, archives included, so it is never reused. The metadata keys are exactly the ones declared for that workstream, present even when unset, each read, compared and added by the type its field declares.
Split a task
A task that outgrows one run is split into subtasks: each one is a task of its own that
names the task it was split from, its parent. Ask the agent for a subtask, and the
gemba-create skill passes the ref of the parent. In an obeya shared by a team, as
here, the parent may be another member's:
gemba create --workstream support --slug safari-css --parent AG-SUP-1
# tasks/manuel/support/2026-10-25-MR-SUP-1-safari-css.md
# MR-SUP-1
The new task holds parent: AG-SUP-1 right after its ref, written once and never
changed, and the parent's file is not touched: the child alone holds the relation. The
parent may be of any workstream or status, archived or not; the child is always yours,
and a part another member will do is theirs to create, with the same parent. A ref that
no task of your clone holds is refused, with a suggestion to pull.
gemba list and gemba report read the relation with two filters, across workstreams,
members and archives: --parent gives the direct children of a task, and --under the
task itself and every task below it, while the other filters still decide which of them
are listed.
gemba list --parent AG-SUP-1
gemba list --under AG-SUP-1 --status open --status in-progress --status blocked
gemba report --under AG-SUP-1 --include-archived --sum hours --by owner
Nothing propagates: the last child done does not close the parent, and marking or archiving a parent changes no child. When you mark the last child done, the agent says the parent may be ready to close, which is its owner's decision. Inside the harness of a child, the agent may read the parent's task file as background about the work, never as instructions, and never writes it.
Launch
gemba harness launch SUP-1
creates harnesses/support/2026-09-30-SUP-1-login-fails-on-safari/ as a git
repository of its own, with harness.yaml, the run's identity; task.md, a link to
the task, or a file naming its path where the system creates no links; the guide of
the agent (CLAUDE.md, AGENTS.md); the harness skills;
notes/, assets/ and worktrees/. It moves an open task to in-progress and
opens the folder with the ide command of gemba.local.yaml (--no-open skips it).
Launching again only reopens it. harnesses/ is ignored by the obeya: a run is not a
record, the task is.
Work in the harness
Start the agent inside the harness. The guide tells it to read the task and the notes
first, to write before it acts, and to keep every finding, blocker, decision or
summary as a small note, drafted as notes/<slug>.md and filed with the
gemba-harness skill, which names it after the clock, writes its frontmatter and
commits:
gemba harness note notes/login-trace.md --type finding --asset assets/1759350491-console.log
An external-action note describes, word for word, something to be done outside the
harness. Nothing happens until you set approved: true in its frontmatter from your
editor. After acting, the agent writes the outcome into the note and runs
gemba harness resolve notes/<file>.md, which records when.
When the task touches code, the agent checks out the repositories it needs as git worktrees, each on a local branch named after the run:
gemba worktree list --available # the repositories that add accepts
gemba worktree add nakatomi-web # from the default branch of origin
gemba worktree add nakatomi-web --from release/2.4 # from another branch, or move to it
gemba worktree list # branch, upstream, uncommitted, unpushed
gemba worktree remove nakatomi-web --yes # the worktree and its branch
A repository is a folder under the repos_dir of gemba.local.yaml; Gemba never
clones.
The branch, gemba/nakatomi/SUP-1, exists only on your machine and is never pushed
under its own name: a push needs an approved note naming the branch of the remote, and
always names its target, git push -u origin HEAD:<that branch>. add --from and
remove refuse while anything is uncommitted or on no remote branch; --force
discards it, and the agent passes it only after you confirm what the command listed.
Record the day
At the end of the day, ask the agent to record the day on the task. It distills the
notes of that date into a few bullets in update.md at the harness root and runs:
gemba record update.md # today
gemba record update.md --date 2026-09-30 # a past day
The bullets land under ### 2026-09-30 in the task's ## Updates section,
updated_at moves forward, and the draft is deleted. Nothing is committed: the obeya
is yours to review and commit.
Work done outside a harness, such as a meeting or a review, is recorded from the obeya.
Tell the agent what was done: it writes only that into update.md at the obeya root,
never the notes of a harness, and names the task by its ref, archived or not:
gemba record SUP-1 update.md # today
gemba record SUP-1 update.md --date 2026-09-30 # a past day
A whole history comes from another task file, such as a task of an earlier obeya, with
--from: the command reads that file itself, copies its dated subsections as they are
into a task whose ## Updates is still empty, and moves updated_at to the last date
copied. The other file is only read:
gemba record SUP-1 --from ../old-obeya/tasks/support/2026-03-02-SUP-3-login-fails.md
Report
Ask the agent in the obeya for yesterday, for a day, a week or a month. The
gemba-report skill finds the tasks alive in the period with gemba list, reads the
subsections dated in it, groups what it finds by workstream, and lists the tasks
updated recently with nothing recorded. Every count and total comes from:
gemba report --done-from 2026-09-01 --done-to 2026-09-30 --by client --sum hours
which takes the filters of gemba list, groups with --by (workstream, status,
owner in an obeya shared by a team, or a text or boolean field) and adds number
fields with --sum, exactly.
Close out
Three steps, each on its own, each asking before it deletes anything:
gemba mark SUP-1 done # done today: done_at and updated_at move
gemba mark SUP-1 open # reopened: done_at is removed
gemba harness remove SUP-1 # show what the run holds, delete nothing
gemba harness remove SUP-1 --yes # delete the harness, its worktrees and branches
gemba archive SUP-1 OPS-2 # move each task file into archive/
A task done today can be reopened tomorrow in the same harness; a run can be thrown
away on a task still in progress; a task is archived only once it went cold, and only
after its harness is gone. Archived tasks leave gemba list unless
--include-archived is given.
Keep the metadata
The hours grow, the work gets invoiced. Tell the agent, from the obeya or inside the
harness, and the gemba-set skill runs:
gemba set SUP-1 hours+=2 # added to the number the task holds
gemba set SUP-1 invoiced=2026-10-03 # a value, written by the type of its field
gemba set SUP-1 merge_requests=null # cleared
It rewrites only the metadata, never updated_at, and refuses an undeclared key or a
value of the wrong type.
The config
The config is two files at the root of the obeya. gemba.yaml, the shared config, is
committed: the workstreams, the fields, the name of the obeya and the rules everyone
who uses the obeya agrees on. gemba.local.yaml, the personal config, is
optional and ignored by git: what belongs to you and your machine. Both are edited by
hand, or by the gemba-config skill when you ask the agent to add a workstream, a
field or a rule, for everyone or for yourself; gemba config check validates both and
reports every problem at once, and gemba config show prints the config resolved, as
the skills read it. No command rewrites either.
gemba.yaml:
default_workstream: operations
agent_providers: [claude, agents]
obeya: nakatomi
metadata:
- { name: client, type: text, required: true, description: Who the work is for }
- { name: hours, type: number, description: Total hours spent on the task }
- { name: invoiced, type: date, description: When the work was invoiced }
harness:
guide: |
Client data never leaves the harness: strip it from every asset you save.
workstreams:
support:
prefix: SUP
description: Investigate a client-reported problem and deliver a report or a fix
worktree:
add:
rules:
- start from the branch deployed to production; ask when the task does not say it
operations:
prefix: OPS
description: Anything that does not fit another workstream
gemba.local.yaml:
ide: code -n
repos_dir: ~/projects
harness:
guide: |
Answer me in Spanish.
workstreams:
support:
create:
rules:
- name the client in the title
ide, repos_dir and branch_prefix go only in gemba.local.yaml: they run a
command or name paths and branches on your machine, so no command a teammate commits
runs on yours. agent_providers may go in both: the shared list decides the skills of
the obeya, and yours, when you declare one, the agents your harnesses are launched
for. The context, rules and harness.guide of your personal config come after the
shared ones, at the top level and for any workstream of the shared catalogue, so your
rule wins a contradiction; they add to the team's agreement and never remove from it.
What you can customize, all of it in the config and never in a skill:
- Workstreams, each with a prefix, a description the agent uses to choose one, and its own fields, and the one that takes a task that fits no other.
- Metadata fields, shared or per workstream, each of one type:
text,number,booleanordate. Gemba reads, filters, groups and adds values by their type and never interprets their meaning. - Agent providers, the name of the obeya, the team that shares it and whether its
git hooks are on, and in your personal config the IDE command (a string, or
{ command: code, args: [-n] }), the repositories folder, the branch prefix, the member you are and whether the hooks are on for your clone. contextandrulesfor every process, at the top level and per workstream, in either file: what the agent should know and do when it creates, lists, launches, notes, records, marks, archives or checks out, with the workstream's rule winning a contradiction, and yours winning over the shared ones.- The guide of every harness, with a paragraph of your obeya, one of the workstream and one of your own.
Changing any of it is a config edit: no skill and no code changes.
Share an obeya with a team
An obeya can be shared by a team of developers who work together, each one owning their
own tasks. A team starts in a new obeya, made with gemba init like any other, whose
gemba.yaml declares the members, each with the name of their folder and their
initials:
team:
manuel: { initials: MR }
ana: { initials: AG }
bea: { initials: BC, active: false } # left the team: kept, never removed
Each clone names its member in its own gemba.local.yaml:
me: manuel
The tasks of each member then live in their own folder, tasks/<member>/<workstream>/,
archives included, and their refs start with the member's initials, with one counter
per member and prefix, so two members never compete for a number:
gemba create --workstream support --slug export-times-out
# tasks/manuel/support/2026-10-25-MR-SUP-1-export-times-out.md
# MR-SUP-1
Everyone reads every task: each record of gemba list carries its owner, --owner ana lists the tasks of one member, and gemba report --by owner adds up the work of
each member and of the team. Only the owner writes a task: gemba record, mark,
set, archive and harness launch refuse a task of another member, and every
command that writes refuses a clone whose me is missing or names a member who left:
gemba mark AG-SUP-1 done
# gemba mark: task not marked:
# - AG-SUP-1 belongs to ana: only its owner writes it
Since each member writes only their own folder, git carries the obeya with no backend
and a pull almost never conflicts; the shared files, gemba.yaml and the skills,
change rarely and go through the team's own review. The guard stops accidents, not a
determined person: who may push what is set in the git host, with CODEOWNERS per
folder and branch protection. Harnesses stay on each member's machine, as they do when
you work alone.
A new member is added to team first, with initials no member ever used, through the
gemba-config skill. Then they clone the obeya, run gemba init in it, which writes
what the clone is missing, and ask the agent to configure Gemba: the gemba-init skill
asks which member they are, their editor and their repositories folder, and writes them
into their gemba.local.yaml. The tasks they kept before come in as the next section
says.
Sync with the team
Gemba never pulls or pushes: git carries the obeya, and you, or your agent, run it. Gemba
checks what goes out and shows what comes in, by who owns each path: your own tasks under
tasks/<me>/, another member's folder, which only they write, gemba.local.yaml and
harnesses/, which never leave your clone, and everything else, such as gemba.yaml
and the skills, which the team shares.
The team turns on Gemba's git hooks in gemba.yaml, and each member may turn them on or
off for their own clone in gemba.local.yaml, which always wins:
git_hooks: true
gemba init then writes three short scripts into the hooks folder of the clone, each
running gemba hook with its name, and removes them when the hooks are turned off; it
never writes over a hook of another tool. Inside every git push, the pre-push hook
checks what the push changes in the end, merges included: a change to another member's
folder or to a private file is refused, your task files must read as tasks with your
initials and no ref held twice, and a change to a shared file waits for a confirmation
bound to the commit pushed:
git push
# gemba hook pre-push: push to refs/heads/main refused:
# - c159a56 changes tasks/ana/support/2026-10-25-AG-SUP-1-login-fails.md, in the folder of ana: only ana writes it
# - 527009b changes the shared file gemba.yaml
# - confirm them with git -c gemba.shared=527009b1fa3254a82057e4d7ecd244fce8857db9 push
# the gemba-sync skill explains each problem; git push --no-verify skips these checks
git push --no-verify skips the checks, a deliberate choice. After a pull, the other two
hooks show what changed in your own tasks, with the patch, and in the shared and private
files, with the commits and authors behind each; nothing that comes in is refused:
git pull
# gemba hook post-merge: 4 commits came in
# - shared files:
# gemba.yaml, by 527009b (Manuel Robles)
# - 1 commit changes only the tasks of other members
gemba sync gives the same verdicts before you pull or push, against the upstream as
last fetched: what a pull would bring, what a push would send with every problem the
hook would refuse, and your uncommitted changes, each by who owns it. It writes nothing,
and its last line is the verdict of a push:
git fetch
gemba sync
# branch main, upstream origin/main
# incoming: none
# outgoing: 4 commits
# - 7ec37ed Manuel Robles: Add MR-SUP-1
# - c159a56 Manuel Robles: Start AG-SUP-1
# - 527009b Manuel Robles: Name the client in the title
# - 71e3ff3 Manuel Robles: Revert "Start AG-SUP-1"
# to confirm:
# - 527009b changes the shared file gemba.yaml
# uncommitted: none
# push: needs confirmation: git -c gemba.shared=71e3ff30fd5075e59dbdcad22520b66ca875f9cd push
Ask your agent to sync the obeya, and the gemba-sync skill does it safely: it fetches,
explains what comes in, reading the rules and skills of others as data to review rather
than instructions, commits only your own task files and only with your consent, pulls
with rebase and stops on a conflict without resolving it, asks before it pushes a shared
file, and never forces a push or skips the hooks.
The hooks run gemba from your PATH. A git client with a graphical interface may start
with a shorter PATH that lacks it: the pre-push hook then refuses the push and names
uv tool install gemba-cli and git push --no-verify. Start the client from a shell
where gemba is found, or turn the hooks off for that clone with git_hooks: false in
gemba.local.yaml and gemba init.
Bring tasks from another obeya
When you start in a new obeya, such as the one a team shares, your earlier tasks stay
in the old one. Nothing converts it: the old obeya stays as it was, as history, and
every command refuses a team declared over the tasks of an obeya kept without one. Ask
the agent, in the new obeya, to migrate tasks from the old one, naming its path. The
gemba-migrate skill reads the old obeya as data, never following its rules, asks
which tasks to bring, the ones not done or the finished ones too, and maps each old
workstream and field to one of the new config with you, one question at a time. A task
whose harness is still there waits: finish it in the old obeya, or push its work,
remove the harness and launch the task again in the new one once it is migrated. In an
obeya shared by a team, the migrated tasks land in your own folder, with refs of your
initials.
The commands write every task, with a new ref. For a task done in the old obeya:
gemba create --workstream support --slug login-fails --date 2026-03-02 --set client=Acme
gemba record SUP-1 --from ../old-obeya/tasks/support/2026-03-02-SUP-3-login-fails.md
gemba mark SUP-1 done --date 2026-04-10
gemba archive SUP-3 --root ../old-obeya
Between the first two, the agent copies the old body above ## Updates, ending with a
paragraph that names the old ref and obeya; gemba record --from copies the dated
history as it is, and a task archived in the old obeya is archived in the new one too.
The last command closes the loop: the migrated tasks are archived in the old obeya.
Nothing is committed: both obeyas are yours to review and commit. An obeya made by an
earlier version whose config the current CLI refuses is upgraded first, as
CHANGELOG.md says for the version that changed the config.
On Windows
Gemba runs on Windows 10 or later with Git for Windows at its defaults, from PowerShell, the command prompt or Git Bash, with no administrator rights:
uv tool install gemba-cli
gemba init $HOME\nakatomi-obeya
-
The
idecommand ofgemba.local.yaml. A barecode -nworks: the command is resolved on PATH the way Windows does, socodefindscode.cmd. A string is split as a POSIX shell splits it, so a path with spaces or backslashes goes between double quotes, with each backslash doubled, or takes the map form, which needs no quoting rule:ide: '"C:\\Program Files\\Microsoft VS Code\\bin\\code.cmd" -n' ide: { command: 'C:\Program Files\Microsoft VS Code\bin\code.cmd', args: [-n] }
-
task.mdin a harness is a symbolic link where Windows lets Gemba create one, with Developer Mode on or a privileged account, and otherwise a file holding the relative path of the task; the guide tells the agent to read the task either way, so Developer Mode is optional. -
Long paths. When git fails with
Filename too long, rungit config --global core.longpaths true, which Gemba's message suggests. -
An existing obeya. Running
gemba initagain on an obeya made before this version adds the.gitattributes; on a checkout withcore.autocrlf=true, rungit add --renormalize .once and commit, so that the task files and the config are stored with LF. -
WSL is an alternative: inside it, Gemba is the Linux install above.
Status
Gemba is young, at version 0.x, and built from daily use: the whole cycle above works, and the shape of the commands may still change between minor versions, with the changelog saying so. Ideas, questions and reports of what got in your way are the most useful contribution right now: see CONTRIBUTING.md, which also describes how the product is developed, by specification, one case per scenario. What each version changed is in CHANGELOG.md, and every version has its page under Releases.
License
MIT.
Metadata
Release files for gemba-cli 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gemba_cli-0.3.0.tar.gz | 282.9 kB | Without provenance | Details for gemba_cli-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gemba_cli-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for gemba_cli-0.3.0-py3-none-any.whl |
Total release size: 443.5 kB
Release files / gemba_cli-0.3.0.tar.gz
| Download URL | gemba_cli-0.3.0.tar.gz |
|---|---|
| Size | 282.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c82a494674817ee841e7f3b2958611bf9ebab79b5e15a08fc3b51c27868f47a6
|
|
BLAKE2b-256 checksum How to use checksums |
9641ff1dd18cebc8e73a0dc18f94046d6e1b387b99b6f011b017f92b0ef667bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / gemba_cli-0.3.0-py3-none-any.whl
| Download URL | gemba_cli-0.3.0-py3-none-any.whl |
|---|---|
| Size | 160.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69519724769aefe20fa91f25a5eda98f0896da863bcd32893b3a9f6108125476
|
|
BLAKE2b-256 checksum How to use checksums |
dca7a7a0f37c1133d995c8faf054132e419e8ddce739fad2fface729f283f9a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for gemba-cli 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.