Skip to main content

t7 — Triple Seven agent

Threat model, verified fixes and proof for every change. Runs on the developer's machine and in your CI. Your source code never leaves your environment: Byteramp only receives an abstract architecture model and finding metadata (title, file:line, fix/proof results as hashes and pass/fail).

Install

pipx install t7-agent                  # stdlib only, no third-party dependencies
export T7_TOKEN=t7_...                 # from the portal: Triple Seven → Repositories
t7 doctor
t7 scan                                # review your current branch + uncommitted work
t7 fix SEC-REQ-SHOP-004                # apply a verified fix and its regression test

In your editor / AI assistant (MCP)

t7 mcp is a Model Context Protocol server. Your assistant can then review the change you're working on, explain findings and apply verified fixes — before a pull request exists. Tools: t7_scan, t7_findings, t7_explain, t7_show_fix, t7_apply_fix, t7_doctor.

# Claude Code (local scope — token stays out of the repo)
claude mcp add triple-seven -e T7_TOKEN=t7_... -e T7_API_URL=https://t7.byteramp.se/api -- t7 mcp

Cursor / Windsurf (~/.cursor/mcp.json, ~/.codeium/windsurf/mcp_config.json):

{ "mcpServers": { "triple-seven": { "command": "t7", "args": ["mcp"],
  "env": { "T7_TOKEN": "t7_...", "T7_API_URL": "https://t7.byteramp.se/api" } } } }

VS Code (.vscode/mcp.json, safe to commit — each developer is prompted for their token):

{ "inputs": [{ "type": "promptString", "id": "t7-token", "description": "Triple Seven token", "password": true }],
  "servers": { "triple-seven": { "type": "stdio", "command": "t7", "args": ["mcp"],
    "env": { "T7_TOKEN": "${input:t7-token}", "T7_API_URL": "https://t7.byteramp.se/api" } } } }

Codex (~/.codex/config.toml):

[mcp_servers.triple-seven]
command = "t7"
args = ["mcp"]
env = { T7_TOKEN = "t7_...", T7_API_URL = "https://t7.byteramp.se/api" }
tool_timeout_sec = 900

Give each developer a personal token (portal → Repositories → Install for your team) so runs are attributed and one person can be revoked on their own.

GitHub Actions

# .github/workflows/triple-seven.yml
name: Triple Seven
on:
  pull_request:
  push:
    branches: [main]          # review coverage: which merges were reviewed
  issue_comment:
    types: [created]          # /t7 accept-risk | false-positive | not-applicable | reopen
permissions:
  contents: read
  pull-requests: write
  statuses: write             # the "Triple Seven" commit status carries the merge gate
jobs:
  t7:
    if: github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/t7')
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - uses: byteramp/triple-seven@v0
        with:
          token: ${{ secrets.T7_TOKEN }}

Protect the branch on the Triple Seven commit status (not the job). A collaborator can clear a blocking finding from the PR with /t7 accept-risk SEC-REQ-… <reason> — the decision is recorded with an audit trail and the status flips to success. Each finding in the PR comment also has a ready prompt for Claude Code, Cursor, Codex or Copilot.

The PR comment and one-click suggested changes are posted with the runner's own GITHUB_TOKEN. Byteramp needs no access to your repository.

Models

T7_LLM Where code goes
byteramp Byteramp's own EU VPS models — requires opt-in in the portal; never forwarded to a cloud provider, never logged
azure Your Azure OpenAI deployment
openai Any OpenAI-compatible endpoint you choose
anthropic Your Anthropic account
ollama A model next to the agent (laptop / runner)

GitLab

Copy templates/gitlab-ci.yml into your .gitlab-ci.yml and add two masked CI/CD variables: T7_TOKEN (from the portal) and T7_GITLAB_TOKEN (a project access token, scope api, role Reporter, so t7 can comment on the merge request with one-click suggestions). Works with self-managed GitLab — CI_API_V4_URL is picked up automatically.

Any other CI (Bitbucket, Azure DevOps, Jenkins …)

See templates/generic-ci.sh: t7 scan --ci exits non-zero when an enforced merge gate blocks, and writes t7-report.md.

How a review runs

planner picks the chain for this diff → mapper builds the abstract architecture delta → Byteramp's threat model returns hypotheses → specialist analysts run in parallel (authz, injection, LLM, IaC, secrets/crypto, logic) → triage checks each hypothesis against the code → an adversarial critic tries to refute high/critical findings → fixer ⇄ verifier loop (isolated git worktree: applies, lint, types, independent re-check, test suite) → prover writes a regression test that must fail before and pass after the fix (L2) → noise budget → report. Every step streams to the portal timeline.

Verifying a release

Every release is Sigstore-signed with a CycloneDX SBOM and SLSA provenance — see RELEASING.md. Source is public so you can read exactly what runs on your code; what is sent to Byteramp is documented in SECURITY.md.

Metadata

Release files for t7-agent 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for t7-agent 0.1.0
File Size Uploaded Provenance Actions
t7_agent-0.1.0.tar.gz 56.7 kB With provenance Details for t7_agent-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for t7-agent 0.1.0
File Interpreter ABI Platform Actions
t7_agent-0.1.0-py3-none-any.whl Python 3 none any Details for t7_agent-0.1.0-py3-none-any.whl

Total release size: 116.6 kB

Release files / t7_agent-0.1.0.tar.gz

Download URL t7_agent-0.1.0.tar.gz
Size 56.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cae433b9b215363cdfbb2c9ad1ba4e3877b01a8487fbf923fe7320b233c74cae
BLAKE2b-256 checksum
How to use checksums
b6ce78aad95d7c4acd104f72052bf49977409f8745cba438d785fe5e0e3622f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / t7_agent-0.1.0-py3-none-any.whl

Download URL t7_agent-0.1.0-py3-none-any.whl
Size 59.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
347f222096754d80abd8fb297258d33a7a8a3f100a3cb09122279ce360e6e220
BLAKE2b-256 checksum
How to use checksums
97e79794ae0cfcd1e04c27ca343df371b8642f8eb8c2530253b2f78d99d477f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for t7-agent 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for t7_agent-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page