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.
From a Jira issue to code reviewed by an engineer.
- Engineer
Start with a problem or a planned Jira issue.
Define the engineering task and what needs to change.
- 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.
- Agent
Draft a development plan from the specs.
Lay out the requirements, proposed code changes, and tests before implementation.
- Human approval
Review and approve the plan.
An engineer checks the requirements and approach. Implementation starts after human approval.
Changes requested: revise the plan. - Agent
Implement the plan and write tests.
Follow the approved plan and team instructions. Write code, unit tests, and TCS functional tests.
- 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.
Failed checks: fix the code and run the checks again. - Human review
Review the code and the check results.
An engineer reviews the changes and evidence, then approves or requests revisions.
Changes requested: revise the implementation.
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.
Copilot works with the systems we already use.
- Approved resources
- Permitted execution steps
Out-of-scope requests produce structured failure logs for engineer review.
- BitbucketRepository code
- JiraEngineering tasks
- Confluence Data CenterTeam documentation
- SharePointContent through the Microsoft Graph API
- Internal documentationSpecs and engineering knowledge
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
- Task
- Jira issue and engineering goal
- References
- Relevant specifications and internal documentation
- Code
- Relevant Bitbucket implementation
- Guidance
- Selected skills, agent instructions, and team rules
Company AI metadata is a shared library of engineering instructions.
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
Reuse the company base. Add the team’s engineering rules.
- Skills
- Agent files
- Workflows
- 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
- 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.
From specifications to code and executed tests.
- 01Ground
Read specifications and internal docs through MCP.
- 02Implement
Follow spec-driven instructions and Python PEP standards.
- 03Write TCS
Use team skills, data, and testing guides to author tests.
- 04Run tests
Execute TCS through the framework’s mapped test actions.
Power, hardware, and firmware engineers write tests in TCS. Agents can now write and run those tests too.
- TCS testsWritten by engineers or agents.
- Mapped actionsThe framework translates test definitions.
- Functional testsHardware and IEC 61850 execution.
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.
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.
Limit what agents can access and what they can do.
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
Continue exploring
IEC 61850 Automated Testing Framework