AGENTS.md · callstack/agent-device
AGENTS.md from callstack/agent-device: 64 lines covering Task routing, Working rules, Worktree setup, Agent docs.
Template by callstack
Chalk Labs
Need help deploying AGENTS.md · callstack/agent-device?
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/callstack/agent-device/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
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
- 64 lines
- File
AGENTS.md
Sections
- Task routing
- Working rules
- Worktree setup
- Agent docs
First lines (shown under the repo's MIT license)
# AGENTS.md `agent-device` is a CLI and daemon that automates devices and web targets. The daemon owns sessions. Registry declarations route commands to platform runtimes. ## Task routing Read only your task's row. Follow other links only when they apply. | When the task involves | Read | | --- | --- | | Domain vocabulary | `CONTEXT.md` | | Read architecture decisions | `docs/adr/README.md` | | Write or amend an ADR | `docs/adr/FORMAT.md` | | Source changes, package boundaries, routing, diagnostics | `docs/agents/code-ownership.md` | | Checks or a failed gate | `docs/agents/testing.md` | | New or changed tests | `docs/agents/test-authoring.md` | | Test audits or deletions | `docs/agents/test-audit.md` | | Mutation experiments or base comparisons | `docs/agents/test-experiments.md` | | Gate selection, fuzzing, or mutation harnesses | `docs/agents/gates.md` | | Selector capture, polling, interaction fast paths, replay | `docs/agents/selector-capture.md` | | A new or changed CLI flag | `docs/agents/cli-flags.md` | | A PR to open or update | `docs/agents/pull-requests.md` | | A change to review | `docs/agents/review.md` | | Device-facing changes or manual device verification | `docs/agents/device-verification.md` | | Issues, PRDs, or triage labels | `docs/agents/issue-tracker.md`, `docs/agents/triage-labels.md` | | Web backend setup or diagnostics | `docs/agents/web-backend.md` | A device-facing change affects live device behavior: dispatch, capture, interaction, app lifecycle, or native execution. If a daemon edit changes none of these, a device run is not required. The versioned CLI help owns command semantics. To drive an app, start with the skill's routing card. ## Working rules - Keep edits in the requested command family or module group. Examine other platforms only when the task requires it. - Fix a recurring failure at the owning type, registry, or construction path. Do not rebuild another owner's state. - Use typed reasons and details for behavior. Do not match error text. - Add compatibility or fallback behavior only on explicit request or approval. During a migration, remove superseded paths. - Encode invariants in names, types, and boundaries. Write comments only for public APIs, tool directives, or constraints that code cannot show. - Resolve a gate failure at the reported invariant. Do not suppress it. Do not add an allowlist to get a pass. - Use `@agent-device/selectors` to parse and match selectors. For other shared owners, see `docs/agents/code-ownership.md`. - Keep skills as routing cards. Keep `CONTEXT.md` as a glossary only. When behavior changes, update the owning help and user docs. ## Worktree setup - Use `pnpm`. Use OXC to lint and format. Run `pnpm format` on the full repository. - In a new worktree, run `pnpm install --frozen-lockfile && pnpm build` before you test. - Do not change other worktrees, devices, sessions, dirty files, or experiments. Do not use `git stash`; all worktrees share it. - Do not copy `.env` into a worktree. For host credentials, source the main checkout's file by its absolute path. - Give each parallel worker different files and a different device. `pnpm check:affected --run`, `pnpm check`, and heavy `pnpm gate` ids share one lock. - The layering scan reads only tracked files. Stage new modules before you trust its result. - When you rename a file, move its Fallow baseline entry. Do not regenerate unrelated baselines. The validation lock automatically reclaims provably dead owners. An unknown owner continues to block. If the wait times out, report the printed owner and the lock state. Do not remove the lock manually. ## Agent docs Write agent docs in ASD-STE100. Write one instruction in each sentence. Put the condition before the instruction. Use one term for one concept. Keep commands and domain terms exact. Put specialized rules and new shared constraints in the owning task document, not in agent memory. Before you add a reminder, delete duplicate or enforced rules.
Signals
- Stars
- 5,132
- Forks
- 350
- Open issues
- 68
- Contributors
- 79
- Last commit (this folder)
- Oct 22, 2026 (8 days ago)
- Last release
- Oct 22, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/callstack/agent-device
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from callstack
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 · callstack/agent-device 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 · callstack/agent-device. Agent Mart. https://agentmart.dev/templates/callstack-agent-device-agents-md (last updated 2026-10-24)