AGENTS.md is the canonical instruction file for this repo. Read it first. This file exists for tools that still load CLAUDE.md.
- Read
AGENTS.mdfirst, then this file. - If
CLAUDE.mdandAGENTS.mddisagree, followAGENTS.md. - Do not add new repo policy here unless it is also reflected in
AGENTS.md.
Noumena Code is the open-source AI coding assistant: a terminal-native agent that edits code, runs commands, and helps carry multi-step development workflows. This repo is the standalone public source export of code/ from Noumena's internal monorepo.
- Bias toward product reliability, build correctness, contributor clarity, and OSS safety.
- GPU training, kernels, and inference hot-path work belong in
noumena. - Prefer explicit, documented build/test entrypoints over hidden or ambient state.
- Do not leak internal hosts, IPs, or unreleased model identifiers into public files.
- Print
Mode: No-EditsorMode: Executionat the top of every response when applicable. - Before executing, confirm repo root with
git rev-parse --show-topleveland working copy state withgit status --short. - Before editing, list the exact files you will modify.
- Do not touch out-of-scope files.
- Verify with files, diffs, logs, and commands. Do not guess.
- This is a Git repo. Do not use Sapling commands (
sl,sl status, etc.). - Do not run destructive Git operations without explicit approval.
- Never
git push --forcetomain. - Do not install system packages, global packages, or modify shell configs as a fix. If the repo needs a new dependency, add it to
package.json/Cargo.toml. - The canonical build is
bun run build. The canonical test runner isbun test <file>orbun run test. - Start validation with the smallest relevant test file, then broaden only as needed.
- This is a Git repo, not Sapling. Use
git, notsl. - The supported build/test stack is Bun + Rust/Cargo. Do not assume Python, Docker, Kubernetes, or Buck2 are available.
- Do not run
cargo buildmanually at the root; native modules are built by the Bun build scripts. - Do not delete
.tmp/ordist/"just to be safe". - Do not add internal endpoints, IPs, or unreleased model identifiers to public code or tests.
- Local-only workarounds are not the supported answer. If a fix requires a new dependency or system tool, document it in
README.mdand add it properly.
- Do not modify the user's shell config (
.bashrc,.zshrc,.profile). - Do not install global packages (
npm install -g,cargo install,apt install, etc.) as a fix. - Do not push directly to
mainfor non-trivial changes; open a PR. - Do not add placeholder JSON, mock-only routes,
unimplemented!(), or silent fallbacks as progress. - Do not rely on internal-only infrastructure in public code unless gated by
isInternalBuild()or a documented env var.
cd /mlstore/src/noumena-network/code
bun install
bun run build
bun test src/path/to/file.test.ts
bun run testcd /mlstore/src/noumena-network/code
git rev-parse --show-toplevel
git status --short
git diff -- <paths>
git log --oneline -3AGENTS.mdis canonical.README.mdis the public user/contributor guide.OSS_BUILD.mddocuments build modes and supported targets.