Skip to content
skbaekPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Creme

Creme is the public agent-development launch root for the sibling Jaune and Blanc Lean projects. It supplies shared instructions, Lean skills, client shims, host-safe coordination, and an accountable goal-execution method. Jaune and Blanc remain standalone libraries and retain authority over their own APIs, proofs, and gates.

Creme v0.1 supports macOS and Linux. Linux deliberately has fewer optional host capabilities; an explicit UNAVAILABLE is a supported result.

Public main is available at https://github.com/skbaek/creme under the MIT License. The first public macOS/Ubuntu matrix and fresh Ubuntu sibling-layout runtime run passed. Fresh client and conventional-Linux acceptance remain explicit v0.1 release gates.

Blank-host setup

For a new macOS or Linux account, start with the complete, preview-first first-machine setup guide. It covers system prerequisites, Codex and Claude Code installation/trust, the Lean toolchain, disk planning, public cloning, host initialization, sibling builds, optional fixtures, and a representative client check.

The shortest path after prerequisites are present is:

cd ~
git clone https://github.com/skbaek/creme.git creme
git clone https://github.com/skbaek/jaune.git jaune
git clone https://github.com/skbaek/blanc.git blanc
cd ~/creme
python3 -m creme platform
python3 -m creme init --workspace-root ..
python3 -m creme init --workspace-root .. --write
python3 -m creme doctor --workspace-root ..

init previews by default. Its live output is .creme/host-profile.json, which is ignored. Review before --write; use --replace only after reviewing a changed host fingerprint or policy.

Codex users who need sibling writes should also preview a least-privilege profile, then explicitly install the reviewed result:

python3 -m creme client-profile --workspace-root ..
python3 -m creme client-profile --workspace-root .. \
  --output ~/.codex/creme.config.toml --write
codex --profile creme

The profile file is an overlay selected with --profile; Creme never changes the main user configuration implicitly. Claude users launch claude from this directory after reviewing the project MCP prompt. Both clients must be launched with Creme as the project/current directory. Merely granting sibling filesystem access does not load Creme's instructions, skills, or MCP config.

All supported local agents and humans share the tracked semaphore launcher:

./.semaphore/semaphore status

Fresh hosts keep its private runtime state in ignored .semaphore/state/. Upgraded hosts retain and use legacy state until the explicit, non-destructive migrate-state cutover documented in the setup guide.

Codex installations that authorize stable executable paths can install a single reviewed bundle containing constrained telemetry/reclamation delegates and their least-privilege command rules. Permission profiles such as creme-relay govern sandbox filesystem/network access; they do not remember out-of-sandbox command approvals. Semaphore coordination always uses the tracked client-neutral launcher. Preview the exact files first:

python3 -m creme host-wrappers \
  --output-dir ~/.codex/bin --rules-dir ~/.codex/rules
python3 -m creme host-wrappers \
  --output-dir ~/.codex/bin --rules-dir ~/.codex/rules --write

The generated delegates reject every argument shape except telemetry with no arguments, reclamation --dry-run, and --wind-down GOAL. The generated rule file allows only those stable entry points; stronger reclamation remains prompt-gated. Regenerate after moving the checkout and use --replace only after reviewing a changed preview. Fully quit and restart Codex after a rule change: rules are loaded at process startup. If any bundle path exists, doctor requires the complete installed set, exact private modes, and current contents to match; stricter managed requirements may still override user rules.

When the ignored host guidance supplies a reviewed Lean preflight, the bundle also includes a constrained codex-creme-contained-build broker. It derives a goal worktree, pins the preflight and clean Creme runtime tree, and accepts only bounded probe/wait/exclusive options plus validated Lake targets. Direct systemd-run, arbitrary commands, resource downgrades, and /tmp scripts remain outside the generated allow rules.

Before real work, read AGENTS.md, the appropriate sibling's scripts/GATES.md, and, before Lean work or a build, the execution guide. New goal documents use the public goal-writing guide, even when a concrete goal is stored in a private repository; worker briefs and the model-and-effort ladder are in the briefs guide. One session at a time holds the master role described in the master guide; it owns goals, workers, merges, and pushes, and it is the only session that takes the master-* lease. Client discovery and its negative control are documented in docs/client-discovery.md.

Commands

python3 -m creme --help
python3 -m creme doctor --json
python3 -m creme host-guidance
python3 -m creme host-wrappers --output-dir ~/.codex/bin --rules-dir ~/.codex/rules
python3 -m creme memory-headroom
python3 -m creme telemetry
python3 -m creme python-runtime 3.11.9
./.semaphore/semaphore status
./.semaphore/semaphore adaptive-acquire GOAL --note "proof loop" --memory-gib 4
./.semaphore/semaphore adaptive-acquire GOAL --note "queued" --wait 600
./.semaphore/semaphore master-acquire --client codex --note "master session"
./.semaphore/semaphore master-renew --heartbeat 1500 --detach
./.semaphore/semaphore master-release
python3 -m creme tempdir
python3 -m creme cache-copy SOURCE DESTINATION
python3 -m creme reclaim --dry-run
python3 -m creme reclaim --idle-workers 10 --goal GOAL
python3 -m creme reclaim --wind-down GOAL
python3 -m creme build-ledger --since 2026-09-03 --until 2026-09-03T05:35:00Z
python3 -m unittest discover -s scripts/tests -v

Mutating commands are preview-first where practical. cache-copy needs --execute; reclamation proves same-client ancestry from a frozen process snapshot and refuses ambiguous subtrees. --idle-workers MIN --goal GOAL narrows that proven plan to Lean workers measured idle across two CPU samples and working inside the named goal's worktrees, and reports every other worker with its owner instead of signalling it — under the master model every session shares one client process, so the goal worktree is the boundary. --wait SECS queues a request under the same mutex and returns in one call rather than inviting a hand-rolled status polling loop; it can postpone a request but never admits one past a safety floor. Task wind-down additionally scopes every candidate to the caller's configured .worktrees/GOAL roots, so concurrent goals can wind down independently without releasing or killing one another.

Design and migration

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages