Skip to content

feat: one agent engine: skills served from Gleap, and a coding session's ticket tools under Gleap's rules - #14

Draft
boehlerlukas wants to merge 15 commits into
mainfrom
engine/clean
Draft

boehlerlukas wants to merge 15 commits into
mainfrom
engine/clean

Conversation

@boehlerlukas

Copy link
Copy Markdown
Contributor

The MCP server's part of the "one agent engine" rework. One PR for this repo; it goes with the engine/clean PRs in Server and Frontend.

What changes

  • list_skills and get_skill serve the workspace's skills from Gleap (the Server's skills/ folder is the one source). A customer-scoped run reads none.
  • list_ticket_tools and call_ticket_tool give a coding session Operator's billing and shop tools on its ticket. Gleap's rules decide: ran, refused, or waits for approval.
  • get_session_brief: the coding-session kickoff comes from the Server's agent-workflow route; solve_ticket prompt and session rules defer to the brief.

This branch contains the work of the older drafts #13 (operator/solve-ticket) and #9 (operator/session-brief), which it replaces.

Needs

The Server's engine/clean deployed first: the skill library and ticket-tool routes live there.

Checked

  • npm run typecheck: clean
  • npm test: exit 0

Not run against a deployed Server.

🤖 Generated with Claude Code

boehlerlukas and others added 15 commits November 21, 2026 08:18
Moved from the private archive repo (PR #116 there).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ent-workflow route

The Server serves a session's brief on GET /gleapcode/sessions/{id}/agent-workflow
without a kind, as Markdown in `markdown` (`brief` is its structured form).
There is no agent-brief route. The required behaviour changed, so this test changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Server has no agent-brief route: it serves a session's brief on
GET /gleapcode/sessions/{id}/agent-workflow without a kind, as Markdown in
`markdown`. get_session_brief now calls that route and returns that text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ain's tests do

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o the customer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The instruction text and five tool texts no longer state their own rule for customer messages and ticket ownership: they point at the session's brief and fall back to asking first.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Instruction rules 1-2 keep one text: a kickoff that names a session calls get_session_brief first, the brief decides ownership and customer messages (a code-fix session never sends), and without a rule in the brief the agent asks its operator first. README's send_message and draft_reply_to_composer rows follow the brief's reply rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oped run reads none

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Both read the Server's skill library (GET /skills/library, /skills/library/{name}?file=): Gleap's skills from the
Server's skills/ folder and the workspace's own, with a workspace's changed version in place of Gleap's under the
same name. get_skill returns the SKILL.md (frontmatter and body) and, with file, one of its files (the workflow a
coding-app skill points to). Registered with the coding-agent tools, outside ChatGPT's list. Neither is on the
session-scope allow list, so a customer-scoped run is refused before any call reaches Gleap.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…tool calls to Gleap and show ran, refused or waits for approval

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…erator's billing and shop tools on its ticket, decided by Gleap's rules

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.

2 participants