-
Notifications
You must be signed in to change notification settings - Fork 776
docs: add portable agent skills #873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AbhishekRP2002
wants to merge
1
commit into
plastic-labs:main
Choose a base branch
from
AbhishekRP2002:docs/agents-skills
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| --- | ||
| name: honcho-cli | ||
| description: Inspect and debug Honcho workspaces via the `honcho` CLI. Use when investigating peer representations, memory state, session context, queue status, or dialectic quality — any task that requires introspection of a Honcho deployment. | ||
| allowed-tools: Bash(honcho:*), Bash(jq:*), Read, Grep | ||
| --- | ||
|
|
||
| # Honcho CLI | ||
|
|
||
| `honcho` wraps the Honcho Python SDK with agent-friendly defaults: JSON output, structured errors, input validation. Use it to inspect workspace state, debug peer memory, and diagnose the dialectic. | ||
|
|
||
| ## Output & config | ||
|
|
||
| - **TTY**: human-readable tables (default when interactive) | ||
| - **Piped / `--json`**: JSON — collection commands emit arrays, single-resource commands emit objects | ||
| - **Exit codes**: `0` success · `1` client error (bad input, not found) · `2` server error · `3` auth error | ||
| - **Config**: `~/.honcho/config.json` (shared with other Honcho tools). The CLI owns `apiKey` and `environmentUrl` at the top level; run `honcho init` to confirm or set them. Per-command scope (workspace / peer / session) is via `-w` / `-p` / `-s` flags or `HONCHO_*` env vars. | ||
|
|
||
| ## Command groups | ||
|
|
||
| - `honcho config` — CLI configuration | ||
| - `honcho workspace` — inspect, delete, search | ||
| - `honcho peer` — inspect, card, chat, search | ||
| - `honcho session` — inspect, messages, context, summaries | ||
| - `honcho message` — list and get | ||
| - `honcho conclusion` — list, search, create, delete | ||
|
|
||
| ## Rules | ||
|
|
||
| - Always pass `--json` when processing output programmatically. | ||
| - Run `honcho peer inspect` before `honcho peer chat` to understand context. | ||
| - Use `honcho session context` to see exactly what an agent receives. | ||
| - Never run `honcho workspace delete` without `honcho workspace inspect` first. | ||
| - Check queue status when derivation seems stalled. | ||
| - Compare peer card with conclusions to understand memory state. | ||
|
|
||
| ## Inspection tour | ||
|
|
||
| When orienting to a Honcho deployment, walk outside-in: | ||
|
|
||
| ### 1. Understand the workspace | ||
|
|
||
| ```bash | ||
| honcho workspace inspect --json | ||
| ``` | ||
|
|
||
| ### 2. Find the peer | ||
|
|
||
| ```bash | ||
| honcho peer list --json | ||
| honcho peer inspect <peer_id> --json | ||
| ``` | ||
|
|
||
| ### 3. Check peer's memory | ||
|
|
||
| ```bash | ||
| honcho peer card <peer_id> --json | ||
| honcho conclusion list --observer <peer_id> --json | ||
| honcho conclusion search "topic" --observer <peer_id> --json | ||
| ``` | ||
|
|
||
| ### 4. Debug a session | ||
|
|
||
| ```bash | ||
| honcho session inspect <session_id> --json | ||
| honcho message list <session_id> --last 20 --json | ||
| honcho session context <session_id> --json | ||
| honcho session summaries <session_id> --json | ||
| ``` | ||
|
|
||
| ### 5. Search across workspace | ||
|
|
||
| ```bash | ||
| honcho workspace search "query" --json | ||
| honcho peer search <peer_id> "query" --json | ||
| ``` | ||
|
|
||
| ## Debugging playbook | ||
|
|
||
| ### Peer not learning? | ||
|
|
||
| ```bash | ||
| # Is observation enabled? | ||
| honcho peer inspect <peer_id> --json | jq '.configuration' | ||
|
|
||
| # Is the deriver queue processing messages? | ||
| honcho workspace queue-status --json | ||
|
|
||
| # What conclusions exist? | ||
| honcho conclusion list --observer <peer_id> --json | ||
| honcho conclusion search "expected topic" --observer <peer_id> --json | ||
| ``` | ||
|
|
||
| ### Session context looks wrong? | ||
|
|
||
| ```bash | ||
| # Raw context an agent would receive | ||
| honcho session context <session_id> --json | ||
|
|
||
| # Summaries feeding the context | ||
| honcho session summaries <session_id> --json | ||
|
|
||
| # Recent message history | ||
| honcho message list <session_id> --last 50 --json | ||
| ``` | ||
|
|
||
| ### Dialectic giving bad answers? | ||
|
|
||
| ```bash | ||
| # What the peer card says | ||
| honcho peer card <peer_id> --json | ||
|
|
||
| # Conclusions on the specific topic | ||
| honcho conclusion search "topic" --observer <peer_id> --json | ||
|
|
||
| # Exercise the dialectic directly | ||
| honcho peer chat <peer_id> "what do you know about X?" --json | ||
| ``` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Spell out the exact scope env vars.
HONCHO_*is too broad here; the CLI contract only documentsHONCHO_WORKSPACE_ID,HONCHO_PEER_ID, andHONCHO_SESSION_ID. Naming them explicitly avoids implying that other Honcho env vars are accepted for scoping.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents