CodeForge
Memory + gamified pet CLI for Claude Code power-users (Rust).
CodeForge gives Claude Code sessions persistent cross-session memory and a gamified ASCII pet that levels up as you code. The codebase becomes a world map; the pet becomes your character; technical debt becomes monsters.
Status
Active development. Phases 1, 2 (a/b/c) and 3 (a/b/c/d/e/f) shipped. Phase 4 (Zoa 3D animation) and Phase 5 (Nation P2P) on the roadmap.
CodeForge is also the first Mnemos source — Sprint 1 of the Mnemos Gen-2 active memory daemon adds codeforge ship (daily L2 ledger producer) and codeforge mnemos-cli cite (natural citation write-back). See Mnemos Integration below.
Full architecture in doc/specs/codeforge-mud-engine.md.
Lore — Why CodeForge
CodeForge is the personal smithy of the CodePower ecosystem.
CodePower is the arena — public, federated, competitive; where Nations battle and code becomes score.
CodeForge is your forge — private, contemplative, accumulative; where raw signals become knowledge, where pets are raised, where your codebase becomes an explorable map.
Power generates, Forge shapes. Smith alone, or carry your forged self into the arena.
Install
For a step-by-step walkthrough, see doc/getting-started.md.
Option 1 — curl installer (no Rust required) (available from v0.0.2 onward; see doc/specs/codeforge-release-pipeline.md)
curl -sSL https://raw.githubusercontent.com/cookys/codeforge/main/install.sh | sh
Downloads the prebuilt binary for Linux (x86_64 or aarch64) and
installs to ~/.cargo/bin or ~/.local/bin. Releases ship Linux binaries only (since v0.0.9); on
macOS or anything else, build from source: cargo install --git https://github.com/cookys/codeforge --locked
(install.sh prints that instruction there; codeforge self-update prints it with --force, which replaces an existing install). Respects
CODEFORGE_VERSION, CODEFORGE_INSTALL_DIR, CODEFORGE_FORCE env vars.
Option 2 — cargo binstall (Rust users, no compile)
cargo binstall codeforge
Prebuilt for Linux x86_64/aarch64; on other platforms binstall finds no asset and falls back to building
from source.
Option 3 — cargo install (developers / from source)
cargo install --git https://github.com/cookys/codeforge
# or, for a local clone:
git clone https://github.com/cookys/codeforge && cd codeforge && cargo install --path .
Requires Rust stable (MSRV 1.88). The built binary lands in
~/.cargo/bin/codeforge.
Windows: build from source (Options 1–2 have no Windows binary yet). Needs the MSVC toolchain
and VS Build Tools — full walkthrough in doc/windows.md.
Updating — once installed (by any option above), update in place from the
latest GitHub release without re-running the installer or juggling binary paths:
codeforge self-update # pull the latest release, replace this binary in place
codeforge self-update --check # just report whether a newer version exists
It rewrites whichever binary you invoked (~/.local/bin, ~/.cargo/bin, …), so
it sidesteps the "which copy is on PATH" problem. (cargo install users can also
just re-run cargo install.)
Then wire it into Claude Code:
codeforge install
This patches ~/.claude/settings.json to use codeforge statusline as
Claude Code's statusLine hook. When codeforge on your PATH is this same
binary the command is just codeforge statusline; otherwise it uses the
binary's absolute path, so it still works when ~/.cargo/bin isn't on the
spawned shell's PATH (common when rustup was installed with
--no-modify-path). Other keys in settings.json are preserved.
Shared settings.json (dotfiles). If ~/.claude/settings.json is a symlink
(e.g. into a dotfiles repo) or the file is tracked by git, install says so and
writes through the link into the real file, so the link stays a link. What it
writes is the same on every machine and every version: hook commands are
codeforge hook <name> / codeforge <subcommand> with no paths or version
numbers, the statusLine is always codeforge statusline (so codeforge must be
on PATH there), and the entries carry the fixed marker codeforge@1.
cleanupPeriodDays is not written into a shared file unless you pass
--cleanup-period-days <DAYS>. Detection covers symlinks and git-tracked files;
a copy-based setup (chezmoi copy mode, Syncthing) is not detected, so pass the
flag or check the result yourself there. Upgrade order for a shared file:
update every machine (codeforge self-update) to the same version first, then
run codeforge bootstrap on one machine and commit/sync the rewritten
settings.json — a machine still on an older codeforge does not have the
codeforge hook subcommand.