Skip to content

The Deska blog

Using Agents for Open Source Contributions

Learn the best practices for using agents for open source contributions while maintaining code quality, project etiquette, and security.

11 min read

The rise of large language models has fundamentally changed how developers interact with codebases, particularly through the deployment of autonomous agents for open source contributions. While these tools can significantly accelerate the process of fixing bugs, writing documentation, and generating tests, they introduce a new set of responsibilities for the contributor. Using agents effectively requires a balance between automation and human oversight to ensure that the resulting pull requests are helpful rather than a burden to maintainers.

The Ethical Framework for AI Assisted OSS

Open source maintenance is often an unpaid or underfunded labor of love. When you use agents for open source contributions, you are essentially increasing the volume of code that a maintainer must review. If that code is low quality or hallucinated, you are creating work rather than reducing it.

Transparency is Mandatory

Always disclose when a pull request or a significant portion of code was generated by an agent. Many projects are currently developing policies regarding AI generated content. Some maintainers welcome the efficiency, while others prefer strictly human authored logic for security or licensing reasons. Honesty builds trust within the community.

The Value of Small Scoped Tasks

Agents perform best when assigned specific, narrow tasks. Avoid asking an agent to implement a massive feature across several modules. Instead, use them for:

  • Writing unit tests for existing functions.
  • Updating outdated documentation or fixing typos.
  • Porting logic from one utility pattern to another.
  • Identifying and fixing simple linting or type errors.

Technical Workflows for Agentic Contributions

To maintain high standards, your technical setup must allow for deep inspection of what the agent is doing in real time. Running agents in a vacuum leads to detached code that fails to respect the project style or architectural patterns.

Local Execution and Context

Most sophisticated agents, such as Claude Code or OpenCode, require access to the local file system and a terminal to run tests. This is where a specialized environment becomes critical. For example, Deska provides an infinite canvas where you can monitor these agents in dedicated panels. By running an agent in one panel and keeping the project documentation or existing source code open in another, you maintain a bird eye view of the entire operation.

Verification Loops

Never submit an agentic contribution without a verification loop. This process should include:

  1. Running the existing test suite to ensure no regressions.
  2. Generating new tests that specifically target the changes made by the agent.
  3. Manual code review to check for "AI smells," such as overly verbose logic or the use of deprecated APIs.
  4. Running security scanners to ensure the agent did not introduce vulnerable patterns.

Integrating Agents into Your Workspace

The efficiency of using agents for open source contributions depends heavily on the tools you use to manage them. Traditional IDEs are often designed for single file editing, which can feel restrictive when an agent is modifying dozens of files simultaneously.

Side by Side Agent Management

Advanced developers are moving toward multi agent workflows. You might use one agent to explore the codebase and another to write the implementation. Deska supports running multiple coding agents like Claude Code and Codex CLI side by side as panels. This allows you to compare their outputs or have them handle different parts of a complex PR concurrently.

Voice and Assistant Integration

Sometimes the quickest way to guide an agent is through natural language without typing. Using features like Ask Deska allows you to drive the workspace via voice or chat. You can command the assistant to open specific terminals or run a build command across all active sessions, making the management of the agentic workflow much more fluid.

Comparison of Agent Environments

The environment where you run your agents impacts your security and productivity. Below is a comparison of how different approaches handle agentic work.

FeatureStandard IDEWeb Based AgentsDeska Workspace
File AccessLocalRestrictedLocal first
Multi AgentPlugin basedSingle sessionSide by side panels
Mobile AccessRareCommonSecure relay Mobile
PrivacyHighLowHigh Privacy

Web based agents often require you to upload your code to a third party server, which might not be acceptable for certain open source licenses or corporate policies. A local-first approach ensures that your files and sessions stay on your machine.

Managing Contributions on the Go

Open source does not always happen at a desk. You might need to check the status of a long running test suite or tweak an agent prompt while away from your computer. Through a secure relay, you can use a mobile app to monitor and continue work from your phone. This does not require exposing ports or complex VPN setups, as the devices pair directly.

FAQ: Agents in Open Source

Is it okay to use AI for open source?

Yes, provided you follow the project contribution guidelines. Most projects prioritize the quality and correctness of the code over how it was produced. However, you must take full ownership of the agent output and be prepared to explain the logic during the review process.

How to disclose AI generated pull requests?

The best practice is to include a brief note in the PR description. State which tool you used and which parts of the code were generated versus manually reviewed. This transparency helps maintainers understand the context of the contribution.

Can agents help with documentation?

Documentation is one of the most effective use cases for agents. They can analyze code to generate README files, API references, and usage examples. Since documentation does not execute, the risk of breaking the system is lower, although accuracy must still be verified manually.

Get Started with Deska

If you are ready to improve your open source workflow, download the Deska desktop app for Mac, Windows, or Linux. The workspace is free and allows you to bring your own API keys for a local first, privacy focused experience. You can start by setting up your first canvas and exploring how agent threads can streamline your next contribution.