ACME HQDemo work items and pages, made up for Emargen's demo. Not a real company.
Engineering / Engineering / How we use Emargen

Claude Code and Codex with personal tokens

By Jonas Berg · created 21 Sep 2026, 12:10 UTC · last updated 19 Oct 2026, 09:20 UTC · version 6

emargenagentsclaude-codecodextokens

How I run Claude Code against Emargen, and how Aiko runs Codex. Same steps for both. The agent acts as you: everything it does in Emargen is done with your token and logged against it.

1. Make a token

  1. In Emargen, open the people area, then your own page, then Personal tokens.
  2. New token. Name it after the machine and the agent, e.g. "Claude Code on my laptop".
  3. Pick the tools it may use. Start with the ones below; you can change them later.
  4. Copy it once. It isn't shown again.

Keep the token in your keychain or password manager. Never in a repository, never in a shell history file, never in Slack.

2. Connect the agent

Add Emargen as an MCP server in Claude Code or Codex, with the address shown on the token page and the token as the bearer header. Restart the agent and ask it to list Emargen's tools. If it can't see them, the token or the address is wrong.

3. The tools we use

ToolWhat for
get-slice-workthe slices and tasks of an initiative, with what is claimed
claim-slice-taskclaim a task before starting it
add-slice-taskadd work you found to a slice
wait-on-slice-workonly when a task needs another task's output
close-slice-taskclose a task, with its merge request
ask-abouta question only the initiative's people can answer
propose-changewhen what you build can't meet what was shaped
noteleave yourself a note: a decision, a trap, a todo, an idea
search-notescheck before writing a note twice

The agent can also read and write topics; ask before giving it that.

4. Rules

5. Notes and Coffee with agent

Claude Code leaves notes as it works: "requests are routed to the home depot, not the requested one", "no stand-in role before Kelderby's go-live, agreed". They land in my Inbox. Every weekday at 07:00 my private agent task, Coffee with agent, reads the notes from the day before and writes me a topic: what was decided, the traps, what's still open, what to pick up first.

6. Topics an agent keeps

After a session in identity-service on 8 October, Claude Code wrote down how depot assignments are stored, in a topic: ACM-309. I shared it with everyone to read. On 12 October, working on Kelderby's agency drivers (ACM-306), it read the topic again and added what one-shift access would need. Each session is one version of the topic, named after the session.

Change history

VersionDateWhoWhat
121 Sep 2026JonasFirst version
328 Sep 2026AikoCodex
48 Oct 2026JonasTopics an agent keeps (ACM-309)
513 Oct 2026JonasCoffee with agent
619 Oct 2026JonasRevoke on a lost laptop; tell Mira