AGENTS.md instructions for /Users/tristan/Projects/oss/semble-port/sifs <INSTRUCTIONS>…
- User
AGENTS.md instructions for /Users/tristan/Projects/oss/semble-port/sifs
When you need to call tools from the shell, use this rubric:
File Operations
- Find files by file name:
fd - Find files with path name:
fd -p <file-path> - List files in a directory:
fd . <directory> - Find files with extension and pattern:
fd -e <extension> <pattern>
Structured Code Search
- Find relevant code/docs for a concept when the exact file, symbol, or wording is unknown:
sifs search '<query>' --source . --mode hybrid --limit 10 - Prefer
sifshybrid search early for broad codebase orientation, feature tracing, and "where is this implemented?" questions. - If SIFS has not been initialized for the repo yet, run
sifs initfrom the repo root. - Find code structure:
ast-grep run --lang <language> --pattern '<pattern>' - List matching files:
ast-grep run --lang <language> --pattern '<pattern>' --files-with-matches | head -n 10 - Prefer
ast-grepoverrg/grepwhen you need syntax-aware matching - Prefer exact text search (
rg) or structural search (ast-grep) once a concrete identifier, string, import, function shape, or AST pattern is known.
Data Processing
- JSON:
jq - YAML/XML:
yq
Selection
- Select from multiple results deterministically (non-interactive filtering)
- Fuzzy finder:
fzf --filter 'term' | head -n 1
Guidelines
- Prefer deterministic, non-interactive commands (
head,--filter,--json+jq) so runs are reproducible
Oracle
- Oracle bundles a prompt plus the right files so another AI (GPT 5.5 Pro) can answer. Use when stuck/bugs/reviewing.
- Run
npx -y @steipete/oracle --helponce per session before first use.
Subagents
- ALWAYS wait for all subagents to complete before yielding.
- Spawn subagents automatically when:
- Parallelizable work (e.g., install + verify, npm test + typecheck, multiple tasks from plan)
- Long-running or blocking tasks where a worker can run independently. Isolation for risky changes or checks
- Find files by file name:
- User
<environment_context> /Users/tristan/Projects/oss/semble-port/sifs zsh <current_date>2026-05-28</current_date> Europe/Berlin </environment_context>
- User
release the next version (should probably be 0.4.0? not sure)
- Assistant
I’ll treat this as a real release task: first I’m going to inspect the current version, changelog, tags, and release tooling so the version choice is based on the checkout rather than a guess.
- Assistant
The repo is on
main, currently at0.3.4, and the newest tag isv0.3.4. The changelog has a largeUnreleasedsection with structural inspection and other user-facing work, so I’m checking whether the project’s release script and metadata agree that this should be a minor release. - Assistant
Memory confirms the last successful SIFS release flow: metadata check, locked Rust verification,
cargo publish --locked, tag, GitHub release, and Homebrew tap update. I’m going to prepare0.4.0because the unreleased entries add new CLI/MCP structural tooling, which is a minor-version feature release rather than another patch. - Assistant
I’m going to make the release metadata edits now: bump the crate to
0.4.0and move the currentUnreleasednotes into a dated0.4.0 - 2026-05-28section, leaving a fresh emptyUnreleasedat the top. - Assistant
The first locked check failed only because changing the package version requires regenerating
Cargo.lock. I’m updating the lockfile without network, then I’ll rerun the locked checks that CI/release uses. - Assistant
cargo check --offlineis compiling against the updated package version now. While that runs, I’m checking the release metadata surfaces that usually drift, especially the bundled Homebrew formula. - Assistant
The lockfile now only reflects the package version bump. The bundled Homebrew formula is still stale at
0.3.3, so I’ll update that oncecargo packageproduces the release crate checksum. Next I’m running the release verification suite before publishing. - Assistant
cargo fmtand the release metadata check passed.cargo testandclippyare still running; they’re sharing Cargo’s build locks, so I’m letting them finish rather than starting more build work on top. - Assistant
cargo test --lockedfinished cleanly andclippypassed with warnings denied. I’m doing the release binary build and package dry-run next, then I’ll use the generated.cratechecksum to fix the Homebrew formula metadata. - Assistant
The release build is still running. The publish dry-run refused the dirty version-bump files, which is expected for Cargo; I’ll complete the local metadata set, commit it, then rerun the dry-run from a clean tree before the real publish.
- Assistant
The package verification succeeded and produced the crate archive checksum. I found the local
~/Projects/homebrew-tapcheckout only hasclipmem, so I’m checking the actual tapped Homebrew repo path before updating tap metadata. - Assistant
I found the active Homebrew tap at
/opt/homebrew/Library/Taps/tristanmanchester/homebrew-tap; it hassifsat0.3.4. I’m updating both the bundled formula in this repo and the tap formula to0.4.0with the crate checksum from the verified package. - Assistant
I added a changelog line for the formula metadata change. Because that changes the packaged crate contents, I need to regenerate the crate checksum and then refresh the formula hashes once more before committing.
- Assistant
The release metadata now checks out, and the diff is exactly the expected version/changelog/lockfile/formula change. I’m committing the SIFS release prep so Cargo will allow a clean publish dry-run.
- Assistant
The release-prep commit is in place.
cargo publish --dry-run --lockedis now doing the clean package verification from that commit. - Assistant
The clean publish dry-run passed. I’m publishing
sifs0.4.0to crates.io now, then I’ll tag/push and create the GitHub release. - Assistant
crates.io publish succeeded and
sifs 0.4.0is available. I’m tagging the release commit and pushingmainplusv0.4.0next. - Assistant
The release commit and tag are pushed. I’m creating the GitHub release from the
0.4.0changelog section now. - Assistant
GitHub release creation succeeded. I still need to finish the Homebrew side: commit and push the tap formula update, then install/test the released formula rather than stopping at source-publish.
- Assistant
The tap formula update is pushed. I’m now checking the GitHub Actions run started by the tag and validating the installed Homebrew formula with a local smoke test.
- Assistant
crates.io is visible via
cargo searchas0.4.0, but Homebrew’s direct crates.io download got a 403. I’m checking whether this is propagation/user-agent behavior or a formula URL issue before changing the tap. - Assistant
The 403 is from crates.io’s API download endpoint policy, not the artifact: the immutable static crate URL returns 200. I’m switching the Homebrew formula URLs to
static.crates.io, which is the correct non-API artifact URL for Homebrew fetches, then I’ll amend/push the release-prep commit and tap commit. - Assistant
Since
0.4.0is already published immutably, I’m not going to rewrite the release tag to pretend the crate contents changed. I’m making this as a post-releasemainfix: update the bundled formula URL to the static artifact endpoint, add anUnreleasedchangelog note for that packaging fix, and push it after thev0.4.0tag. - Assistant
The static artifact is reachable, but its actual crates.io checksum is
41fadaa..., not the local pre-publish package hash. I’m correcting both formula checksums to the published artifact hash before testing Homebrew again.