Skip to content

docs: add agent guidance#94

Closed
MRNIU wants to merge 4 commits intodrivercraft:mainfrom
MRNIU:codex/init-agents-md
Closed

docs: add agent guidance#94
MRNIU wants to merge 4 commits intodrivercraft:mainfrom
MRNIU:codex/init-agents-md

Conversation

@MRNIU
Copy link
Copy Markdown

@MRNIU MRNIU commented May 6, 2026

Summary

  • Add a repository-level AGENTS.md with scoped guidance for future AI-assisted changes.
  • Add local AGENTS.md files for each workspace crate and the ostool-server/webui frontend.
  • Keep the guidance focused on repository-declared tools, CI evidence, package boundaries, generated artifacts, and hardware-sensitive workflows.

Community question

This PR proposes documenting an AI-assisted development workflow through AGENTS.md files. Is this style of AI-driven contribution guidance acceptable for this project/community?

If the community prefers a different location, wording, language, or scope for these instructions, this draft is intended as a place to discuss that before marking it ready.

Review notes

  • The documents are written in Chinese to match the default root README.
  • The guidance intentionally avoids introducing extra local environment assumptions such as Docker-first development or host-level tool installation rules.
  • The ostool-server guidance calls out that cargo test -p ostool-server may invoke pnpm through build.rs, so missing tools should be reported rather than hidden by committing generated artifacts or changing tool sources.

Tests

  • git diff --check upstream/main...HEAD
  • Searched the new AGENTS files for unrelated local-environment assumptions (Docker, Dev Container, brew, npm -g, rustup, pyenv, etc.).
  • Not run: Cargo/pnpm tests, because this PR only adds documentation files.

MRNIU added 4 commits May 6, 2026 17:41
Initialize repository and project-local guidance for agents.

- Document dependency, git, validation, documentation, and Rust conventions at the repository root.

- Add scoped instructions for each workspace crate and the server web UI.
Remove local Docker-first policy from the project guidance.

- Keep repository and CI-declared tool versions as validation evidence.

- Ask agents to report missing tools instead of encoding host setup rules.
Use Chinese as the primary language for AGENTS guidance to match the repository's default README.

- Keep commands, paths, crate names, and package manager names unchanged.

- Preserve environment hygiene guidance by reporting missing tools instead of changing host setup.
Keep AGENTS guidance focused on repository-declared tools and checks.

- Remove explicit Docker and Dev Container references from root guidance.

- Avoid suggesting global installs as an environment workaround.
@MRNIU
Copy link
Copy Markdown
Author

MRNIU commented May 6, 2026

这个 draft PR 已由 #95 取代:新 PR 使用 README 示例中的 feature 分支风格,并将 4 个提交合并为 1 个中文提交。

@MRNIU MRNIU closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant