Fully Automated - 100% Backpressure - Pipeline runner ๐Ÿƒ for AI workflows. ๐Ÿš€

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 Instructions
22
3-## Versioning
3+## Build & Test
44
5-All crates share a single version defined in the workspace root `Cargo.toml`:
6-
7-```toml
8-[workspace.package]
9-version = "0.1.0"
5+```bash
6+cargo build --release # Build CLI binary
7+cargo test # Run all tests
8+cargo test -p attractor-dot # Test a single crate
9+cargo clippy --workspace # Lint
10+cargo fmt --all -- --check # Format check
1011 ```
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 version
15+## Versioning
1516
16-1. Edit the `version` field in `/Cargo.toml` under `[workspace.package]`
17-2. Run `cargo check` to verify the workspace compiles
18-3. Rebuild the release binary: `cargo build --release`
19-4. Commit the `Cargo.toml` change and tag the release:
20- ```bash
21- git add Cargo.toml
22- git commit -m "Bump version to X.Y.Z"
23- git tag vX.Y.Z
24- ```
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 version
19+## Key Gotchas
2720
28-- **Patch** (0.1.x): Bug fixes, documentation changes, internal refactors
29-- **Minor** (0.x.0): New features, new handlers, new CLI subcommands
30-- **Major** (x.0.0): Breaking changes to pipeline format, CLI interface, or public API
21+- The default `codergen` handler shells out to the local `claude` CLI โ€” it requires Claude Code installed, no API key needed
22+- Direct LLM handlers (OpenAI/Anthropic/Gemini) need their respective `*_API_KEY` env vars
23+- Pipeline files use DOT (Graphviz digraph) syntax โ€” see `docs/guide.md` for node attributes
24+- Integration tests are in `crates/attractor-pipeline/tests/integration.rs`
3125
32-### Verifying the version
26+## Docs Reference
3327
34-```bash
35-cargo run -- --version
36-```
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 |