Commit b4afdb9c
b4afdb9c2555Merged
Scott Nixon <[email protected]> ยท 9 months ago ยท 1 file ยท ~1 modified
Description
docs: Optimize AGENTS.md for agent performance
Replace versioning-only tutorial content with research-backed context: build/test commands, project gotchas, and docs pointers.
Details
- Commit
- b4afdb9c2555
- Parent
- 57ec8a99c17d
AGENTS.mdmodifiedView file
@@ -1,38 +1,32 @@
11
# Attractor - Agent Instructions22
3-
## Versioning3+
## Build & Test44
5-
All crates share a single version defined in the workspace root `Cargo.toml`:6-
7-
```toml8-
[workspace.package]9-
version = "0.1.0"5+
```bash6+
cargo build --release # Build CLI binary7+
cargo test # Run all tests8+
cargo test -p attractor-dot # Test a single crate9+
cargo clippy --workspace # Lint10+
cargo fmt --all -- --check # Format check1011
```1112
12-
Each crate inherits it via `version.workspace = true` in its own `Cargo.toml`. **Do not set versions directly in individual crates.**13+
The CLI binary is `attractor`. Install with `cargo install --path crates/attractor-cli`.1314
14-
### How to bump the version15+
## Versioning1516
16-
1. Edit the `version` field in `/Cargo.toml` under `[workspace.package]`17-
2. Run `cargo check` to verify the workspace compiles18-
3. Rebuild the release binary: `cargo build --release`19-
4. Commit the `Cargo.toml` change and tag the release:20-
```bash21-
git add Cargo.toml22-
git commit -m "Bump version to X.Y.Z"23-
git tag vX.Y.Z24-
```17+
All crates share a single version in workspace root `Cargo.toml` under `[workspace.package]`. Each crate inherits via `version.workspace = true`. **Never set versions directly in individual crates.** Bump only in the workspace root, then run `cargo check`.2518
26-
### When to bump the version19+
## Key Gotchas2720
28-
- **Patch** (0.1.x): Bug fixes, documentation changes, internal refactors29-
- **Minor** (0.x.0): New features, new handlers, new CLI subcommands30-
- **Major** (x.0.0): Breaking changes to pipeline format, CLI interface, or public API21+
- The default `codergen` handler shells out to the local `claude` CLI โ it requires Claude Code installed, no API key needed22+
- Direct LLM handlers (OpenAI/Anthropic/Gemini) need their respective `*_API_KEY` env vars23+
- Pipeline files use DOT (Graphviz digraph) syntax โ see `docs/guide.md` for node attributes24+
- Integration tests are in `crates/attractor-pipeline/tests/integration.rs`3125
32-
### Verifying the version26+
## Docs Reference3327
34-
```bash35-
cargo run -- --version36-
```37-
38-
The CLI uses clap's `#[command(version)]` attribute, which reads the version from `attractor-cli/Cargo.toml` (inherited from workspace) at compile time.28+
| Doc | Contents |29+
|-----|----------|30+
| `docs/guide.md` | DOT syntax, node attributes, pipeline patterns, planning workflow |31+
| `docs/cli-reference.md` | CLI commands, flags, environment setup |32+
| `docs/task-verification.md` | Handler dispatch, goal gates, edge routing, budget guards |