Skip to content
Open
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

- Settings live only in `hosts.opencode` (`apiKey` or a `/honcho:login` sign-in, `peerName`, `workspace`, `aiPeer`, `baseUrl`); on first start, older configs get the key, server, workspace and peer the old version used written there, so memory stays under the same `user-<peerName>` peer. `recallMode`, `observationMode`, `sessionStrategy`, `removeUserPrefix` and `agentObserveMe` are gone.
- One Honcho session per OpenCode session, joined to the repository and host scopes when created. Every user and assistant message is saved (long ones split into parts); slash commands (including their expansions on 2.x), goal and scheduled prompts, subagent prompts and tool summaries are not.
- Memory is injected once per session (directives and your peer card); `honcho_chat` takes `scope`, `workspace` and `reasoning_level`. Per-turn recall, automatic conclusions and the `HONCHO_*` shell variables are removed.

## 0.2.1

- OpenCode 2.x: act only on sessions that belong to the plugin instance's location. OpenCode 2 runs one plugin instance per location but its event stream is server-wide, so with several directories open each assistant reply was hydrated and captured once per directory and landed in every per-directory Honcho session. Events without a location (`session.execution.*`) follow the directory recorded for their session (#55).
Expand Down
155 changes: 42 additions & 113 deletions README.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"prepublishOnly": "bun run build"
},
"dependencies": {
"@honcho-ai/harness-plugin-core": "^0.1.0",
"@honcho-ai/sdk": "^2.4.0",
"@honcho-ai/harness-plugin-core": "^0.2.0",
"@honcho-ai/sdk": "^2.8.0",
"zod": "^4.1.8"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions skills/honcho-memory/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ license: MIT

# Honcho memory

You have a persistent memory of this user that survives across sessions, backed by Honcho. In `hybrid` or `context` recall mode the opencode-honcho hooks inject relevant context each turn; in `tools` mode this skill is how memory reaches you. The hooks record the conversation in every mode. This skill is for the times you should reach for memory *actively*.
You have a persistent memory of this user that survives across sessions, backed by Honcho. The opencode-honcho plugin saves every user and assistant message, and loads the user's profile (their peer card) once at the start of each session. Nothing else is injected, so anything beyond the profile is recalled on demand with the tools below.

## When to pull memory

Before non-trivial work, query memory instead of guessing:

- The task touches the user's preferences, conventions, or past decisions
- You're about to make an assumption you could instead verify ("which package manager?", "how is auth done here?")
- The user references something from "before" or "last time"
- The user references something from "before" or "last time", or asks to resume earlier work

Use the Honcho tools:

- `honcho_search` — semantic lookup over past messages
- `honcho_chat` — ask a natural-language question about the user or project ("what's their testing style?")
- `honcho_chat`: ask a natural-language question about the user ("what's their testing style?"). Pass `scope` (the repository or machine name) to answer only from sessions in that scope, or `workspace: true` to ask about everyone in the workspace. `reasoning_level` defaults to `medium`.
- `honcho_search`: look up saved messages in this session, or across the workspace with `workspace: true`.

## When to save memory

Expand All @@ -30,7 +30,7 @@ After you learn something durable, persist it with `honcho_create_conclusion`:
- A non-obvious gotcha or root cause worth remembering
- A convention specific to this codebase

Keep each conclusion to one concise statement with the *why*. Review before adding near-duplicates.
Keep each conclusion to one concise statement with the *why*.

## When not to bother

Expand Down
Loading
Loading