Skip to content
Agentmart
Submit a tool

AGENTS.md · eastreams/loong

AGENTS.md from eastreams/loong: 111 lines covering 1.

Template by eastreams

IndexedMIT★ 637
Write a review

Chalk Labs

Need help deploying AGENTS.md · eastreams/loong?

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.

Book a call

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/eastreams/loong/dev/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.

We use your email only for this newsletter. Privacy

About

The AGENTS.md file that eastreams/loong (637 stars) keeps for coding agents. It has 111 lines in 7 sections: 1. Start Here; 2. Architecture Contract; 3. Commands; 4. Non-Negotiable Rules; 5. Verification Gates; 6. Pre-Commit Hook; 7. Where to Look Next. Use it as a model for your own project's instructions.

Use cases: prompt-engineering

No 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
111 lines
File
AGENTS.md

Sections

  1. 1. Start Here
  2. 2. Architecture Contract
  3. 3. Commands
  4. 4. Non-Negotiable Rules
  5. 5. Verification Gates
  6. 6. Pre-Commit Hook
  7. 7. Where to Look Next

First lines (shown under the repo's MIT license)

# Loong Agent Guide

This document is intentionally mirrored in `CLAUDE.md` and `AGENTS.md`.

This file is the **map** — keep it short (~100 lines). Deeper repo-native
context lives in `docs/`, while the public reader-facing docs surface lives in
`site/`.

## 1. Start Here

- [Repository Docs Map](docs/README.md) — audience routing for `site/` vs `docs/`
- [Core Beliefs](docs/design-docs/core-beliefs.md) — kernel and engineering principles
- [Layered Kernel Design](docs/design-docs/layered-kernel-design.md) — layered model and boundary rules
- [Roadmap](docs/ROADMAP.md) — stage-based milestones and acceptance criteria
- [Reliability](docs/RELIABILITY.md) — invariants and operating expectations
- [Code Standards](docs/design-docs/code-standards.md) — maintainability, test layout, and review checks
- Product specs and implementation plans now live in `eastreams/knowledge-base` (see `docs/README.md` for routing)
- [Contributing Guide](CONTRIBUTING.md) — contributor workflow and recipes

## 2. Architecture Contract

The workspace currently has 13 crates across two connected families:

```text
additive spine
loong-core (leaf)
├── loong-plugin-sdk → loong-core
├── loong-runtime → loong-core
├── loong-app-protocol → loong-runtime
└── loong-cli → loong-app-protocol

governed runtime
contracts (leaf)
├── kernel → contracts, loong-plugin-sdk
├── protocol (independent leaf)
├── bridge-runtime → contracts, kernel, protocol
├── app → contracts, kernel
├── spec → contracts, kernel, protocol, bridge-runtime
├── bench → kernel, spec
└── daemon (`loong`) → app, loong-app-protocol, bench, bridge-runtime, contracts, kernel, protocol, spec
```

Non-negotiable: no dependency cycles. See [Core Beliefs](docs/design-docs/core-beliefs.md).
Current tracked deviations: none. `loong-cli` remains transitional; the shipped
product entrypoint is still the `loong` binary in `crates/daemon`.

## 3. Commands

`Taskfile.yml` provides optional convenience wrappers through the `task` CLI.
If `task` is unavailable, run the underlying `cargo` and `scripts/*` commands
directly.

- Format check: `./scripts/cargo-local-toolchain.sh fmt --all -- --check`
- Strict lint: `./scripts/cargo-local-toolchain.sh clippy --workspace --all-targets --all-features -- -D warnings`
- Architecture check: `./scripts/check_architecture_boundaries.sh` or `task check:architecture`
- Convention check: `task check:conventions` (optional wrapper; requires Go + convention-engineering skill)
- Test all features: `./scripts/cargo-local-toolchain.sh test --workspace --all-features`
- Canonical verify: `task verify` (optional wrapper around repo verification steps)
- Extended verify: `task verify:full` (optional wrapper around the extended local gate)

## 4. Non-Negotiable Rules

- Kernel contracts are backward-compatible. No breaking changes without documented decision.
- All execution paths route through kernel capability/policy/audit. No shadow paths.
- Strict lint and all-feature tests pass at every commit.
- Never commit credentials, tokens, or private endpoints.
- Keep `CLAUDE.md` and `AGENTS.md` mirrored in the same change.
- **Before every commit**, run CI-parity checks. Any manual edit after fmt must be re-checked.
- Every released version must map to `docs/releases/vX.Y.Z.md` with process log and detail links.
- Local agent debug context for a release should be recorded in `.docs/releases/vX.Y.Z-debug.md`.
- Public-repo issues, PRs, and public-doc wording should stay Loong-centric; keep detailed external project comparisons in `eastreams/knowledge-base` unless naming an external project is strictly necessary.

## 5. Verification Gates

CI enforces:
- `./scripts/cargo-local-toolchain.sh fmt --all -- --check`
- `./scripts/cargo-local-toolchain.sh clippy --workspace --all-targets --all-features -- -D warnings`
- `./scripts/cargo-local-toolchain.sh test --workspace`
- `./scripts/cargo-local-toolchain.sh test --workspace --all-features`

## 6. Pre-Commit Hook

```bash
cp scripts/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
```

Runs CI-parity cargo checks before each commit.
Use `task verify` when the `task` CLI is installed. Otherwise run the
underlying `scripts/cargo-local-toolchain.sh` and `scripts/*` verification
commands directly.

## 7. Where to Look Next

| Need | Go to |
|------|-------|
| Architecture overview & crate DAG | `ARCHITECTURE.md` |
| Repository docs layering | `docs/README.md` |
| Core principles | `docs/design-docs/core-beliefs.md` |
| Layered architecture | `docs/design-docs/layered-kernel-design.md` |
| Design decisions, patterns & catalog | `docs/design-docs/index.md` |
| Harness engineering | `docs/design-docs/harness-engineering.md` |
| Code standards, test layout & review checks | `docs/design-docs/code-standards.md` |
| Roadmap | `docs/ROADMAP.md` |
| Reliability invariants | `docs/RELIABILITY.md` |
| Security model & gaps | `docs/SECURITY.md` |
| Product sense & principles | `docs/PRODUCT_SENSE.md` |
| Release process conventions | `docs/releases/README.md` |
| Product requirements / implementation plans | `eastreams/knowledge-base` |
| Repository support references | `docs/references/README.md` |
| Contributing recipes | `CONTRIBUTING.md` |

Signals

Stars
637
Forks
102
Open issues
2
Last commit (this folder)
Jun 18, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from eastreams

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 · eastreams/loong 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.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying AGENTS.md · eastreams/loong?

CallGet help
Cite this page

AGENTS.md · eastreams/loong. Agent Mart. https://agentmart.dev/templates/eastreams-loong-agents-md (last updated 2026-10-24)