Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

viewport-context

Latest version: v0.1.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: msahebsara
0 Stars
0 Forks
2 Versions
Python Repo language

Scan summary

viewport-context was last scanned on 29 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.1.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 29 Nov 2026 No rules fired
0.1.0 29 Nov 2026 No rules fired

No rules fired in 0.1.1

Findings

Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

viewport-context

Progressive skill loading and per-skill tool binding for agents (Python, import viewportai.context). The model starts with a short catalog and one tool, load_skill; each skill's instructions and tools arrive only when it loads, inside a token budget. The npm package @viewportai/context implements the same spec, pinned by shared conformance vectors.

pip install viewport-context   # or: uv add viewport-context

Python 3.11 or newer. To build from source, see https://github.com/viewportai/context#from-source.

Quickstart

Runs with no API key. In an empty folder, install the package (see above), then create these files.

Two skills, one folder each:

skills/refunds/SKILL.md

---

name: refunds
description: Issue refunds for damaged, late or wrong orders. Use when a customer asks for money back.
tools: [lookup_order, issue_refund]
---

# Refunds

Look up the order first. Refund the order total for damaged or wrong items. Refunds over $100 need a human.

skills/docs/SKILL.md

---

name: docs
description: Answer how-to questions from the help center. Use for questions about features and settings.
tools: [search_docs]
---

# Help center

Search before you answer. If nothing matches, say so instead of guessing.

tools.py

from typing import Any

from viewportai.core import Tool


async def _lookup_order(args: dict[str, Any]) -> dict[str, Any]:
    return {"order_id": args["order_id"], "status": "delivered", "total": 42.5}


async def _issue_refund(args: dict[str, Any]) -> dict[str, str]:
    return {"refund_id": f"R-{args['order_id']}"}


async def _search_docs(args: dict[str, Any]) -> list[str]:
    return [f"How to report {args['query']}"]


lookup_order = Tool(
    name="lookup_order",
    description="Look up an order by id.",
    input_schema={"type": "object", "properties": {"order_id": {"type": "string"}}, "required": ["order_id"]},
    execute=_lookup_order,
)
issue_refund = Tool(
    name="issue_refund",
    description="Refund an order, in dollars.",
    input_schema={
        "type": "object",
        "properties": {"order_id": {"type": "string"}, "amount": {"type": "number", "minimum": 0}},
        "required": ["order_id", "amount"],
    },
    execute=_issue_refund,
)
search_docs = Tool(
    name="search_docs",
    description="Search the help center.",
    input_schema={"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]},
    execute=_search_docs,
)

main.py

import asyncio

from tools import issue_refund, lookup_order, search_docs
from viewportai import context


async def main() -> None:
    skills = context.load_skills("skills", tools=[lookup_order, issue_refund, search_docs], budget=8_000)
    session = skills.session()

    print(session.prompt("My order A-1001 arrived damaged.").tool_names)  # ['load_skill']
    await session.call("load_skill", name="refunds")  # exactly what the model does
    early = await session.call("lookup_order", order_id="A-1001")  # same step as the load
    print(early.content)  # refused: call it in the next step
    print(session.prompt().tool_names)  # ['load_skill', 'lookup_order', 'issue_refund']
    order = await session.call("lookup_order", order_id="A-1001")
    print(order.content)  # {"order_id":"A-1001","status":"delivered","total":42.5}
    refused = await session.call("search_docs", query="damage")
    print(refused.content)  # search_docs is not available. Load the docs skill first.


asyncio.run(main())

Run it with python main.py.

Output:

['load_skill']
lookup_order is not available yet: the refunds skill was loaded in this same step. Read its instructions, then call lookup_order in your next step.
['load_skill', 'lookup_order', 'issue_refund']
{"order_id":"A-1001","status":"delivered","total":42.5}
search_docs is not available. Load the docs skill first.

A skill's tools become callable in the next step, once a new prompt is built, so the model reads the instructions first; a tool called in the same step as its skill's load is refused with a message to call it next step.

Adapters (extras): viewportai.context.langgraph, .openai_agents, .claude_agent_sdk (preview), .pydantic_ai, .anthropic, .openai; test helpers in viewportai.context.testing and pytest fixtures (tmp_skills, skills, skill_events).

CLI

The package installs a viewport-context command that lints skills, prints per-skill token costs and shows the request a session would send. After pip install viewport-context it is on your PATH.

viewport-context lint skills
viewport-context inspect skills

Docs, examples and the design: https://github.com/viewportai/context. License: Apache-2.0.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases viewport-context

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229