ATLAS_OS
Copilot instructions68 starsChanged 7 months agoMITView on GitHub
Read AGENTS.md for the full project rules. The notes below are repository-specific overrides that change Copilot's defaults. The repository ships one full-screen TUI: - OpenTUI (default, Bun/native binary) — maintained in packages/cli/src/tui/opentui/. The legacy Ink TUI was retired; do not reintroduce Ink dependencies, --ui=ink fallbacks, or parity instructions that point at packages/cli/src/tui/App.tsx. When making any change inside packages/cli/src/tui/opentui/, before writing code: 1. Load the opentui skill at ~/.agents/skills/opentui/SKILL.md — it routes you to the canonical docs (renderer, layout, keymap, React…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this copilot-instructions.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Read AGENTS.md for the full project rules.
- Very specific: line 19
When making any change inside packages/cli/src/tui/opentui/,
- Very specific: line 46
If you skip the skill and guess at the API, you will hit runtime errors like TextNodeRenderable only accepts strings, … or silent …
- Very specific: line 73
Switchable agents: only the orchestrator (atlas) plus user-installed (non-framework) agents.
- Very specific: line 94
Slash commands: keep the OpenTUI command set in sync with context/tui-workflow.md.
- Distinctive: line 106
Don't introduce new accent colors without updating the palette constants.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot instructions — atlas-cli
TL;DR
Read AGENTS.md for the full project rules. The notes below are repository-specific overrides that change Copilot's defaults.
OpenTUI work — always load the skill first
The repository ships one full-screen TUI:
- OpenTUI (default, Bun/native binary) — maintained in packages/cli/src/tui/opentui/.
The legacy Ink TUI was retired; do not reintroduce Ink dependencies,
--ui=ink fallbacks, or parity instructions that point at
packages/cli/src/tui/App.tsx.
When making any change inside packages/cli/src/tui/opentui/,
before writing code:
- Load the
opentuiskill at~/.agents/skills/opentui/SKILL.md— it routes you to the canonical docs (renderer, layout, keymap, React bindings, components). - Skim the doc for the component/hook you're about to use. The most
common gotchas are:
<text>only accepts plain strings as children. Never nest<text>inside<text>. Use sibling<text>nodes inside aflexDirection: 'row'<box>if you need inline color changes.- The renderer's clear color defaults to transparent. Always
pass
backgroundColortocreateCliRendererAND setbackgroundColoron the outermost layout<box>AND on<scrollbox>viewportOptions/contentOptions— otherwise cells the React tree doesn't claim read as the user's terminal default and look "transparent." - There is no
useAlternateScreenoption. UsescreenMode: 'alternate-screen' | 'main-screen' | 'split-footer'. - Bold/italic/underline are not
attributesnumeric flags — they arestylebooleans onStyleAttrs, or template-literal helpers (bold,italic, …) from@opentui/core/lib/styled-text. - Keyboard input goes through
useKeyboard((key) => …).key.namefor special keys,key.sequencefor printable chars (length 1, code ≥ 0x20),key.ctrl/key.metafor modifiers.
If you skip the skill and guess at the API, you will hit runtime
errors like TextNodeRenderable only accepts strings, … or silent
"transparent middle" rendering bugs.
Don't publish
The release workflow is gated behind a manual workflow_dispatch with
publish=true. Do not push tags expecting an auto-publish; tag
pushes only build artifacts. The user will trigger publishing
explicitly when the build is ready.
OpenTUI Is The Runtime
OpenTUI is the default and only maintained full-screen UI. Visuals (popups, borders, palette) can evolve, but state machine, gating rules, and data sources must follow the workflow contract exactly.
Single source of truth for the user workflow:
context/tui-workflow.md. Read it
before adding or changing any TUI screen. It documents the
canonical command list, popup sizing, color invariants
(green=connected, accent=headers, warning=popular, success=selected),
the MCP catalog (filesystem, github, higgsfield, figma + memory),
and the slash autocomplete contract. When you change a workflow
rule, update this document and context/tui-workflow.md in the same
change. Established invariants:
- Switchable agents: only the orchestrator (
atlas) plus user-installed (non-framework) agents. Filter viaisFrameworkAgentfrom@atlas/core. Framework specialists (Athena/Prometheus/ Hercules/…) are routed to byatlas, never picked manually. Tab opens the agent picker only whenswitchableAgents.length > 1— otherwise no-op (or surface "install custom agents under~/.atlas/agents/"). - Model picker: source from the live
modelCatalog: ModelInfo[]prop (passed byrunTui.ts), not a hardcoded list. Always include the active model, the configured default, declared fallbacks, and provider custom model lists (config.providers.openrouter.customModels,config.providers.opencode.zen.customModels, andconfig.providers.opencode.go.customModels). Static seed list is a fallback only. - Thinking levels: filter per-model via
thinkingLevelsFor(activeModel, modelCatalog). Reject unsupported levels in/thinking <level>with the allowed set. - Provider tag / context window: resolve through the catalog
first (
providerKindFor/contextWindowForpatterns), id-shape heuristics only as fallback. This matters for multi-key users wheregpt-5could be OpenRouter or Codex OAuth. - Slash commands: keep the OpenTUI command set in sync with
context/tui-workflow.md. Stub unimplemented commands with a clear "not yet implemented" message rather than failing silently. - Props bag:
OpenTuiAppPropsaccepts whateverrunTui.tspasses (modelCatalog, providers, availableModels, mcpStatus, initialSession, autoResumed, initialActiveTask, …). Don't drop or rename fields — extend the interface instead.
Preserve the Atlas brand
The OpenTUI variant uses an Atlas-blue navy palette (see packages/cli/src/tui/opentui/palette.ts). Don't introduce new accent colors without updating the palette constants.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

