zeph
Copilot instructions63 starsChanged 6 months agoMITView on GitHub
Zeph is a Rust AI agent workspace (Edition 2024, resolver 3) with 31 library crates under crates/ plus the zeph CLI binary. Review all changes against these standards.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- book/AGENTS.mdAGENTS.md
- config/AGENTS.mdAGENTS.md
- crates/AGENTS.mdAGENTS.md
- docker/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
The file
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 17
All dependencies defined in root [workspace.dependencies] with no features at workspace level
- Very specific: line 26
Avoid .unwrap() and .expect() in non-test code — prefer ?
- Very specific: line 42
Verify deny.toml compliance for new dependencies
- Very specific: line 46
Every fallible public function must have # Errors doc section
≈ “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 Code Review Instructions
Project Context
Zeph is a Rust AI agent workspace (Edition 2024, resolver 3) with 31 library crates under crates/ plus the zeph CLI binary. Review all changes against these standards.
Architecture Rules
zeph-coreorchestrates all leaf crates; no reverse dependencies allowedzeph-agent-context,zeph-agent-persistence, andzeph-agent-toolsMUST NOT depend onzeph-core— the dependency runszeph-core→ these crates, never the reverse; flag any newzeph-coreimport added to themzeph-durableis a Layer-0 infra crate (alongsidezeph-db,zeph-common); it MUST NOT depend onzeph-llm,zeph-memory,zeph-core,zeph-sanitizer, or any business-layer cratezeph-tui,zeph-a2a,zeph-acp,zeph-gateway,zeph-scheduler, andzeph-benchare feature-gated and optional- All dependencies defined in root
[workspace.dependencies]with no features at workspace level - Crates inherit via
workspace = trueand specify features locally - TLS:
rustlsonly — reject anyopenssl-sysintroduction - Dependencies must be sorted alphabetically in Cargo.toml
Rust Code Standards
- Edition 2024 native async traits — reject
async-traitcrate usage unsafecode is not allowed — if you see anyunsafeblock, treat it as a blocking issue and call it out explicitly- Avoid
.unwrap()and.expect()in non-test code — prefer?with error propagation - Library crates use
thiserror; application code usesanyhowwith.context() - Logging via
tracingcrate only — rejectlogcrate orprintln!in library code - Builder methods must return
selfand be annotated with#[must_use] - String parameters in constructors: accept
impl Into<String> - Feature-gated modules:
#[cfg(feature = "name")]onpub modinlib.rs - Formatting: use rustfmt’s default settings (no project-specific rustfmt.toml)
Security Review (Critical)
- Flag hardcoded secrets, API keys, tokens, or credentials
- Flag SQL injection risks in SQLite queries (must use parameterized queries)
- Flag command injection in shell executor (validate and sanitize inputs)
- Flag path traversal in skill loader and file operations
- Flag missing input validation at system boundaries
- Flag XSS in any user-facing output
- Verify
deny.tomlcompliance for new dependencies
Error Handling
- Every fallible public function must have
# Errorsdoc section - Error types must be specific and actionable — reject generic
Box<dyn Error> - Propagate context:
.context("descriptive message")for anyhow chains - Reject silent error swallowing (empty
catch,let _ = fallible())
Testing Requirements
- New public functions require corresponding unit tests
- Tests use inline
#[cfg(test)] mod testsblocks - Async tests use
#[tokio::test] - Tests sharing state must use
#[serial]fromserial_test - Mock types implement the real trait — reject mocking frameworks
- Integration tests requiring external services must be
#[ignore]
Performance
- Flag N+1 query patterns in database code
- Flag unbounded collections (Vec, HashMap) populated from external input without limits
- Flag blocking operations inside async contexts (use
spawn_blocking) - Flag unnecessary cloning — prefer borrowing
Review Style
- Be specific and actionable: explain the "why" behind each suggestion
- Reference the specific rule or convention being violated
- Acknowledge well-written code patterns
- Prioritize: security > correctness > performance > style
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.

