Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Default model is `gemini-2.5-flash`.
- `SpecdiffConfig` — all config fields above
- `HashMap` — node_id → `HashMapEntry` (spec_hash, generated_files, generated_at, output_hashes, inputs). `output_hashes` lets `hashmap.modified_files()` detect hand edits; `inputs` records what the build depended on (see `plan.py`).

### CLI Commands (`cli.py`)
### CLI Commands (`cli/`: one module per area, shared loading in `cli/common.py`)

- `build [node_id]` — generate code for stale specs (with `node_id`: that node plus its stale prerequisites); `--no-review` skips review stage; `--dry-run` previews stale nodes without invoking LLM; `--force` overwrites generated files edited by hand
- `status` — show staleness per node (new/stale/current) and why
Expand All @@ -82,7 +82,8 @@ Default model is `gemini-2.5-flash`.
- `review [node_id]` — run Spec Agent and write proposed revisions to `.specdiff/proposed/`
- `clean [node_id]` — delete generated files and hash map entries, forcing a full rebuild
- `ui [--port] [--no-browser]` — launch React+Vite graph visualization via `api.py`
- `init` — scaffold `.specdiff/` with `config.yaml`, default skill files, and an example spec
- `init` — scaffold `.specdiff/` with `config.yaml`, a skills README, and an example spec
- `skill NAME` — print the effective skill (override or built-in) so it can be copied and edited
- `extract [--source .] [--granularity auto|file]` — reverse-engineer existing code into `.spec.md` files

### React UI (`ui/` + `api.py`)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ All changes must pass CI (lint + tests) before merging.

```
src/specdiff/
cli.py # Click CLI commands
cli/ # Click commands, one module per area
config.py # .specdiff/config.yaml loader
parser.py # Spec file parser (frontmatter + SHA-256 hashing)
graph.py # Spec graph: depends_on and parent edges, topological sort
Expand Down
2 changes: 1 addition & 1 deletion DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Specdiff turns software development into a compilation problem.
>
> Note: this document describes the target architecture. The current implementation covers spec parsing, dependency graphs, incremental rebuild tracking, `build`/`status`/`impact`/`review`/`extract` commands, a four-stage swarm (Architect → Interface Planner → Implementation ‖ Testing → Review), automatic retry with critique feedback, dependency code context in generation prompts, rollback on failing tests, and user-customisable skill files. Independent test specs, reconciler/migration agents, reverse-patch debugging, version-history edges, and user-defined agents are still future work.
> Note: this document describes the target architecture. Implemented today: spec parsing; a graph where `depends_on` and `parent` are both prerequisite edges; fingerprinted incremental builds that explain why a spec is stale; `build`/`status`/`impact`/`validate`/`review`/`clean`/`extract`; a per-spec pipeline (plan → implement ‖ test → deterministic checks → repair → review) whose repair stage is a first version of the Reconciler described below; human-owned acceptance tests, the current form of independent test specs; hand-edit detection; per-spec commit and rollback; and built-in, overridable skills. Still future work: Markdown test specs that generate tests, the Migration agent, reverse-patch debugging, version-history edges, and user-defined agents. See [docs/example-audit.md](docs/example-audit.md) for the evidence behind the current pipeline's design.

```
spec → compile → system
Expand Down
Loading
Loading