All SEL work

Systems & tools

Agent Harness & Workflows

I built agent harnesses and workflows around GitHub Copilot to help engineering teams at SEL adopt AI, combining internal tools, engineering context, reusable skills, and guardrails across development, testing, code review, and releases.

01 · Problem

Engineers had little time to configure AI for their work.

In late 2023, SEL began exploring enterprise AI. Hardware and software engineers were focused on delivery, with limited time to experiment or configure tools. Others were unsure where to start. A raw model didn’t know our specs, couldn’t use our internal tools, and didn’t follow our engineering process. To many engineers, AI just felt dumb and useless.

02 · Approach

Connect agents to our tools. Keep engineers in the loop.

At SEL, engineers used Atlassian and Microsoft tools for their daily work. We built MCP connectors to gather issues, code, specs, and documentation, including SharePoint content through Microsoft Graph. A planned Jira issue gives the agent a concrete starting point.

Human-in-the-loop development

From a Jira issue to code reviewed by an engineer.

  1. Engineer

    Start with a problem or a planned Jira issue.

    Define the engineering task and what needs to change.

  2. Agent + MCP

    Read the specs, documentation, and code.

    Read the Jira issue, Confluence and specification documents, SharePoint content through Microsoft Graph, and the relevant Bitbucket code.

  3. Agent

    Draft a development plan from the specs.

    Lay out the requirements, proposed code changes, and tests before implementation.

  4. Human approval

    Review and approve the plan.

    An engineer checks the requirements and approach. Implementation starts after human approval.

  5. Agent

    Implement the plan and write tests.

    Follow the approved plan and team instructions. Write code, unit tests, and TCS functional tests.

  6. Deterministic tools

    Run deterministic validation and code checks.

    Run custom validation scripts, security guardrails, automated tests, and standard language checks. Keep the results and structured failure logs for human review.

  7. Human review

    Review the code and the check results.

    An engineer reviews the changes and evidence, then approves or requests revisions.

03 · Architecture

How the pieces fit together.

The harness connects tools and context to reusable team instructions, with scoped access, deterministic validation, and human review around the work.

01 / Connect the tools

Copilot works with the systems we already use.

GitHub CopilotWorkflows across Copilot-supported models
Tool requests and returned context
Task-scoped tool accessSecurity controls
Internal MCP connectorsConnect the agent to our engineering platforms
  • Approved resources
  • Permitted execution steps

Out-of-scope requests produce structured failure logs for engineer review.

Access the relevant engineering sources
  • BitbucketRepository code
  • JiraEngineering tasks
  • Confluence Data CenterTeam documentation
  • SharePointContent through the Microsoft Graph API
  • Internal documentationSpecs and engineering knowledge
02 / Gather the context

One task brings its issue, specs, and code together.

  • Jira issueThe task and what needs to change
  • Specs + internal docsSpecifications, Confluence, and SharePoint content
  • Bitbucket codeThe repository and relevant implementation
Gather relevant material through the MCP tools
Context builders + instructionsBring the engineering sources into the agent’s working context
Use the context for the engineering task
Task contextIllustrative contents
Task
Jira issue and engineering goal
References
Relevant specifications and internal documentation
Code
Relevant Bitbucket implementation
Guidance
Selected skills, agent instructions, and team rules
03 / Make it reusable

Company AI metadata is a shared library of engineering instructions.

Shared AI metadataReusable across teams
  • Skills

    How to do the work

    • Spec-driven development
    • Code review
    • Testing guides
  • Agent files

    How the agent should work

    • Task instructions
    • Tool-use guidance
    • Execution boundaries
  • Workflows

    Which steps to follow

    • Development
    • Review and release
    • CI
Teams reuse the base and add their own context and rules
Team-specific Copilot setupsDevelopment · Testing · Code review · Releases · CI
04 / Apply it to IEC 61850

Reuse the company base. Add the team’s engineering rules.

Company AI metadataThe reusable foundation
  • Skills
  • Agent files
  • Workflows
Combined with
IEC 61850 team additions
Knowledge
IEC 61850 spec references and internal docs
Python
Spec-driven development and PEP standards
Delivery
Team code-review and release processes
Testing
Unit tests, TCS, and functional-testing guides
Configure Copilot for the team’s development and testing work
Copilot for IEC 61850 engineering
  • Specification-grounded code
  • TCS authoring
  • Functional-test execution
  • Execution guardrailsResource scope and permitted steps
  • Deterministic validationCustom scripts and automated tests
  • Human reviewPlan approval and review of code and results

Standard linting, formatting, and type checks run alongside the team’s custom validation.

04 · Workflow in practice

IEC 61850: from specifications to code and executed tests.

I grounded agents in IEC 61850 specifications and internal documentation, with skills and agent files for spec-driven Python development, PEP standards, review/release processes, and unit/functional testing. Agents now use those skills and task data to write TCS tests and run hardware and IEC 61850 functional tests through our automated framework.

22-second silent conceptual walkthrough, made with Brag and Hyperframes.Open video Video credits
IEC 61850 development & testing

From specifications to code and executed tests.

  1. 01
    Ground

    Read specifications and internal docs through MCP.

  2. 02
    Implement

    Follow spec-driven instructions and Python PEP standards.

  3. 03
    Write TCS

    Use team skills, data, and testing guides to author tests.

  4. 04
    Run tests

    Execute TCS through the framework’s mapped test actions.

Working todayAgent-written TCS uses the same execution path.

Power, hardware, and firmware engineers write tests in TCS. Agents can now write and run those tests too.

  1. TCS testsWritten by engineers or agents.
  2. Mapped actionsThe framework translates test definitions.
  3. Functional testsHardware and IEC 61850 execution.
Explore the testing framework

05 · Quality & safeguards

Check the code with tools. Review it with engineers.

I built custom scripts and guardrails to check project rules, constrain resource access, and control execution steps. Standard language checks and automated tests run alongside them. Engineers review the code and results, with structured logs when a check fails.

Deterministic verification

Code quality is checked with tools and reviewed by people.

  • Custom validation & guardrailsDeterministic scripts check project rules, resource scope, and permitted execution steps.
  • Automated testsRun unit tests and IEC 61850 functional tests through the framework.
  • Standard code checksRun the language’s linting, formatting, and type checks.
Check results and execution logsConcrete evidence for the engineer’s code review
See where human review happens
Security & execution controls

Limit what agents can access and what they can do.

Approved resourcesSelected Jira/Confluence spaces, repositories, SharePoint content, and internal spec documents.
Permitted execution stepsDeterministic checks and guardrails constrain the actions an agent can take.
Failure analysisStructured failure logs that I use to investigate what happened.

Tools behind the work

GitHub Copilot · MCP · Context engineering · Spec-driven development · Python · Skills & agent files · TCS · Automated testing · Jira · Bitbucket · Confluence Data Center · SharePoint · Microsoft Graph · Guardrails · CI