instinct-cli 0.3.6

Local memory for AI coding agents: an MCP server and CLI that gives Claude Code, Codex, Cursor and any MCP client the one lesson that fits. Lessons that keep failing go quiet.
# Instinct

[![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/)

**Instinct for your agent or harness: one local memory of what worked, shared by every agent you use.**

You fix your agent's mistake on Monday. On Tuesday a fresh session makes it again, and the other agent you use never heard about it.

Instinct gives all your agents one memory of what worked. Lessons live in a file on your machine. Before a decision, any agent that uses that file gets back the lesson that fits the situation, or nothing if none does. Lessons that keep getting marked wrong stop coming back.

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

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:** `/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).