8000 feat(circles): ask someone's agent, answered from what they let you ask about by adeelahmad · Pull Request #664 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(circles): ask someone's agent, answered from what they let you ask about - #664

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-97gkhw
Oct 19, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-97gkhw

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: family members' agents could share items and find free times, but one agent couldn't ask another a question ("what does Sam's trip need?").

After: turn on They can ask your agent questions on a circle (lets: ["questions"]) and pick the namespaces answers come from (about, never a vault). Its people, or their agents, ask through POST /api/v1/circles/ask, MCP ask_their_agent, the assistant, or Profile → Circles. The answer comes only from excerpts in those namespaces, cites them, and says when it can't tell. The asked person sees each question and answer in their timeline (agent.asked).

How: domain/circles_ask.py searches only the picked namespaces as the asked person, passes the question to the model as outside text, and logs one model call in the activity ledger for both people; with no model set up the matching excerpts come back instead. A source links to its page only when the asker can open it.

Motivation and Context

Part of the agent family network (agents ask each other on their people's behalf), the fourth of the saved circles PRs after #626, #649, #653 and #661.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it in changelog.d/circles-ask-agent.md.

Done questions (AGENTS.md)

  • Goal: one person's agent asks another's, grounded and cited; merged on green CI.
  • Agents: API POST /api/v1/circles/ask, MCP ask_their_agent, assistant tool.
  • Zero setup: nothing new to install or configure.
  • Fewest clicks: one toggle and a namespace pick on a circle.
  • Configurable: lets and about editable in Profile → Circles and the API; off by default.
  • Light: one cloud model call per answer, or excerpts with no model.
  • Private and secure: answers only from picked namespaces, never vaults; question treated as outside text; threat model updated.
  • Cost: one model call per answer, in the activity ledger and budgets.
  • User decides: nothing is answerable until the person turns it on; defaults unchanged.
  • Upgrades: n/a, existing circles have empty lets, so nothing changes until turned on.
  • Honest: answers cite excerpts; docs label it built.
  • Tests, docs and the generated client (make openapi) updated.
  • Open standards; no new dependency.
  • Reported in the project thread.
  • Reuse: existing search, assistant model call path, circles and timeline.

Generated by Claude Code

…sk about

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012v8sNShSVTXxoPDab62A1L
@adeelahmad
adeelahmad merged commit d2ce104 into main Oct 19, 2026
12 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-97gkhw branch October 19, 2026 04:04
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

0