AGENTS.md · openchamber/openchamber
AGENTS.md from openchamber/openchamber: 116 lines covering Purpose, Instruction Order, Runtime Boundaries, Always-On Constraints and more.
Template by openchamber
Chalk Labs
Need help deploying AGENTS.md · openchamber/openchamber?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/openchamber/openchamber/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering, code-generation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 116 lines
- File
AGENTS.md
Sections
- Purpose
- Instruction Order
- Runtime Boundaries
- Always-On Constraints
- Correctness Invariants
- Communication
- Project Skills
- Validation
- Pull Request Handoff
First lines (shown under the repo's MIT license)
# OpenChamber Agent Guide ## Purpose OpenChamber provides shared web, desktop, VS Code, hosted-mobile, and native-mobile UI surfaces for OpenCode. This file contains only always-on repository rules and routing. Detailed workflows belong to project skills and module documentation. ## Instruction Order These steps are mandatory. Before editing, you **MUST**: 1. Follow this root guide. 2. Load every project skill whose `description` matches the change, and every reference those skills require. Any source change starts with `openchamber-change-discipline`. 3. Read the nearest `DOCUMENTATION.md` (under `packages/**`) for each module you change, and the package `README.md` for package-level work. 4. Follow local code and test precedent. If these sources materially conflict, stop and resolve the conflict instead of silently choosing one. Do not start editing before every matching skill and required reference is read. ## Working a Change Every fix and feature goes through these steps, in order. What counts as proof, and where to run each kind of change, is in `openchamber-change-discipline` (*Proof*, *Where to run it*). 1. **Reproduce.** Make the failure happen the way a user hits it, in the runtime that runs the code; for a feature, see what that runtime does today where the feature goes. Unreproduced goes to the report with what you tried before any fix. 2. **Fix the cause.** The smallest change that removes it. A correctness problem you trip over in code you touch is fixed in the same change; one elsewhere goes to the report or its own pull request. 3. **Prove it.** Run the same reproduction and watch it pass. Report what the proof covered and what it did not. 4. **Second look.** The `review` agent on the diff (`.opencode/agent/review.md`), or a reviewer on another model where your tool has no such agent; one-line and text-only edits go without. Answer findings per `openchamber-change-discipline` (*Answering Review Findings*). 5. **Hand off.** The working tree for the person you work with, or a pull request (*Pull Request Handoff*). ## Runtime Boundaries - `packages/ui`: shared React UI, state, sync, and runtime contracts. - `packages/web`: web surfaces, OpenChamber server, managed/external OpenCode lifecycle, and CLI. - `packages/electron`: native desktop shell and privileged Electron boundary. - `packages/vscode`: extension host, webview, and runtime bridge. - `packages/mobile`: Capacitor iOS/Android shell; bundles the mobile web surface and connects to an existing OpenChamber server. - `packages/docs`: product documentation; not a Bun workspace. - `packages/sdk`: guest contract for third-party panels. Manifest parse, iframe envelope, `connectHost`. Host and guest import from here; do not copy these types into `packages/ui`. - `packages/extensions`: app-owned SDK extensions and their build registry, not a Bun workspace. See its `DOCUMENTATION.md` for trust, packaging, and migration rules. Shared UI data access and OpenCode calls: `ui-api-decoupling`. Shared contracts must define intentional behavior for every applicable runtime: web, desktop, VS Code, hosted mobile, and Capacitor mobile. ## Always-On Constraints - Do not modify `../opencode`; it is a separate repository. - Do not run git or GitHub commands unless the user explicitly asks. - Do not add dependencies unless explicitly requested. - Never add or log secrets, bearer tokens, pairing credentials, or sensitive user data. - Launch Google Chrome for automation with `--disable-features=MacAppCodeSignClone` (`scripts/perf/cdp.mjs` does). Without it each launch on macOS copies the 1.4 GB app into `$TMPDIR`, and a killed browser leaves the copy. - Preserve unrelated worktree changes. - Several agent sessions often work in the same checkout at once. Never `git stash` to compare against a clean tree or to test something: a stash takes every session's uncommitted work, and a session writing to a stashed file meanwhile makes the pop fail. Compare in a detached worktree instead (`git worktree add --detach /tmp/<name> HEAD`, with `node_modules` symlinked). - `changelog/` is read-only, and a fix, feature, or merged PR lands without a changelog line. Release notes are written only when the maintainer asks to update the changelog, through the `update-changelog` skill. - Enforce security and correctness in core/runtime logic, not only UI visibility or prompts. ## Correctness Invariants - Prefer authoritative state over heuristics. - Derive live activity from live channels, not persisted history. - Scope temporary fallbacks narrowly and clear them when authoritative state arrives. - Never let fetch failure masquerade as authoritative empty success. - Make partial results, rollback, cleanup, and stale-data behavior explicit. - One failed entity must not erase or block unrelated complete entities. ## Communication Answer in the language you were addressed in; code, comments, and docs stay in English. Load the `communication-style` skill once, at the start of the session, before your first reply. It stays in context for the rest of the session: every reply, in any language, and every text people read follows it. Later turns use it as loaded; they do not load it again. ## Project Skills Project skills live in `.agents/skills/*/SKILL.md`, and each skill's `description` says when it applies. If your tool does not list skill descriptions, read them in those files before you start. Pure code-reading or explanation needs no implementation skills unless a specialized subsystem has to be interpreted. ## Validation - Use `package.json` scripts as the command source of truth. Which checks a change needs is in `openchamber-change-discipline`. - Before every commit of source changes, `bun run check:changed` passes (`scripts/check-changed.mjs` says what it runs). Fix the new findings; the pre-existing backlog stays out of scope unless the task is that cleanup. Never silence a rule, weaken severity, or launder types to make a check pass. ## Pull Request Handoff Before creating or updating a pull request, read `CONTRIBUTING.md` (*Pull Requests*) and fill `.github/PULL_REQUEST_TEMPLATE.md` with evidence for the final HEAD. A **product decision** belongs to the maintainer and is settled before the code, never inside the diff. A product decision is anything where two reasonable people could disagree about whether it should exist or how it should behave: a new button, panel, setting or command; a changed default; a shortcut or gesture that now does something else; different wording, ordering or grouping in the UI; anything that turns existing behavior on or off for everyone. Removing or bypassing behavior the code marks as deliberate is one too, and there the first question is whether it is a defect at all. A crash, wrong data, behavior that contradicts what it plainly claims, or a performance fix that keeps behavior identical is a bug, not a product decision. Where that decision is settled depends on who is working: - **Working with the maintainer or a team member** (anyone with repository access): raise the product question in the session and get an answer there. The decision already happened off GitHub; no discussion thread and no link is expected on the pull request. - **Working as an outside contributor**: open a feature request and build only after the maintainer marks it `accepted`, as `CONTRIBUTING.md` (*Before you start*) describes; the pull request links it with `Fixes #N` or `Part of #N`. A pull request without that link is closed automatically. When the call is unclear, ask before building. Deciding it silently is the one thing that is always wrong.
Signals
- Stars
- 12,121
- Forks
- 1,362
- Open issues
- 87
- Last commit (this folder)
- Oct 22, 2026 (9 days ago)
- Last release
- Oct 23, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/openchamber/openchamber
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · openchamber/openchamber running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · openchamber/openchamber. Agent Mart. https://agentmart.dev/templates/openchamber-openchamber-agents-md (last updated 2026-10-24)