Skip to content

feat(agents): install cora into pi and omp - #756

Merged
ajianaz merged 2 commits into
developfrom
feat/agent-pi-omp
Nov 16, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/agent-pi-omp

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

What

  • cora install now sets up pi and omp (oh-my-pi): a before_agent_start extension that injects the cora hook context block before each prompt, the MCP server in mcp.json (exposure: direct for pi, whose default hides MCP tools behind codemode), and the cora-code skill.
  • A file of yours with the same name is never replaced without --force; an unreadable or oddly shaped mcp.json / extension is reported and left untouched; --remove deletes only what cora wrote and restores your mcp.json.

Why

Part of #753: agents should use code search on every prompt, not only when the model remembers a tool exists. Refs #753.

Testing

  • cargo fmt --all -- --check, cargo clippy --all-targets --features tree-sitter -- -D warnings, cargo test --features tree-sitter pass locally.
  • Unit tests: idempotent install and exact restore on remove for both agents, a user's own extension is kept, unreadable or wrongly shaped files are never overwritten, the binary path is embedded as a safe string literal.
  • Run for real with pi 1.5.2 and omp 18.20.3 in an isolated home: the extension ran and the cora-context message was stored in the session; pi mcp list shows cora connected with its tools listed directly.

Generated by Claude Code

A before_agent_start extension injects the code-search block before each
prompt; the MCP server is registered (direct exposure for pi) and the
cora-code skill installed. Verified against pi 1.5.2 and omp 18.20.3.

Refs #753.
@ajianaz
ajianaz merged commit 53600c3 into develop Nov 16, 2026
13 checks passed
@ajianaz
ajianaz deleted the feat/agent-pi-omp branch November 17, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant