instinct-cli 0.3.8

Shared local memory for coding agents. Save a fix once and find it again in a new session or another connected tool.
# Instinct

Instinct keeps the fix when the chat ends. Once you figure out how to run your project’s tests offline, you or your coding agent can save the command on your computer. The next time those tests fail, even a different connected agent can look up what worked.

- **See it work:** [Claude saved a rule. A fresh Codex used it to print four correct badges.]https://github.com/koscak-labs/instinct/blob/b8b94001da0a7fac0f031ebc570a536ba6eb9424/bench/relay/README.md No install needed.
- **Try it yourself:** [Save a fix and find it in a fresh session.]https://github.com/koscak-labs/instinct/blob/b8b94001da0a7fac0f031ebc570a536ba6eb9424/README.md#see-it-in-30-seconds
- **Already installed?** Run `instinct doctor` to see what’s connected and what still needs setup.

[![Give your AI better instincts. Koščák Labs.](https://raw.githubusercontent.com/koscak-labs/instinct/fbfdb8d0222dd389b8d2f132282197c785a7a898/docs/assets/readme/instinct.jpg)](https://koscak.ai/instinct/)

If no saved lesson fits, Instinct returns nothing. Mark a lesson when it helps or gets in the way; lessons that repeatedly miss stop being suggested.

It plugs into Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode and more than 70 other agents through a skill, an MCP server, hooks or a few lines in `AGENTS.md`. It runs offline, needs no API key, and the engine has no third-party dependencies.

## Try it: save a fix and find it again

With Rust 1.89 or later:

```sh
cargo install --locked instinct-cli
export INSTINCT_STORE="$(mktemp -d)/bank.hxdb"

instinct bank --title 'Run the tests offline' \
  --when 'Running the test suite in this repo' \
  --found 'Tests fail when cargo tries to reach crates.io from the CI runner' \
  --how 'Run cargo test --locked --offline' \
  --evidence 'CI failed twice online and passed offline'

instinct recall --q 'the test suite keeps failing on CI' --k 1
instinct hit in-ux8hsjq --note 'offline run passed'
```

Recall prints the lesson, and an unrelated question prints nothing. A hit raises the lesson's strength, and after repeated misses it stops being suggested. `instinct demo` runs a short offline story in a throwaway bank.

Run `instinct guide list` for decision workflows and examples. Try `instinct guide review --example spreadsheet` to compare a real-world kind of mismatch, draft a lesson and prepare a handoff using sample data.

## Connect an agent

- **Any of 79 agents:** `npx skills add koscak-labs/instinct --skill instinct`, or print the skill with `instinct skill`.
- **Any MCP client:** run `instinct mcp` over stdio with `INSTINCT_STORE` set.
- **Any agent with a shell:** paste the short block from the README into `AGENTS.md`.
- **Claude Code in one step:** `claude plugin marketplace add koscak-labs/instinct && claude plugin install instinct@koscak-labs` (in a session: `/plugin marketplace add koscak-labs/instinct`, then `/plugin install instinct@koscak-labs`).

Setup for each agent, the full command list and the limits are in the [README](https://github.com/koscak-labs/instinct#readme).

## Links

- [Try the engine in your browser]https://koscak-labs.github.io/instinct/playground/
- [Source and issues]https://github.com/koscak-labs/instinct
- [Memory file versus Instinct bench]https://github.com/koscak-labs/instinct/tree/main/bench/flat-file
- [Security]https://github.com/koscak-labs/instinct/blob/main/SECURITY.md
- MCP Registry name: `mcp-name: io.github.koscak-labs/instinct`

Made by Filip Koščák at Koščák Labs. Licensed under [Apache-2.0](https://github.com/koscak-labs/instinct/blob/main/LICENSE).